运行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改成小写后成功

posted @ 2019-03-30 17:11  圣叹&北京  阅读(2269)  评论(0编辑  收藏  举报