-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Microsoft.AspNetCore.Hosting.Abstractions, Version=3.0.0.0 assembly is missing #2194
Comments
@martore can you show what your CSPROJ looks like? |
ConsoleApp.csproj
Program.cs
Startup.cs
These are installed on PC (beside .NET Core 2.2):
|
Adding @natemcmaster who is an expert on this. Two things I suspect:
|
Here is the minimal change you need to make to fix this. cref dotnet/aspnetcore#3612 and https://docs.microsoft.com/en-us/aspnet/core/migration/22-to-30 <ItemGroup>
- <PackageReference Include="Microsoft.AspNetCore.App" Version="3.0.0-preview-18579-0056" />
+ <FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup> The preview 2 SDK should resolve this error automatically. dotnet/sdk#2738 |
Changes suggested in #2194 (comment) resolved the issue. Thanks. |
Thank you for putting a DIRECT breadcrumb to the answer that resolved it. And not a "got it working" with no details. |
Microsoft.AspNetCore.Hosting.Abstractions, Version=3.0.0.0 assembly is missing
I have created new .NET Core 3.0 project, and moved code from .NET Core 2.1 (so far only Startup.cs and Program.cs) to the new project. When started, the following exception is thrown:
NuGet package
Microsoft.AspNetCore.Hosting.Abstractions
version 3.0.0.0 is not available in NuGet Package Manager. There is only 2.2.0 version.Is there something I am doing wrong here or I will have to wait on
Microsoft.AspNetCore.Hosting.Abstractions
to be updated to version 3.0.0.0?Packages I have included in my project:
Microsoft.AspNetCore.App 3.0.0-preview
Microsoft.AspNETCore.App 3.0.0-preview
The text was updated successfully, but these errors were encountered: