A colleague has been putting together some skeleton projects for our next job. The projects work fine on his machine and one of our development servers is hosting the dev instance fine. These projects are more or less empty as we are just setting up. The consist of a single static html file.
The projects build fine on my dev machine but as soon as a select one of the project and attempt to debug it fails with:
An unhandled exception of type 'System.IO.FileNotFoundException' occurred in Unknown Module. Could not load file or assembly 'System.Runtime, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
I've triple checked that I've installed all the dependencies.
dotnet restore
Has been run and we're using yarn
for dependency management.
I can create a site using dotnet new knockout
and open the resultant site and run it fine so I'm sure .NET Core is all installed and working.
I've limited experience with .NET Core so far and have tried everything I know to figure this one out. Any pointers as to what is going wrong here would be most appreciated.
So after a lot of poking around it appears I've fixed my scenario.
What I did:
This seems to have "woken" something up.
When I then re-opened the original solution it built the Properties directories and launchOptions.json files for each project wheras it didn't do this before.
I've also noticed that the Visual Studio UI is different. Previously the File menu didn't even have a close solution option available.
All very, very odd.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With