C# ASP.NET MVC Forms Creating a Basic Form Getting Familiar with Our HTML Form

Kevin Gates
Kevin Gates
14,787 Points

Using Visual Studio 2017, I get a: Could not find a part of the path 'C:\Users\...\FitnessFrog\bin\roslyn\csc.exe'.

I don't know if the older files used that, but new ones do not. Not sure how to fix the error.

3 Answers

Kevin Gates
Kevin Gates
14,787 Points

I found the solution after being inspired by a StackOverflow message.

The default files use a NuGet package for compiler that is 1.0.0 and that isn't able to compile the code. If you update that package for this solution folder to the latest version, then everything works well.

Joshua Dawson
Joshua Dawson
1,176 Points

The above comment is correct. Here is an easy way to update the NuGet Packages.

Right click on your project source and select manage NuGet Packages. You will see a browse , install, and update tab. Select the update tab and you should see several NuGet packages that require updating. Process the updates. Once complete I like to right click on the project source and rebuild. Once build is complete without any errors trying opening the page again. It should open without any problems now.

kevin hudson
PRO
kevin hudson
Pro Student 9,652 Points

So this makes our project solution completely different than what the instructor has. It's adding bootstrap file when you update newget and other things. Million dollar question is why does this work for the instructor without updating newget packages?

Kevin Gates
Kevin Gates
14,787 Points

Other starting code may have been different? Not sure entirely.