Running netcore 2.2 program is reporting an error
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’
Finally it turns out to be a case issue, and my goodness, I’m used to Window being case-insensitive, so suddenly it’s case-sensitive.
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.
Success after changing dll to lower case
Similar Posts:
- Vs publish error: NETSDK1152: multiple publishing output files with the same relative path were found
- IIS publishing Net core 3.1 error [How to Solve]
- Solution to AppDomain.CurrentDomain.BaseDirectory
- VScode Add Startup Project Files Error: Could not execute because the application was not found or a compatible .NET SDK is not installed
- How to Solve .Net Core Class Library Import System.Windows.Forms Error
- [Solved] asp.net core Microsoft.Hosting.Lifetime[0] Application is shutting down…
- MAC VS Error: SDK package not found “Microsoft.NET.SDK [Solved]
- c# – the calling thread must be STA, because ma…
- How to Solve .NET 6 running on win7 SP1 error
- DOTNET Run AES-GCM Program ON MACOS (ERROR ALGORITHM ‘AESGCM’ IS NOT SUPPORTED ON THIS PLATFORM)