-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSampleGame.csproj
More file actions
47 lines (39 loc) · 1.68 KB
/
Copy pathSampleGame.csproj
File metadata and controls
47 lines (39 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<RootNamespace>SampleGame</RootNamespace>
<Configurations>Debug;Release</Configurations>
<Platforms>x64</Platforms>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
<DefineConstants>DEBUG</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<DefineConstants>RELEASE</DefineConstants>
<Optimize>true</Optimize>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\src\GameEngine\GameEngine.csproj" />
<ProjectReference Include="..\Scripts\Scripts.csproj" />
</ItemGroup>
<Target Name="CopyAssets" AfterTargets="Build">
<!-- Copy Assets -->
<ItemGroup>
<AssetFiles Include="$(MSBuildThisFileDirectory)../Data/Assets/**/*" />
</ItemGroup>
<Copy SourceFiles="@(AssetFiles)"
DestinationFiles="@(AssetFiles->'$(TargetDir)Assets\%(RecursiveDir)%(Filename)%(Extension)')"
SkipUnchangedFiles="true" />
<!-- Copy AssetPool -->
<ItemGroup>
<AssetPoolFiles Include="$(MSBuildThisFileDirectory)../Data/AssetPool/**/*" />
</ItemGroup>
<Copy SourceFiles="@(AssetPoolFiles)"
DestinationFiles="@(AssetPoolFiles->'$(TargetDir)%(RecursiveDir)%(Filename)%(Extension)')"
SkipUnchangedFiles="true" />
</Target>
</Project>