Skip to content

Commit

Permalink
Minor change to allow overriding the root namespace in generated solu…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
svermeulen committed Feb 15, 2016
1 parent 2b20c36 commit bc05a62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Source/Version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.3.1
0.3.2
5 changes: 1 addition & 4 deletions Source/prj/main/VisualStudioSolutionGenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ def _writeCsProject(self, projInfo, projectMap, files, refItems, defines):
compileElem.set('Include', os.path.relpath(filePath, outputDir))

root.findall('./{0}PropertyGroup/{0}RootNamespace'.format(NsPrefix))[0] \
.text = projInfo.name
.text = self._config.tryGetString('', 'SolutionGeneration', 'RootNamespace')

root.findall('./{0}PropertyGroup/{0}ProjectGuid'.format(NsPrefix))[0] \
.text = '{' + projInfo.id + '}'
Expand All @@ -547,9 +547,6 @@ def _writeCsProject(self, projInfo, projectMap, files, refItems, defines):
root.findall('./{0}PropertyGroup/{0}AssemblyName'.format(NsPrefix))[0] \
.text = projInfo.name

root.findall('./{0}PropertyGroup/{0}RootNamespace'.format(NsPrefix))[0] \
.text = "ModestTree"

root.findall('./{0}PropertyGroup/{0}DefineConstants'.format(NsPrefix))[0] \
.text = defines

Expand Down

0 comments on commit bc05a62

Please sign in to comment.