forked from DeathWrench/CSync
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDirectory.Build.targets
More file actions
20 lines (17 loc) · 904 Bytes
/
Directory.Build.targets
File metadata and controls
20 lines (17 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<Project>
<Import Project="Sdk.targets" Sdk="Sigurd.Thunderstore.Sdk" />
<!-- prevent referenced assemblies from being copied to output folders -->
<Target Name="ClearReferenceCopyLocalPaths" AfterTargets="ResolveAssemblyReferences" Condition="$(ClearCopyLocalPaths)">
<ItemGroup>
<ReferenceCopyLocalPaths Remove="@(ReferenceCopyLocalPaths)"/>
</ItemGroup>
</Target>
<Target Name="SetThunderstorePackageVersion" DependsOnTargets="MinVer">
<PropertyGroup>
<ThunderstorePackageVersion>$(MinVerMajor).$(MinVerMinor).$(MinVerPatch)</ThunderstorePackageVersion>
</PropertyGroup>
</Target>
<Target Name="NetcodePatch" AfterTargets="PostBuildEvent">
<Exec Command="dotnet netcode-patch -nv 1.5.2 "$(TargetPath)" @(ReferencePathWithRefAssemblies->'"%(Identity)"', ' ')"/>
</Target>
</Project>