-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathMizux.CMakeSwig.csproj.in
57 lines (50 loc) · 3.2 KB
/
Mizux.CMakeSwig.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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Library</OutputType>
<LangVersion>8.0</LangVersion>
@DOTNET_TFM@
<RuntimeIdentifier>@RUNTIME_IDENTIFIER@</RuntimeIdentifier>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<AssemblyName>@DOTNET_PROJECT@</AssemblyName>
<Version>@PROJECT_VERSION@</Version>
<!-- Nuget Properties -->
<Description>.NET wrapper for the CMakeSwig project</Description>
<!-- Pack Option -->
<Title>@DOTNET_PROJECT@ v@PROJECT_VERSION@</Title>
<PackageId>@DOTNET_PROJECT@</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="ValidateRuntimePack" BeforeTargets="GenerateNuspec">
<ItemGroup>
<RuntimeLinux Include="@DOTNET_PACKAGES_DIR@/@[email protected].*.nupkg"/>
<RuntimeOsx Include="@DOTNET_PACKAGES_DIR@/@[email protected].*.nupkg"/>
<RuntimeWin Include="@DOTNET_PACKAGES_DIR@/@[email protected].*.nupkg"/>
</ItemGroup>
<Message Importance="high" Text="Package @[email protected]: found" Condition="Exists('@(RuntimeLinux)')"/>
<Message Importance="high" Text="------- $(OS) "/>
<Message Importance="high" Text="Package @[email protected]: not found" Condition="!Exists('@(RuntimeLinux)')"/>
<Message Importance="high" Text="Package @[email protected]: found" Condition="Exists('@(RuntimeOsx)')"/>
<Message Importance="high" Text="Package @[email protected]: not found" Condition="!Exists('@(RuntimeOsx)')"/>
<Message Importance="high" Text="Package @[email protected]: found" Condition="Exists('@(RuntimeWin)')"/>
<Message Importance="high" Text="Package @[email protected]: not found" Condition="!Exists('@(RuntimeWin)')"/>
<Error Text="You must locally 'dotnet pack' at least one @[email protected].{rid} Project." Condition="!Exists('@(RuntimeLinux)') AND !Exists('@(RuntimeOsx)') AND !Exists('@(RuntimeWin)')"/>
</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>
<RuntimeLinux Include="@DOTNET_PACKAGES_DIR@/@[email protected].*.nupkg"/>
<RuntimeOsx Include="@DOTNET_PACKAGES_DIR@/@[email protected].*.nupkg"/>
<RuntimeWin Include="@DOTNET_PACKAGES_DIR@/@[email protected].*.nupkg"/>
<PackageReference Include="@[email protected]" Version="@PROJECT_VERSION@" Condition="Exists('@(RuntimeLinux)')"/>
<PackageReference Include="@[email protected]" Version="@PROJECT_VERSION@" Condition="Exists('@(RuntimeOsx)')" />
<PackageReference Include="@[email protected]" Version="@PROJECT_VERSION@" Condition="Exists('@(RuntimeWin)')" />
</ItemGroup>
</Project>