Skip to content

Commit

Permalink
Update sample metadata tools for VS (#657)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nCastle1 authored Aug 6, 2019
1 parent c72a275 commit 15ec602
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/metadata_tools/sample_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ def emit_standalone_solution(self, platform, sample_dir, output_root):
# generate list of replacements
replacements = {}
replacements["$$project$$"] = self.formal_name
replacements[".slntemplate"] = ".sln" # replacement needed to prevent template solutions from appearing in Visual Studio git browser
replacements["$$embedded_resources$$"] = "" # TODO
replacements["$$nuget_packages$$"] = get_csproj_xml_for_nuget_packages(self.nuget_packages)
replacements["$$code_and_xaml$$"] = get_csproj_xml_for_code_files(all_source_files, platform)
Expand Down

0 comments on commit 15ec602

Please sign in to comment.