sdk: Unable to publish project on Linux on 2.1 Preview 2
From @danwalmsley on April 25, 2018 15:57
Hi, my project built and published no problem on 2.0 and 2.1 Preview 1
but now I get:
/home/dan/repos/AvalonStudio/AvalonStudio/AvalonStudio.Languages.Xaml/AvalonStudio.Languages.Xaml.csproj : error NU1605: Detected package downgrade: Microsoft.NETCore.App from 2.0.6 to 2.0.0. Reference the package directly from the project to select a different version. [/home/dan/repos/AvalonStudio/AvalonStudio/AvalonStudio/AvalonStudio.csproj]
/home/dan/repos/AvalonStudio/AvalonStudio/AvalonStudio.Languages.Xaml/AvalonStudio.Languages.Xaml.csproj : error NU1605: AvalonStudio.Languages.Xaml -> Avalonia.Designer.HostApp -> Microsoft.NETCore.App (>= 2.0.6) [/home/dan/repos/AvalonStudio/AvalonStudio/AvalonStudio/AvalonStudio.csproj]
/home/dan/repos/AvalonStudio/AvalonStudio/AvalonStudio.Languages.Xaml/AvalonStudio.Languages.Xaml.csproj : error NU1605: AvalonStudio.Languages.Xaml -> Microsoft.NETCore.App (>= 2.0.0) [/home/dan/repos/AvalonStudio/AvalonStudio/AvalonStudio/AvalonStudio.csproj]
AvalonStudio.csproj is a netcoreapp2.0 project.
AvalonStudio.Languages.Xaml.csprojis a netcoreapp2.0 project
Avalonia.Designer.HostApp is also a netcoreapp2.0 project.
The previous version was happy with this.
The repository containing the code at specific commit to repro is here: https://github.com/VitalElement/AvalonStudio/commit/e947164d84a72f61a5b44dfcb4b5c93e7af2d63e
git clone --recursive
cd AvalonStudio\AvalonStudio\AvalonStudio
dotnet publish -c Release -f netcoreapp2.0 -r debian.8-x64
Let me know if I can provide any further information.
Thanks in advance.
Copied from original issue: dotnet/coreclr#17774
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 21 (11 by maintainers)
Commits related to this issue
- Trying to fix build (https://github.com/dotnet/sdk/issues/2207#issuecomment-389124444) — committed to noobot/noobot by Workshop2 6 years ago
@danwalmsley you will need to add
to the host app project as well for this error.
Or publish using