Ignore json files from all builds in solution

This commit is contained in:
Pat Hartl 2024-08-22 01:13:02 -05:00
parent f4d0da66b9
commit d34d3055e4
2 changed files with 16 additions and 0 deletions

View file

@ -31,6 +31,11 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LANCommander.Launcher.CLI",
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LANCommander.UI", "LANCommander.UI\LANCommander.UI.csproj", "{D69FF032-2013-4C4A-8719-44B79E48F898}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{618B69EA-3F75-4BF6-83FF-3FE33705FDD6}"
ProjectSection(SolutionItems) = preProject
Microsoft.Common.props = Microsoft.Common.props
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU

11
Microsoft.Common.props Normal file
View file

@ -0,0 +1,11 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<!-- Remove the files from being considered for compilation or packaging -->
<Content Remove="compilerconfig.json;package.json;package-lock.json;tsconfig.json;libman.json" />
<!-- Explicitly exclude them from the publish directory and any single-file packaging -->
<None Include="compilerconfig.json;package.json;package-lock.json;tsconfig.json;libman.json">
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
<CopyToPublishDirectory>Never</CopyToPublishDirectory>
</None>
</ItemGroup>
</Project>