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.

Run a 3.0 project with SDK 3.1.100-rtm-014727, restore failed with error NU1102: Unable to find package Microsoft.AspNetCore.App.Ref with version (= 3.0.1) and package Microsoft.NETCore.App.Host.win-x64 with version (= 3.0.1).

See original GitHub issue

Repro Steps:

  1. Only install SDK 3.1.100-rtm-014727
  2. Run a 3.0 project

Expected:

Restore and build successfully.

Actual:

Restore failed with error NU1102: image error NU1102: Unable to find package Microsoft.AspNetCore.App.Ref with version (= 3.0.1) error NU1102: - Found 12 version(s) in nuget.org [ Nearest version: 3.1.0-preview1.19508.20 ] error NU1102: - Found 0 version(s) in Microsoft Visual Studio Offline Packages error NU1102: Unable to find package Microsoft.NETCore.App.Host.win-x64 with version (= 3.0.1) error NU1102: - Found 10 version(s) in nuget.org [ Nearest version: 3.1.0-preview1.19506.1 ] error NU1102: - Found 0 version(s) in Microsoft Visual Studio Offline Packages

Note:

  1. If run a 2.x project, restore and build successfully, run shows as below:
It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '2.2.0' was not found.
  - The following frameworks were found:
      3.1.0 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
You can resolve the problem by installing the specified framework and/or SDK.
The specified framework can be found at:
  - https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=2.2.0&arch=x64&rid=win10-x64
  1. If install .net core 3.0 Runtime, it also failed with error NU1102 as above.
  2. For VS Master 29517.7(16.5.0 Preview 2.0), install or uninstall .net core 3.0 Runtime, it can restore and build successfully.

Dotnet --info:

.NET Core SDK (reflecting any global.json): Version: 3.1.100 Commit: cd82f021f4

Runtime Environment: OS Name: Windows OS Version: 10.0.17763 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\3.1.100\

Host (useful for support): Version: 3.1.0 Commit: 65f04fb6db

.NET Core SDKs installed: 3.1.100 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed: Microsoft.AspNetCore.App 3.1.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 3.1.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 3.1.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-download

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
FilBot3commented, Jan 11, 2020

What if this is still happening on fresh 3.1.100 installs of dotNet Core SDK?

0reactions
FilBot3commented, Feb 8, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

Why am I getting 'Unable to find package Microsoft. ...
' error and Unable to find package Microsoft.NETCore.App.Host.win-x64 errors. My project is file is as follows: <Project Sdk="Microsoft.NET.
Read more >
Unable to find package Microsoft.NETCore.App.Host.win ...
In .csproj file of our application we have RuntimeFrameworkVersion. There we update it to desired version :
Read more >
Unable to publish using target framework netcore3.1 and ...
I have desktop WPF app written in C# and using NetCore3.1. ... r.csproj : error NU1101: Unable to find package Microsoft.NETCore.
Read more >
Unable to resolve 'Microsoft.NETCore.App.Ref (= 3.0.0)' for ...
I've chosen that as the Target Framework and when I build I get the following error: NU1100 Unable to resolve 'Microsoft.NETCore.App.Ref (= 3.0....
Read more >
Getting an error trying to run azure function error NU1100
I'm using vscode and git bash as a terminal. I tried: Resolving the dependencies. Downloading and installing the .net 6.0 sdk and runtime....
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