forked from yonilerner/cs2-retakes-allocator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRetakesAllocator.csproj
36 lines (30 loc) · 1.95 KB
/
RetakesAllocator.csproj
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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="CounterStrikeSharp.API" Version="1.0.315" />
<PackageReference Include="RetakesPluginShared" Version="2.0.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\RetakesAllocatorCore\RetakesAllocatorCore.csproj" />
</ItemGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition=" '$(CopyPath)' != '' and $(Configuration) == 'Debug' and '$(OS)' == 'Windows_NT'">
<Exec Command="powershell mkdir -p "$(CopyPath)"" ContinueOnError="true" />
<Exec Command="powershell Copy-Item -Recurse -Force "$(TargetDir)* $(CopyPath)" "/>
</Target>
<Target Name="PostBuildRelease" AfterTargets="PostBuildEvent" Condition="$(Configuration) == 'Release' and '$(OS)' == 'Windows_NT'">
<Exec Command="powershell rm -Recurse -Force "$(TargetDir)..\$(TargetName)" " ContinueOnError="true"/>
<Exec Command="powershell mkdir -p "$(TargetDir)..\$(TargetName)"" />
<Exec Command="powershell cp -Force "$(TargetDir)* $(TargetDir)..\$(TargetName)"" />
<Exec Command="powershell cp -Force -Recurse "$(TargetDir)runtimes\linux-x64 $(TargetDir)..\$(TargetName)\runtimes"" />
<Exec Command="powershell cp -Force -Recurse "$(TargetDir)runtimes\win-x64 $(TargetDir)..\$(TargetName)\runtimes"" />
<Exec Command="powershell Compress-Archive -Force -Path "$(TargetDir)..\$(TargetName)\*" -DestinationPath "$(TargetDir)..\$(TargetName).zip" " />
</Target>
<ItemGroup>
<None Update="lang\**\*.*" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>
</Project>