Search code examples
c#visual-studio-community

Error thrown when creating a new project Visual Studio


I've recently uninstalled and reinstalled Visual Studio Community 2015 and now when I try to create a new project this error is thrown:

Could not load file or assembly 'Microsoft.VisualStudio.Web.ProjectCreation.Contracts, Version = 14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

I've just reinstall Visual Studio, should it be a framework problem? I'm thinking in uninstall and reinstall some framework versions, should I? Why is this happening?


Solution

  • I had to reset Windows 10 and now it works, it was all because I was trying to install ASP.net Core downloading DotNetCore.1.0.1-VS2015Tools.Preview2.0.2 and installing it separately, then ASP.net Core was not working properly, I was trying some things by myself and probably I did something I shouldn't do and Visual Studio wasn't working properly. Once reinstalled Windows 10, I installed ASP.net Core using the template that gives Visual Studio(Add ASP.net 5 RC2 or something like that) and now it works