我有一个项目,我有一段时间没有运行,建立与dotnet核心1.1.2依赖关系。dotnet核心:找不到程序集文件Microsoft.CSharp.dll
在此期间,我更新了visual studio,可能为2.0安装了一些dotnet核心内容,并且我的应用程序不再运行。
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)
我该怎么做才能开始弄清楚为什么它不工作?
根据你的例外,它注意到'net462 \ win10-x64'。我会高度怀疑你的'.csproj'文件需要审查。如果你不介意分享? – Svek
我将应用程序升级到了dotnet核心2.0和剃须刀页面,并解决了这个问题。 –
看起来您的组装路径缺少GAC。 – aethercowboy