Minimal console app unhandled FileNotFoundException
See original GitHub issueI installed the mac osx pkg installer from get.asp.net. I then created a very minimal hello world console app. I’ve ran dotnet restore
which appears to have run successfully. Then when I run dotnet run
I get this:
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly ‘System.Console, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies. The system cannot find the file specified.
Issue Analytics
- State:
- Created 8 years ago
- Comments:47 (18 by maintainers)
Top Results From Across the Web
Minimal console app unhandled FileNotFoundException
I've ran dotnet restore which appears to have run successfully. Then when I run dotnet run I get this: Unhandled Exception: System.IO.
Read more >An unhandled exception of type 'System.IO. ...
I'm developing a C# application and I get the following error at debug runtime: An unhandled exception of type 'System.IO.FileNotFoundException' ...
Read more >How to Handle the FileNotFoundException in C# | Rollbar
The FileNotFoundException occurs in C# when the system is unable to locate a file when the program is executed. Learn how to handle...
Read more >how to solve Break Mode (An unhandled exception of type ' ...
In this case it was an unhandled exception (error). Fortunately the debugger will show you the line of code it is failing on...
Read more >How to resolve “Could not load file or assembly … or one of its ...
LOG: Using application configuration file: F:\visual studio 2017\Projects\TestBindingApp\TestBindingApp\bin\Debug\TestBindingApp.exe.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey, seems like this bug is back:
I’m on El Capitan 10.11 and freshly installed the .NET Core SDK Installer linked in the readme.
@dlech good, glad to see you’re back on track. 😃