简体   繁体   中英

0x80070002 Error when creating a new .Net Core project in VS 2015 Community Edition

I get the 0x80070002 error every time I try to create an ASP.NET Core project. I have installed the VS 2015 update 3 and Microsoft .NET Core Tools/Templates.

I ended up with a blank solution with all 3 ASP.NET Core Templates. Checked the VS 2015 template folder for the corresponding files and it seems OK.

What could be the problem?

在此处输入图片说明

Try the following 2 things:

  • Go to VS Installation => Modify and make sure that you check Web Development Tools (If you have not marked before).
  • Make sure that you install the latest .NET Core tooling for Visual Studio from here and click on .NET Core.

I've also written a blog post where you can find how to prepare your system for ASP.NET Core.

With few days internet hunting and no positive results tried following steps and got this working

  • Step 1: Uninstalled DNVM (manual uninstall each version)
  • Step 2: Uninstall all core prior updates (Except the Web Deployment Tool)
  • Step 3: Delete 'ComponentModelCache' folders from AppData
  • Step 4: Delete 'devenv.exe.config' from AppData
  • Step 5: Upgrade DNVM to latest
  • Step 6: Running the 'DotNetCore.1.0.0-Runtime-x64.exe'
  • Step 7: Installed 'DotNetCore.1.0.0.RC2-VS2015Tools.Preview'
  • Step 8: Checked VS2015 setup if nothing missed out(in my case everything else was present)

Got everything working finally and didn't had to re-install/download VS 2015 CE.

This is for Windows installation

Before you try uninstalling/installing everything Try this:

  • go to the main page https://www.microsoft.com/net/download/core

  • Do not run Step-by-Step installer for some reason it is installing the tools and not the framework. Instead run the individual installers

  • .NET Core 1.0.3 SDK - Installer (x64 / x86 .exe)

  • Visual Studio 2015 Tools (Preview 2) (x64 / x86 .exe)

Mac Installation

The only issue I ran was that my local version of .net core was older and the Yeoman Generator is already using the new .csprj file (new to core lol) which force you to update to the latest version, so all I had to do was install the latest, for me at the time of this post is: .NET Core SDK 1.0 rc4 build 004771 https://github.com/dotnet/core/blob/master/release-notes/rc4-download.md

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM