我要發佈的.NET 2.0的核心項目在Windows 10 ubuntu16.04:未找到「Microsoft.ApplicationInsights.AspNetCore」
dotnet build
dotnet publish -c Release -r ubuntu.16.04-x64
構建和pulish項目並運行後,它在Ubuntu中,我看到這個錯誤:
Error: assembly specified in the dependencies manifest was not found ‘Microsoft.ApplicationInsights.AspNetCore’, version: 'x.x', path: ‘lib/netstandard1.3/Microsoft.ApplicationInsights.AspNetCore.dll’
我還測試了這款解決方案:
<PublishWithAspNetCoreTargetManifest>false</PublishWithAspNetCoreTargetManifest>
但沒有解決:(
雖然我沒有在.NET的核心這個問題1
您是否嘗試過運行'dotnet restore'以便下載'NuGet'依賴項? –
是的,我嘗試了,但我得到了同樣的錯誤... 此文件(Microsoft.ApplicationInsights.AspNetCore.dll)存在於發佈文件夾中,但我在ubuntu16.04中有錯誤... –