question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to publish project on Linux on 2.1 Preview 2

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:21 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
dasMullicommented, May 15, 2018

@danwalmsley you will need to add

  <PropertyGroup>
    <TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
  </PropertyGroup>

to the host app project as well for this error.

Or publish using

dotnet publish -f netcoreapp2.0 -r win7-x64 -p:TargetLatestRuntimePatch=true
0reactions
danwalmsleycommented, May 16, 2018

Thanks finally I managed to get the workaround to work 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found