diff options
author | Mikayla Hutchinson <m.j.hutchinson@gmail.com> | 2017-01-31 21:15:43 +0300 |
---|---|---|
committer | Mikayla Hutchinson <m.j.hutchinson@gmail.com> | 2017-01-31 23:12:21 +0300 |
commit | 17b9404d3a33ff34cc204998b62e944c879d3dd1 (patch) | |
tree | 72d2d653d10cb171447c81beef82fa0c7528e939 /main/src/addins/MonoDevelop.Autotools | |
parent | a80a642a5e3a3f925fe6f852d6f2844023e50c8b (diff) | |
parent | 26ad42f934f962a4c11f02e129e0461be2e96ed9 (diff) |
Merge remote-tracking branch 'origin/vNext' into roslyn-ivt
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 (); |