Skip to content

Commit

Permalink
Added missing runtime configuration for native libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianeicher committed Jul 20, 2020
1 parent e456230 commit 557d867
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pushd $PSScriptRoot

# Ensure 0install is in PATH
if (!(Get-Command 0install -ErrorAction SilentlyContinue)) {
$env:PATH = "$(Resolve-Path ..\artifacts\Release\net45);$env:PATH"
$env:PATH = "$(Resolve-Path ..\artifacts\Release\net45\win);$env:PATH"
}

if (Test-Path ..\artifacts\Documentation) {rm -Recurse -Force ..\artifacts\Documentation}
Expand Down
2 changes: 1 addition & 1 deletion feed/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pushd $PSScriptRoot

# Ensure 0install is in PATH
if (!(Get-Command 0install -ErrorAction SilentlyContinue)) {
$env:PATH = "$(Resolve-Path ..\artifacts\Release\net45);$env:PATH"
$env:PATH = "$(Resolve-Path ..\artifacts\Release\net45\win);$env:PATH"
}

# Build feed and archive
Expand Down
6 changes: 6 additions & 0 deletions src/Commands/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="4.0.4.0" newVersion="4.0.6.0"/>
</dependentAssembly>
</assemblyBinding>
<relativeBindForResources enabled="true" />
<enforceFIPSPolicy enabled="false" />
<generatePublisherEvidence enabled="false" />
Expand Down
3 changes: 3 additions & 0 deletions src/Commands/Commands.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
<IncludeSymbols>True</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)'=='net45'">
<RuntimeIdentifier>win</RuntimeIdentifier>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)'=='netcoreapp3.1'">
<Nullable>enable</Nullable>
</PropertyGroup>
Expand Down
1 change: 1 addition & 0 deletions src/DesktopIntegration/DesktopIntegration.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<RootNamespace>ZeroInstall.DesktopIntegration</RootNamespace>
<LangVersion>8.0</LangVersion>
<TargetFramework>net45</TargetFramework>
<RuntimeIdentifier>win</RuntimeIdentifier>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<NoWarn>$(NoWarn);1591</NoWarn>
Expand Down
5 changes: 4 additions & 1 deletion src/Model/Model.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
<IncludeSymbols>True</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)'=='net45'">
<RuntimeIdentifier>win</RuntimeIdentifier>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)'=='netstandard2.1'">
<Nullable>enable</Nullable>
</PropertyGroup>
Expand Down Expand Up @@ -58,7 +61,7 @@
<PackageReference Include="Microsoft.XmlSerializer.Generator" Version="2.2.1" PrivateAssets="All" />
</ItemGroup>-->
<ItemGroup Condition="'$(MSBuildRuntimeType)'=='Full'">
<None Include="..\..\artifacts\$(Configuration)\net45\$(AssemblyName).XmlSerializers.dll" Pack="true" PackagePath="lib/net45" />
<None Include="..\..\artifacts\$(Configuration)\net45\win\$(AssemblyName).XmlSerializers.dll" Pack="true" PackagePath="lib/net45" />
<!--<None Include="..\..\artifacts\$(Configuration)\netstandard2.0\$(AssemblyName).XmlSerializers.dll" Pack="true" PackagePath="lib/netstandard2.0" />-->
</ItemGroup>

Expand Down
3 changes: 3 additions & 0 deletions src/Publish/Publish.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
<IncludeSymbols>True</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)'=='net45'">
<RuntimeIdentifier>win</RuntimeIdentifier>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)'=='netstandard2.1'">
<Nullable>enable</Nullable>
</PropertyGroup>
Expand Down
3 changes: 3 additions & 0 deletions src/Services.Interfaces/Services.Interfaces.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
<IncludeSymbols>True</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)'=='net45'">
<RuntimeIdentifier>win</RuntimeIdentifier>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)'=='netstandard2.1'">
<Nullable>enable</Nullable>
</PropertyGroup>
Expand Down
3 changes: 3 additions & 0 deletions src/Services/Services.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
<IncludeSymbols>True</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)'=='net45'">
<RuntimeIdentifier>win</RuntimeIdentifier>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)'=='netstandard2.1'">
<Nullable>enable</Nullable>
</PropertyGroup>
Expand Down
3 changes: 3 additions & 0 deletions src/Store/Store.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
<IncludeSymbols>True</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)'=='net45'">
<RuntimeIdentifier>win</RuntimeIdentifier>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)'=='netstandard2.1'">
<Nullable>enable</Nullable>
</PropertyGroup>
Expand Down
3 changes: 3 additions & 0 deletions src/UnitTests/UnitTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\sgKey.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)'=='net48'">
<RuntimeIdentifier>win</RuntimeIdentifier>
</PropertyGroup>

<!-- Dependencies -->
<ItemGroup>
Expand Down

0 comments on commit 557d867

Please sign in to comment.