I try to put the Microsoft.*.dll and System.*.dll togather to a new folder.
以便把(第三方或)系統的和應用的dll分開。
以前花了很長的一段時間研究以後,最後:
I find xxx.deps.json can make it work.html
以後我還特地寫了篇文章介紹它:http://www.javashuo.com/article/p-phwtjcai-mh.htmlgit
but today,when i update the Microsoft. Aspnetcore to 2.2.0 version.github
以前框架引用的是全家桶Microsoft.AspNetCore.All,感受發佈的時候,多了太多沒用的dll。json
因此爲了瘦身,只挑幾個必要的,而後升級了一下版本,畢竟據說NetCore新版本性能更強了。服務器
只是沒想到啊。app
it dose not work, and make me crazy.框架
because it always show me the msg like this:性能
F:\Code\OpenSource\Aries-GitHub\trunk\Aries.DevFramework\Web.UI_NetCore\bin\Rele ase\PublishOutput>dotnet Web.UI.dll Error: **An assembly specified in the application dependencies manifest (Web.UI.deps.js on) was not found**: package: 'Microsoft.AspNetCore.Authentication.Abstractions', version: '2.2.0 ' path: 'lib/netstandard2.0/Microsoft.AspNetCore.Authentication.Abstractions.d ll'
測試
and the json like this:this
"Microsoft.AspNetCore.Authentication.Abstractions/2.2.0": { "dependencies": { "Microsoft.AspNetCore.Http.Abstractions": "2.2.0", "Microsoft.Extensions.Logging.Abstractions": "2.2.0", "Microsoft.Extensions.Options": "2.2.0" }, "runtime": { "lib/netstandard2.0/Microsoft.AspNetCore.Authentication.Abstractions.dll": { "fileVersion": "2.2.0.18316" } } }
我花了N長的時間在檢測配置和肯定路徑的正確性,無論是相對的,仍是絕對的;
在服務器上,在本地上,但結果,卻依舊很悲催。
甚至,我上一篇中指向把源碼都下到本地了,搜了半天關鍵字,也沒啥發現。
it take me much time to find out the question what it's.
when i try to maike it like this:
Microsoft.AspNetCore.Authentication.Abstractions
Microsoft.AspNetCore.Authentication.Abstractions/2.2.xxx
it work.
就是這樣,只要版本號不是2.2.0,它就一切正常。
以後又幾回測試,發現版本號是4.6.0也一樣有問題。
and then i find the version on /4.6.0 ,it does not work also.
就是這樣,版本號三位數,尾數是0的,就提示找不到dll。
how ugly this bug it's.
過點時間再升一下版本,只要尾號不是以0爲結尾就好,像以前一直用2.0.3版本,就很好。
或者,把版本號替換掉。
Github上也留言了,小小問題,希望早日修復:https://github.com/dotnet/core-setup/issues/5588
最後,祝大夥玩NetCore玩的快樂。