我有一個項目,我有一段時間沒有運行,建立與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