Could not load file or assembly 'System.Runtime, Version=4.2.0.0 on empty project
See original GitHub issueHi,
I read other post about this error but I m not sure that the other have this issue only when the project is deployed to azure.
Here is my cs projet:
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.2</TargetFramework>
<LangVersion>latest</LangVersion>
<UseNETCoreGenerator>true</UseNETCoreGenerator>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="6.0.0" />
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Storage" Version="3.0.3" />
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="4.3.1" />
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.6.1" />
<PackageReference Include="Microsoft.Azure.WebJobs.Logging.ApplicationInsights" Version="3.0.4" />
<PackageReference Include="Microsoft.Azure.WebJobs" Version="3.0.4" />
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions" Version="3.0.1" />
<PackageReference Include="Microsoft.Extensions.Configuration.CommandLine" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Configuration" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="2.2.0" />
<PackageReference Include="NetEscapades.Extensions.Logging.RollingFile" Version="1.0.1" />
</ItemGroup>
My thinking is maybe, .net core 2.2.1 is not yet available on Azure. What do you think? How to fix this issue?
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
Could not load file or assembly 'System.Runtime, Version= ...
This happens when you open the folder instead of the solution file. Simply ensure that you load the solution file and not the...
Read more >NET Core: Could not load file or assembly 'System. ...
This seems very similar to Issue 150 and Issue 139 but I could not solve the problem by removing dependencies to my shared...
Read more >Cannot load file or assembly 'System.Runtime'
The system cannot find the file specified. Here is the log: Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.
Read more >"Could not load a file or assembly '"System.Runtime ...
when I am using this control in form of my project, in my system (Developer Machine were source code is installed) , after...
Read more >Could not load file or assembly System.Runtime in NET4x
Try 1: ... I found reference to System.Runtime in csproj and tried to play with the available properties. ... Nothing could bring System.Runtime...
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
I finally found the solution, in run.cmd use :
instead of
This issue was moved to aspnet/AspNetCore#8078