diff options
author | Matt Ward <matt.ward@xamarin.com> | 2017-01-31 16:09:30 +0300 |
---|---|---|
committer | Matt Ward <matt.ward@xamarin.com> | 2017-01-31 16:09:30 +0300 |
commit | 5ea14cc5a7e47277a8fa0c6be590fc51225e2ea5 (patch) | |
tree | a40ecda34b85baf024e3f4081a9ed5afe0c6d875 /main/src/addins/MonoDevelop.Autotools | |
parent | f3687707bfcf993c6d65f5a1fc8628b65e8d124c (diff) | |
parent | 8d2ea17d778ff67a71df58efde5a5e2fdcf9a14d (diff) |
Merge remote-tracking branch 'monodevelop/dotnetcore' into vNext
Diffstat (limited to 'main/src/addins/MonoDevelop.Autotools')
-rw-r--r-- | main/src/addins/MonoDevelop.Autotools/MakefileData.cs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/main/src/addins/MonoDevelop.Autotools/MakefileData.cs b/main/src/addins/MonoDevelop.Autotools/MakefileData.cs index 01b78a04dc..73ae0e9219 100644 --- a/main/src/addins/MonoDevelop.Autotools/MakefileData.cs +++ b/main/src/addins/MonoDevelop.Autotools/MakefileData.cs @@ -81,8 +81,18 @@ namespace MonoDevelop.Autotools public XmlElement Write () { + string xmlns = MSBuildProject.Schema; + var msbuildProject = ownerProject?.MSBuildProject; + if (msbuildProject != null) + xmlns = msbuildProject.Namespace; + + return Write (xmlns); + } + + XmlElement Write (string xmlns) + { XmlDataSerializer ser = new XmlDataSerializer (new DataContext ()); - ser.Namespace = MSBuildProject.Schema; + ser.Namespace = xmlns; var sw = new StringWriter (); ser.Serialize (new XmlTextWriter (sw), this); XmlDocument doc = new XmlDocument (); |