What do you mean by it is not loading? The message you posted indicates that the project was loaded and then the compilation ran and identified a compiler error. This can happen if you're using NuGet packages and the packages haven't been fully downloaded yet. Doing a rebuild generally solves the issue.
If this is a compiler error then upgrading .NET wouldn't have impacted that as the compiler would behave the same. Posting the code would be useful.