dotnet核心:找不到程序集文件Microsoft.CSharp.dll [英] dotnet core : Can not find assembly file Microsoft.CSharp.dll

查看:117
本文介绍了dotnet核心:找不到程序集文件Microsoft.CSharp.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个项目已经有一段时间没有运行了,使用dotnet core 1.1.2依赖项进行构建。

I have a project that i have not run for some while, build with dotnet core 1.1.2 dependencies.

与此同时,我更新了Visual Studio,可能为2.0安装了一些dotnet核心内容,并且我的应用程序不再运行。

in the meanwhile I have updated visual studio, possible installed some dotnet core stuff for 2.0 and my application do not run anymore.

InvalidOperationException: Can not find assembly file Microsoft.CSharp.dll at 'C:\dev\EarthML\EarthML.Mapify\src\EarthML.Mapify.Portal\bin\Debug\net462\win10-x64\refs,C:\dev\EarthML\EarthML.Mapify\src\EarthML.Mapify.Portal\bin\Debug\net462\win10-x64\'
Microsoft.Extensions.DependencyModel.Resolution.AppBaseCompilationAssemblyResolver.TryResolveAssemblyPaths(CompilationLibrary library, List<string> assemblies)

我应该怎么做才能弄清楚为什么它不起作用?

What would I do to start figuring out why it dont work?

推荐答案

我将应用程序升级到dotnet core 2.0和剃须刀页面,并且解决了这个问题。

I upgraded the application to dotnet core 2.0 and razor pages and got around the issue.

这篇关于dotnet核心:找不到程序集文件Microsoft.CSharp.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆