Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/main/src
diff options
context:
space:
mode:
authorMatt Ward <matt.ward@xamarin.com>2017-01-23 19:23:25 +0300
committerMatt Ward <matt.ward@xamarin.com>2017-01-23 19:23:25 +0300
commitca468eda8e46284d14f8c8cc6c9281a8635b660a (patch)
treea95cf6f794c82e47f6f5ee81887bb6ebdf823853 /main/src
parent18da8d5424c7c8dabea6c4470fafecab9d0e9532 (diff)
[Core] Add unit tests for MSBuildProject.SetMonoDevelopProjectExtension
The xmlns attribute was not being removed for a Sdk style project when setting a MonoDevelop project extension. However this did not affect the file being saved. To make things consistent the xmlns attribute is now removed if it is an empty string and the project is an Sdk style project.
Diffstat (limited to 'main/src')
-rw-r--r--main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/MSBuildProject.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/MSBuildProject.cs b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/MSBuildProject.cs
index de52502587..3db8b8c64a 100644
--- a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/MSBuildProject.cs
+++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/MSBuildProject.cs
@@ -929,7 +929,7 @@ namespace MonoDevelop.Projects.MSBuild
}
XmlUtil.Indent (format, value, false);
var xmlns = value.GetAttribute ("xmlns");
- if (xmlns == Namespace)
+ if (xmlns == (Namespace ?? string.Empty))
value.RemoveAttribute ("xmlns");
SetProjectExtension (parent);
NotifyChanged ();