Closed KristofVerbiest closed 1 year ago
In the meantime this is a workaround: https://github.com/dotnet/core/issues/907 The new project (that does not have the problem) is
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<WarningsAsErrors />
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<WarningsAsErrors />
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.SignalR.Protocols.MessagePack" Version="3.1.2" />
<PackageReference Include="Tavis.UriTemplates" Version="1.1.1" />
</ItemGroup>
</Project>
Note the empty 'WarningAsErrors' nodes.
I have a project that depends on Tavis.UriTemplates and that I want to publish for the linux-arm runtime. This fails due to 'package downgrade' errors. The full error is included below.
All these steps are necessary to reproduce the error:
dotnet publish -c Release -r linux-arm
--> errorThis is my project file:
The full error I get is: