-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathMizux.DotnetNative.csproj.in
67 lines (60 loc) · 4.54 KB
/
Mizux.DotnetNative.csproj.in
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Library</OutputType>
<LangVersion>@DOTNET_LANG@</LangVersion>
@DOTNET_TFM@
<RuntimeIdentifiers>linux-x64;osx-x64;win-x64</RuntimeIdentifiers>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<AssemblyName>@DOTNET_PACKAGE@</AssemblyName>
<Version>@PROJECT_VERSION@</Version>
<!-- Nuget Properties -->
<Description>.NET wrapper for the DotnetNative project</Description>
<!-- Pack Option -->
<Title>@DOTNET_PACKAGE@ v@PROJECT_VERSION@</Title>
<PackageId>@DOTNET_PACKAGE@</PackageId>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<!-- Signing -->
<SignAssembly>false</SignAssembly>
<PublicSign>false</PublicSign>
<DelaySign>false</DelaySign>
</PropertyGroup>
<!-- Validate at least one runtime package has been generated -->
<Target Name="ValidateRuntimePackage" BeforeTargets="GenerateNuspec">
<ItemGroup>
<RuntimeLinuxX64 Include="@DOTNET_PACKAGES_DIR@/@[email protected].*.nupkg"/>
<RuntimeOsxX64 Include="@DOTNET_PACKAGES_DIR@/@[email protected].*.nupkg"/>
<RuntimeWinX64 Include="@DOTNET_PACKAGES_DIR@/@[email protected].*.nupkg"/>
<RuntimeLinuxArm64 Include="@DOTNET_PACKAGES_DIR@/@[email protected].*.nupkg"/>
<RuntimeOsxArm64 Include="@DOTNET_PACKAGES_DIR@/@[email protected].*.nupkg"/>
</ItemGroup>
<Message Importance="high" Text="------- $(OS) "/>
<Message Importance="high" Text="Package @[email protected]: found" Condition="Exists('@(RuntimeLinuxX64)')"/>
<Message Importance="high" Text="Package @[email protected]: not found" Condition="!Exists('@(RuntimeLinuxX64)')"/>
<Message Importance="high" Text="Package @[email protected]: found" Condition="Exists('@(RuntimeOsxX64)')"/>
<Message Importance="high" Text="Package @[email protected]: not found" Condition="!Exists('@(RuntimeOsxX64)')"/>
<Message Importance="high" Text="Package @[email protected]: found" Condition="Exists('@(RuntimeWinX64)')"/>
<Message Importance="high" Text="Package @[email protected]: not found" Condition="!Exists('@(RuntimeWinX64)')"/>
<Message Importance="high" Text="Package @[email protected]: found" Condition="Exists('@(RuntimeLinuxArm64)')"/>
<Message Importance="high" Text="Package @[email protected]: not found" Condition="!Exists('@(RuntimeLinuxArm64)')"/>
<Message Importance="high" Text="Package @[email protected]: found" Condition="Exists('@(RuntimeOsxArm64)')"/>
<Message Importance="high" Text="Package @[email protected]: not found" Condition="!Exists('@(RuntimeOsxArm64)')"/>
<Error Text="You must locally 'dotnet pack' at least one @[email protected].{rid} Project." Condition="!Exists('@(RuntimeLinuxX64)') AND !Exists('@(RuntimeOsxX64)') AND !Exists('@(RuntimeWinX64)') AND !Exists('@(RuntimeLinuxArm64)') AND !Exists('@(RuntimeOsxArm64)')"/>
</Target>
<!-- Need to add required runtime dependencies so Meta-Project will pull runtime Nuget(s) -->
<PropertyGroup>
<RestoreSources>@DOTNET_PACKAGES_DIR@;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
</PropertyGroup>
<ItemGroup>
<RuntimeLinuxX64 Include="@DOTNET_PACKAGES_DIR@/@[email protected].*.nupkg"/>
<RuntimeOsxX64 Include="@DOTNET_PACKAGES_DIR@/@[email protected].*.nupkg"/>
<RuntimeWinX64 Include="@DOTNET_PACKAGES_DIR@/@[email protected].*.nupkg"/>
<RuntimeLinuxArm64 Include="@DOTNET_PACKAGES_DIR@/@[email protected].*.nupkg"/>
<RuntimeOsxArm64 Include="@DOTNET_PACKAGES_DIR@/@[email protected].*.nupkg"/>
<PackageReference Include="@[email protected]" Version="@PROJECT_VERSION@" Condition="Exists('@(RuntimeLinuxX64)')"/>
<PackageReference Include="@[email protected]" Version="@PROJECT_VERSION@" Condition="Exists('@(RuntimeOsxX64)')" />
<PackageReference Include="@[email protected]" Version="@PROJECT_VERSION@" Condition="Exists('@(RuntimeWinX64)')" />
<PackageReference Include="@[email protected]" Version="@PROJECT_VERSION@" Condition="Exists('@(RuntimeLinuxArm64)')"/>
<PackageReference Include="@[email protected]" Version="@PROJECT_VERSION@" Condition="Exists('@(RuntimeOsxArm64)')" />
</ItemGroup>
</Project>