Unable to publish project on Linux on 2.1 Preview 2
See original GitHub issueFrom @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.csproj
is 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
Issue Analytics
- State:
- Created 5 years ago
- Comments:21 (11 by maintainers)
Top Results From Across the Web
NET Core 2.1 Preview 2 Known Issues
NET Core SDK is released (RTM), authors need to rebuild and re-publish their tools with the released RTM SDK. Global Tools must target...
Read more >ubuntu - Published .Net-Core App won't run
so my question is should I use the fault-free one in publish or there's an error I should fix? EDIT (.NET CORE INFO...
Read more >"Waiting for intellisense to finish initializing" & "Build failed"
I managed once to get past the “Intellisense” waiting message and saw the CMake Property Window (json editor), but builds still failed with...
Read more >Fresh VS 17.1 Preview 2 Install Package Error
After installing VS 17.1 Preview 2 with Mobile (Maui) Features, launching it, and creating a new Maui project, the included error popped up....
Read more >dotnet publish command - .NET CLI
The dotnet publish command publishes a .NET project or solution to a directory.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@danwalmsley you will need to add
to the host app project as well for this error.
Or publish using
Thanks finally I managed to get the workaround to work 😃