Skip to content

Commit 15ec602

Browse files
authored
Update sample metadata tools for VS (#657)
Previously, the solution templates were named with .sln extensions. This caused Visual Studio to detect them as solutions when using the git browser. To prevent this, the solutions have been renamed to .slntemplate and the script has been updated to rename them to .sln in the output. I've confirmed that the template solutions no longer appear in Visual Studio.
1 parent c72a275 commit 15ec602

File tree

8 files changed

+1
-0
lines changed

8 files changed

+1
-0
lines changed

tools/metadata_tools/sample_metadata.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@ def emit_standalone_solution(self, platform, sample_dir, output_root):
328328
# generate list of replacements
329329
replacements = {}
330330
replacements["$$project$$"] = self.formal_name
331+
replacements[".slntemplate"] = ".sln" # replacement needed to prevent template solutions from appearing in Visual Studio git browser
331332
replacements["$$embedded_resources$$"] = "" # TODO
332333
replacements["$$nuget_packages$$"] = get_csproj_xml_for_nuget_packages(self.nuget_packages)
333334
replacements["$$code_and_xaml$$"] = get_csproj_xml_for_code_files(all_source_files, platform)

tools/metadata_tools/templates/solutions/Android/$$project$$.sln renamed to tools/metadata_tools/templates/solutions/Android/$$project$$.slntemplate

File renamed without changes.

tools/metadata_tools/templates/solutions/UWP/$$project$$.sln renamed to tools/metadata_tools/templates/solutions/UWP/$$project$$.slntemplate

File renamed without changes.

tools/metadata_tools/templates/solutions/WPF/$$project$$.sln renamed to tools/metadata_tools/templates/solutions/WPF/$$project$$.slntemplate

File renamed without changes.

tools/metadata_tools/templates/solutions/XFA/$$project$$.sln renamed to tools/metadata_tools/templates/solutions/XFA/$$project$$.slntemplate

File renamed without changes.

tools/metadata_tools/templates/solutions/XFI/$$project$$.sln renamed to tools/metadata_tools/templates/solutions/XFI/$$project$$.slntemplate

File renamed without changes.

tools/metadata_tools/templates/solutions/XFU/$$project$$.sln renamed to tools/metadata_tools/templates/solutions/XFU/$$project$$.slntemplate

File renamed without changes.

tools/metadata_tools/templates/solutions/iOS/$$project$$.sln renamed to tools/metadata_tools/templates/solutions/iOS/$$project$$.slntemplate

File renamed without changes.

0 commit comments

Comments
 (0)