運行netcore2.2程序是報錯


運行netcore2.2程序是報錯

C:\myself\WuZhui\WuZhui\bin\Release\netcoreapp2.2>dotnet WuZhui.DLL
Error:
An assembly specified in the application dependencies manifest (WuZhui.deps.json) has already been found but with a different file extension:
package: 'WuZhui', version: '1.0.0'
path: 'WuZhui.dll'
previously found assembly: 'C:\myself\WuZhui\WuZhui\bin\Release\netcoreapp2.2\WuZhui.DLL'

 

最后發現是大小寫問題,我的天啊,習慣window不區分大小寫,怎么突然區分大小寫了;

 

C:\myself\WuZhui\WuZhui\bin\Release\netcoreapp2.2>dotnet WuZhui.dll
info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[0]
User profile is available. Using 'C:\Users\jiangwenyuan\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
Hosting environment: Production
Content root path: C:\myself\WuZhui\WuZhui\bin\Release\netcoreapp2.2
Now listening on: http://localhost:5000
Now listening on: https://localhost:5001
Application started. Press Ctrl+C to shut down.

 

dll改成小寫后成功


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM