dotnet: Fix Google.OrTools-full.csproj.in (#2724)

This commit is contained in:
Corentin Le Molgat
2022-05-23 11:10:52 +02:00
parent c9c7c69428
commit 34d41226bf

View File

@@ -84,18 +84,24 @@
<!-- Validate at least one runtime package has been generated -->
<Target Name="ValidateRuntimePack" BeforeTargets="GenerateNuspec">
<ItemGroup>
<RuntimeLinux Include="@DOTNET_PACKAGES_DIR@/@DOTNET_PROJECT@.runtime.linux-x64.*.nupkg"/>
<RuntimeOsx Include="@DOTNET_PACKAGES_DIR@/@DOTNET_PROJECT@.runtime.osx-x64.*.nupkg"/>
<RuntimeWin Include="@DOTNET_PACKAGES_DIR@/@DOTNET_PROJECT@.runtime.win-x64.*.nupkg"/>
<RuntimeLinuxX64 Include="@DOTNET_PACKAGES_DIR@/@DOTNET_PROJECT@.runtime.linux-x64.*.nupkg"/>
<RuntimeOsxX64 Include="@DOTNET_PACKAGES_DIR@/@DOTNET_PROJECT@.runtime.osx-x64.*.nupkg"/>
<RuntimeWinX64 Include="@DOTNET_PACKAGES_DIR@/@DOTNET_PROJECT@.runtime.win-x64.*.nupkg"/>
<RuntimeLinuxArm64 Include="@DOTNET_PACKAGES_DIR@/@DOTNET_PROJECT@.runtime.linux-arm64.*.nupkg"/>
<RuntimeOsxArm64 Include="@DOTNET_PACKAGES_DIR@/@DOTNET_PROJECT@.runtime.osx-arm64.*.nupkg"/>
</ItemGroup>
<Message Importance="high" Text="------- $(OS)"/>
<Message Importance="high" Text="Package @DOTNET_PROJECT@.runtime.linux-x64: found" Condition="Exists('@(RuntimeLinux)')"/>
<Message Importance="high" Text="Package @DOTNET_PROJECT@.runtime.linux-x64: not found" Condition="!Exists('@(RuntimeLinux)')"/>
<Message Importance="high" Text="Package @DOTNET_PROJECT@.runtime.osx-x64: found" Condition="Exists('@(RuntimeOsx)')"/>
<Message Importance="high" Text="Package @DOTNET_PROJECT@.runtime.osx-x64: not found" Condition="!Exists('@(RuntimeOsx)')"/>
<Message Importance="high" Text="Package @DOTNET_PROJECT@.runtime.win-x64: found" Condition="Exists('@(RuntimeWin)')"/>
<Message Importance="high" Text="Package @DOTNET_PROJECT@.runtime.win-x64: not found" Condition="!Exists('@(RuntimeWin)')"/>
<Error Text="You must have locally all runtime packages." Condition="!Exists('@(RuntimeLinux)') OR !Exists('@(RuntimeOsx)') OR !Exists('@(RuntimeWin)')"/>
<Message Importance="high" Text="Package @DOTNET_PROJECT@.runtime.linux-x64: found" Condition="Exists('@(RuntimeLinuxX64)')"/>
<Message Importance="high" Text="Package @DOTNET_PROJECT@.runtime.linux-x64: not found" Condition="!Exists('@(RuntimeLinuxX64)')"/>
<Message Importance="high" Text="Package @DOTNET_PROJECT@.runtime.osx-x64: found" Condition="Exists('@(RuntimeOsxX64)')"/>
<Message Importance="high" Text="Package @DOTNET_PROJECT@.runtime.osx-x64: not found" Condition="!Exists('@(RuntimeOsxX64)')"/>
<Message Importance="high" Text="Package @DOTNET_PROJECT@.runtime.win-x64: found" Condition="Exists('@(RuntimeWinX64)')"/>
<Message Importance="high" Text="Package @DOTNET_PROJECT@.runtime.win-x64: not found" Condition="!Exists('@(RuntimeWinX64)')"/>
<Message Importance="high" Text="Package @DOTNET_PROJECT@.runtime.linux-arm64: found" Condition="Exists('@(RuntimeLinuxArm64)')"/>
<Message Importance="high" Text="Package @DOTNET_PROJECT@.runtime.linux-arm64: not found" Condition="!Exists('@(RuntimeLinuxArm64)')"/>
<Message Importance="high" Text="Package @DOTNET_PROJECT@.runtime.osx-arm64: found" Condition="Exists('@(RuntimeOsxArm64)')"/>
<Message Importance="high" Text="Package @DOTNET_PROJECT@.runtime.osx-arm64: not found" Condition="!Exists('@(RuntimeOsxArm64)')"/>
<Error Text="You must have locally all runtime packages." Condition="!Exists('@(RuntimeLinuxX64)') OR !Exists('@(RuntimeOsxX64)') OR !Exists('@(RuntimeWinX64)') OR !Exists('@(RuntimeLinuxArm64)') OR !Exists('@(RuntimeOsxArm64)')"/>
</Target>
<!-- Copy all .proto file(s) -->
@@ -165,6 +171,8 @@
<PackageReference Include="@DOTNET_PROJECT@.runtime.linux-x64" Version="@PROJECT_VERSION@"/>
<PackageReference Include="@DOTNET_PROJECT@.runtime.osx-x64" Version="@PROJECT_VERSION@"/>
<PackageReference Include="@DOTNET_PROJECT@.runtime.win-x64" Version="@PROJECT_VERSION@"/>
<PackageReference Include="@DOTNET_PROJECT@.runtime.linux-arm64" Version="@PROJECT_VERSION@"/>
<PackageReference Include="@DOTNET_PROJECT@.runtime.osx-arm64" Version="@PROJECT_VERSION@"/>
</ItemGroup>
</Project>