ASP .NET Core 2.0.0 running on SDK 2.1.0 not working - Linux
See original GitHub issueSteps to reproduce
Install dotnetcore.linux.x86.sdk-2.1.300-x64.tar.gz on RHEL.
Build a ASP .NET Core 2.0.0 app using SDK 2.0.0
Expected behavior
ASP .NET Core app should run on Linux with on ASP .NET Core 2.1.300
Actual behaviour
Error:
An assembly specified in the application dependencies manifest (apihost.deps.j
son) was not found:
package: ‘Microsoft.ApplicationInsights.AspNetCore’, version: ‘2.1.1’
path: ‘lib/netstandard1.6/Microsoft.ApplicationInsights.AspNetCore.dll’
This assembly was expected to be in the local runtime store as the application
was published using the following target manifest files:
aspnetcore-store-2.0.0-linux-x64.xml;aspnetcore-store-2.0.0-osx-x64.xml;aspn
etcore-store-2.0.0-win7-x64.xml;aspnetcore-store-2.0.0-win7-x86.xml
Environment data
dotnet --info
output:
Host (useful for support):
Version: 2.1.0
Commit: caa7b7e2ba
.NET Core SDKs installed:
2.1.300 [/opt/dotnet/sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.0 [/opt/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.0 [/opt/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.0 [/opt/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top GitHub Comments
@steveharter i am a bit confused by the reponse as in issue 24090
https://github.com/dotnet/corefx/issues/24090
It is suggested this specific scenario was tested and it was possible.
Thanks
Also, on linux you may need to install the asp.net core runtime store in addition to the 2.0 .net core runtime, depending on which instructions you followed. I suggest installing a 2.1.2xx SDK in addition to 2.1.300/301 since it should install everything you need (but there’s no need to use that SDK version).