简体   繁体   English

在VS 2015 Community Edition中创建新的.Net Core项目时出现0x80070002错误

[英]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. 每次尝试创建ASP.NET Core项目时,都会收到0x80070002错误。 I have installed the VS 2015 update 3 and Microsoft .NET Core Tools/Templates. 我已经安装了VS 2015 Update 3和Microsoft .NET Core工具/模板。

I ended up with a blank solution with all 3 ASP.NET Core Templates. 最后,我得到了所有3个ASP.NET Core模板的空白解决方案。 Checked the VS 2015 template folder for the corresponding files and it seems OK. 检查了VS 2015模板文件夹中的相应文件,看来还可以。

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). 转到“ VS安装=>修改” ,并确保选中“ Web开发工具” (如果之前未标记)。
  • Make sure that you install the latest .NET Core tooling for Visual Studio from here and click on .NET Core. 确保从此处安装用于Visual Studio的最新.NET Core工具,然后单击.NET Core。

I've also written a blog post where you can find how to prepare your system for ASP.NET Core. 我还写了一篇博客文章 ,您可以在其中找到如何为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) 步骤1:卸载DNVM(手动卸载每个版本)
  • Step 2: Uninstall all core prior updates (Except the Web Deployment Tool) 步骤2:卸载所有先前的核心更新(Web部署工具除外)
  • Step 3: Delete 'ComponentModelCache' folders from AppData 步骤3:从AppData删除'ComponentModelCache'文件夹
  • Step 4: Delete 'devenv.exe.config' from AppData 步骤4:从AppData中删除'devenv.exe.config'
  • Step 5: Upgrade DNVM to latest 步骤5:将DNVM升级到最新版本
  • Step 6: Running the 'DotNetCore.1.0.0-Runtime-x64.exe' 第6步:运行“ DotNetCore.1.0.0-Runtime-x64.exe”
  • Step 7: Installed 'DotNetCore.1.0.0.RC2-VS2015Tools.Preview' 步骤7:安装了'DotNetCore.1.0.0.RC2-VS2015Tools.Preview'
  • Step 8: Checked VS2015 setup if nothing missed out(in my case everything else was present) 步骤8:检查VS2015设置是否没有遗漏(在我看来,所有其他内容都存在)

Got everything working finally and didn't had to re-install/download VS 2015 CE. 一切都终于工作了,而无需重新安装/下载VS 2015 CE。

This is for Windows installation 这是用于Windows安装

Before you try uninstalling/installing everything Try this: 在尝试卸载/安装所有组件之前,请尝试以下操作:

  • go to the main page https://www.microsoft.com/net/download/core 转到主页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) .NET Core 1.0.3 SDK-安装程序(x64 / x86 .exe)

  • Visual Studio 2015 Tools (Preview 2) (x64 / x86 .exe) Visual Studio 2015工具(预览版2)(x64 / x86 .exe)

Mac Installation Mac安装

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 我运行的唯一问题是我的.net core本地版本较旧,并且Yeoman Generator已经使用了新的.csprj文件(对lol来说是新的),它迫使您更新到最新版本,因此,我所要做的只是已安装最新版本,在撰写本文时对我来说是.NET Core SDK 1.0 rc4内部版本004771 https://github.com/dotnet/core/blob/master/release-notes/rc4-download.md

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 dll与注册时不在同一路径时发生错误(0x80070002) - Error (0x80070002) when dll is not in the same path from registration 在 VS 2015 社区版中将 .Net 框架从 4.5.2 更改为 4.5 时出现编译错误 - Compilation Error when change .Net framework from 4.5.2 to 4.5 in VS 2015 Community edition 尝试实例化经典ASP中的COM对象时间歇性出现0x80070002错误 - Getting 0x80070002 error intermittently when trying to instantiate a COM object in classic ASP [Wix Bundle托管引导程序]错误0x80070002:无法创建托管引导程序 - [Wix Bundle Managed Bootstrapper]Error 0x80070002: Failed to create the managed bootstrapper application VSTO错误System.IO.FileNotFoundException:系统找不到指定的文件。 (来自HRESULT的异常:0x80070002) - VSTO Error System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002) 如何修复 Visual Studio 中的“系统找不到指定的文件。(HRESULT 异常:0X80070002)”错误? - How to fix the "The system cannot find the file specified. (Exception from HRESULT:0X80070002)" error in Visual Studio? NET Standard与Net Core App:创建.NET Core Project时(使用控制台或类库) - NET Standard vs Net Core App: when creating .NET Core Project (using console or class library) 安装Microsoft .NET Core 1.0.0 VS 2015工具预览2时出现致命错误 - Fatal error when installing Microsoft .NET Core 1.0.0 VS 2015 Tooling preview 2 “在VS2015社区中使用ASP.NET 5时,无法解析符号'system'”和其他名称空间 - “Cannot resolve symbol 'system'” and other namespaces when using ASP.NET 5 in VS2015 Community 该系统找不到指定的文件。 (来自HRESULT的异常:0x80070002) - The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM