Пример #1
0
        public override void Rename(string newPath)
        {
            string escapedPath = Microsoft.Build.Evaluation.ProjectCollection.Escape(newPath);

            _item.Rename(escapedPath);
            this.RefreshProperties();
        }
        public void Rename(string newPath)
        {
            string escapedPath = Microsoft.Build.BuildEngine.Utilities.Escape(newPath);

            if (this.IsVirtual)
            {
                virtualProperties[ProjectFileConstants.Include] = newPath;
                return;
            }

            item.Rename(escapedPath);
            this.RefreshProperties();
        }
        public void Rename(string newPath)
        {
            string escapedPath = Microsoft.Build.Evaluation.ProjectCollection.Escape(newPath);

            if (this.IsVirtual)
            {
                virtualProperties[ProjectFileConstants.Include] = escapedPath;
                return;
            }

            item.Rename(escapedPath);
            this.RefreshProperties();
        }