Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialDerek Vha
10,452 PointsProject not compiling
I have downloaded the workspace material. I have set ComicBookLibraryManagerWebApp as the startup project.
However when trying to run the project I get:
Seems to be issues within the downloaded material, as I have not made changes to these areas of code that it is complaining about.
Any ideas?
Thanks
1 Answer
Allan Clark
10,810 PointsThat is an odd error being the file is in the same namespace. Here is what I would do, first open the NuGet package manager (Tools -> NuGet Package Manager -> Manage NuGet Packages for solution...), check if there is a yellow alert at the top with a 'Restore' button, if so click it. Next clean (Build -> Clean Solution) and build (Build -> Build Solution). *Note, not Rebuild just Build
Derek Vha
10,452 PointsDerek Vha
10,452 PointsSo i followed your steps. However in Nuget Manager, the restore option was not available (assuming I didn't have anything to restore). A clean and build did not help either.
I managed to fix this in the end by addressing the syntax errors by commenting code, once all the syntax errors where cleared, I ran a Build. A pop up box appeared in Visual Studio saying I needed to download .Net Framework 4.7.2
Which I then did, and code is now working! A strange one indeed, thankyou