|
23 | 23 | <GeneratePackageOnBuild>true</GeneratePackageOnBuild> |
24 | 24 | <GenerateDocumentationFile>True</GenerateDocumentationFile> |
25 | 25 | </PropertyGroup> |
| 26 | + <PropertyGroup> |
| 27 | + <!-- Allows disabling "GameSpecificData" folder copying to the output directory using "Directory.Build.props" outside of the project |
| 28 | + (e.g. when using this project as a git submodule) --> |
| 29 | + <CopyGameSpecificDataToOutDir Condition="$(CopyGameSpecificDataToOutDir) == ''">true</CopyGameSpecificDataToOutDir> |
| 30 | + </PropertyGroup> |
26 | 31 | <ItemGroup> |
27 | 32 | <PackageReference Include="Fody" Version="6.9.2"> |
28 | 33 | <PrivateAssets>all</PrivateAssets> |
|
34 | 39 | <PackageReference Include="SharpZipLib" Version="1.4.2" /> |
35 | 40 | </ItemGroup> |
36 | 41 | <ItemGroup> |
37 | | - <None Remove="GameSpecificData\Definitions\deltarune.json" /> |
38 | | - <None Remove="GameSpecificData\Definitions\gamemaker.json" /> |
39 | | - <None Remove="GameSpecificData\Definitions\undertale.json" /> |
40 | | - <None Remove="GameSpecificData\deltarune.json" /> |
41 | | - <None Remove="GameSpecificData\empty.json" /> |
42 | | - <None Remove="GameSpecificData\gamemaker.json" /> |
43 | | - <None Remove="GameSpecificData\README.txt" /> |
44 | | - <None Remove="GameSpecificData\undertale.json" /> |
| 42 | + <None Remove="GameSpecificData\**" /> |
45 | 43 | <None Remove="version.txt" /> |
46 | 44 | </ItemGroup> |
47 | 45 | <ItemGroup> |
48 | 46 | <None Remove="gitversion.txt" /> |
49 | | - <Content Include="GameSpecificData\README.txt"> |
50 | | - <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
51 | | - </Content> |
52 | | - <Content Include="GameSpecificData\Underanalyzer\deltarune.json"> |
53 | | - <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
54 | | - </Content> |
55 | | - <Content Include="GameSpecificData\Underanalyzer\template.json"> |
56 | | - <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
57 | | - </Content> |
58 | | - <Content Include="GameSpecificData\Underanalyzer\gamemaker.json"> |
59 | | - <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
60 | | - </Content> |
61 | | - <Content Include="GameSpecificData\Underanalyzer\undertale.json"> |
62 | | - <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
63 | | - </Content> |
64 | | - <Content Include="GameSpecificData\Definitions\deltarune.json"> |
65 | | - <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
66 | | - </Content> |
67 | | - <Content Include="GameSpecificData\Definitions\gamemaker.json"> |
68 | | - <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
69 | | - </Content> |
70 | | - <Content Include="GameSpecificData\Definitions\undertale.json"> |
71 | | - <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
72 | | - </Content> |
| 47 | + <Content Include="GameSpecificData\**" Condition="$(CopyGameSpecificDataToOutDir)" |
| 48 | + CopyToOutputDirectory="PreserveNewest" /> |
73 | 49 | <EmbeddedResource Include="gitversion.txt" /> |
74 | 50 | </ItemGroup> |
75 | 51 | <ItemGroup> |
|
0 commit comments