generated from dotnet/new-repo
-
Notifications
You must be signed in to change notification settings - Fork 4
/
addNative.csproj
22 lines (18 loc) · 984 Bytes
/
addNative.csproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<!-- GenerateBuildDependencyFile requires a package in order to include runtimeTargets. Tack them on to an existing package -->
<PackageReference Include="Microsoft.NETCore.Platforms" Version="5.0.0" />
<RuntimeTargetsCopyLocalItems Include="native\**\*.*"
AssetType="native"
DestinationSubDirectory="runtimes\%(RecursiveDir)native"
NuGetPackageId="Microsoft.NETCore.Platforms"
RuntimeIdentifier="$([System.String]::new('%(RecursiveDir)').Trim('\'))" />
<Content Include="@(RuntimeTargetsCopyLocalItems)"
Link="%(DestinationSubDirectory)\%(FileName)%(Extension)"
CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>
</Project>