vs2015开发.net core的环境准备

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/tiana0/article/details/54707061

1、安装vs2015,并升级到update3
下载地址:
http://download.microsoft.com/download/7/c/f/7cf151c3-b735-4e35-a1bb-9a48224f4a95/vs2015.3.ent_chs.iso
2、安装 .net core sdk
下载地址:https://download.microsoft.com/download/A/3/8/A38489F3-9777-41DD-83F8-2CBDFAB2520C/packages/DotNetCore.1.0.0-SDK.Preview2-x64.exe
3、安装vs2015 tools
下载地址:https://download.microsoft.com/download/2/F/8/2F864C4E-6980-4AFC-B64E-0AC04837FD6C/DotNetCore.1.0.0-VS2015Tools.Preview2.0.1.exe
4、新建.net core 项目
这里写图片描述
5、补充
安装vs2015 tools会出错,错误号: 0x80072EE2。查看生成的log文件,会有下面的异常信息(部分)。

[168C:10EC][2017-01-22T14:21:11]e000: Error 0x80072ee2: Failed attempt to download URL: 'https://download.microsoft.com/download/2/F/8/2F864C4E-6980-4AFC-B64E-0AC04837FD6C/packages/WebToolsExtensionsVS14_rc2_48.msi' to: 'C:\Users\ADMINI~1\AppData\Local\Temp\{6AD0A5F9-8BF8-4CF2-8E51-42BC067433DB}\WebToolsExtensionsVS14'
[168C:10EC][2017-01-22T14:21:11]w343: Prompt for source of package: WebToolsExtensionsVS14, payload: WebToolsExtensionsVS14, path: D:\Install Files\packages\WebToolsExtensionsVS14_rc2_48.msi
[168C:10EC][2017-01-22T14:21:14]i338: Acquiring package: WebToolsExtensionsVS14, payload: WebToolsExtensionsVS14, download from: https://download.microsoft.com/download/2/F/8/2F864C4E-6980-4AFC-B64E-0AC04837FD6C/packages/WebToolsExtensionsVS14_rc2_48.msi
[168C:10EC][2017-01-22T14:23:48]e000: Error 0x80072ee2: Failed attempt to download URL: 'https://download.microsoft.com/download/2/F/8/2F864C4E-6980-4AFC-B64E-0AC04837FD6C/packages/WebToolsExtensionsVS14_rc2_48.msi' to: 'C:\Users\ADMINI~1\AppData\Local\Temp\{6AD0A5F9-8BF8-4CF2-8E51-42BC067433DB}\WebToolsExtensionsVS14'
[168C:10EC][2017-01-22T14:23:48]w343: Prompt for source of package: WebToolsExtensionsVS14, payload: WebToolsExtensionsVS14, path: D:\Install Files\packages\WebToolsExtensionsVS14_rc2_48.msi
[168C:10EC][2017-01-22T14:23:51]i338: Acquiring package: WebToolsExtensionsVS14, payload: WebToolsExtensionsVS14, download from: https://download.microsoft.com/download/2/F/8/2F864C4E-6980-4AFC-B64E-0AC04837FD6C/packages/WebToolsExtensionsVS14_rc2_48.msi
[168C:10EC][2017-01-22T14:26:25]e000: Error 0x80072ee2: Failed attempt to download URL: 'https://download.microsoft.com/download/2/F/8/2F864C4E-6980-4AFC-B64E-0AC04837FD6C/packages/WebToolsExtensionsVS14_rc2_48.msi' to: 'C:\Users\ADMINI~1\AppData\Local\Temp\{6AD0A5F9-8BF8-4CF2-8E51-42BC067433DB}\WebToolsExtensionsVS14'
[168C:10EC][2017-01-22T14:26:25]w343: Prompt for source of package: WebToolsExtensionsVS14, payload: WebToolsExtensionsVS14, path: D:\Install Files\packages\WebToolsExtensionsVS14_rc2_48.msi
[168C:10EC][2017-01-22T14:26:28]i338: Acquiring package: WebToolsExtensionsVS14, payload: WebToolsExtensionsVS14, download from: https://download.microsoft.com/download/2/F/8/2F864C4E-6980-4AFC-B64E-0AC04837FD6C/packages/WebToolsExtensionsVS14_rc2_48.msi
[168C:10EC][2017-01-22T14:28:29]e000: Error 0x80072ee2: Failed attempt to download URL: 'https://download.microsoft.com/download/2/F/8/2F864C4E-6980-4AFC-B64E-0AC04837FD6C/packages/WebToolsExtensionsVS14_rc2_48.msi' to: 'C:\Users\ADMINI~1\AppData\Local\Temp\{6AD0A5F9-8BF8-4CF2-8E51-42BC067433DB}\WebToolsExtensionsVS14'
[168C:10EC][2017-01-22T14:28:29]e000: Error 0x80072ee2: Failed to acquire payload from: 'https://download.microsoft.com/download/2/F/8/2F864C4E-6980-4AFC-B64E-0AC04837FD6C/packages/WebToolsExtensionsVS14_rc2_48.msi' to working path: 'C:\Users\ADMINI~1\AppData\Local\Temp\{6AD0A5F9-8BF8-4CF2-8E51-42BC067433DB}\WebToolsExtensionsVS14'
[168C:10EC][2017-01-22T14:28:29]e313: Failed to acquire payload: WebToolsExtensionsVS14 to working path: C:\Users\ADMINI~1\AppData\Local\Temp\{6AD0A5F9-8BF8-4CF2-8E51-42BC067433DB}\WebToolsExtensionsVS14, error: 0x80072ee2.
[10B4:144C][2017-01-22T14:28:29]i351: Removing cached package: AspNetCoreLocalFeed, from path: C:\ProgramData\Package Cache\{4C42E682-080B-305F-B2D6-AC2DAB8F0853}v1.0.20624.0\
[10B4:144C][2017-01-22T14:28:29]i351: Removing cached package: DotNetVersionManager_x64, from path: C:\ProgramData\Package Cache\{4EC36977-42B9-3C18-A692-B9DEE7404484}v1.0.11123.0\
[10B4:144C][2017-01-22T14:28:29]i351: Removing cached package: ANCM_IISExpress_x64, from path: C:\ProgramData\Package Cache\{C2BB4C41-59DC-487E-9CCF-1E21C3AC9139}v1.0.1967\
[10B4:144C][2017-01-22T14:28:29]i351: Removing cached package: Preparation_Uninstall_ASPNET, from path: C:\ProgramData\Package Cache\964dc4a4-2532-3399-bbf3-b93aeb737924\
[10B4:144C][2017-01-22T14:28:29]i351: Removing cached package: SetupBlocked_Install, from path: C:\ProgramData\Package Cache\3487ad70-5420-33cf-9790-561a81bd20fc\
[168C:1634][2017-01-22T14:28:29]e000: Error 0x80072ee2: Cache thread exited unexpectedly.

在网上找到下面的解决方法:
“开始→运行”,输入“regsvr32 softpub.dll”来重新注册softpub.dll,再用同样的命令注册initpki.dll和mssip32.dll。然后在IE中单击“工具→Internet选项”,切换到“安全”选项卡,单击“站点”按钮,分别将Windowsupdate.microsoft.com、V4.Windowsupdate.microsoft.com、Download.Windowsupdate.com三个站点添加进去。如果你使用代理服务器,请切换到“高级”选项卡,勾选“HTTP 1.1 设置”下面的“通过代理连接使用 HTTP 1.1”选项。
按照方法设置后,重新安装即可。不过,本人机器使用命令注册initpki.dll时,报错。忽视该报错即可。其实我感觉只需要将Windowsupdate.microsoft.com、V4.Windowsupdate.microsoft.com、Download.Windowsupdate.com三个站点添加进去即可,因为异常log说的就是无法从这几个站点获取资源,添加到受信站点即可。

展开阅读全文

没有更多推荐了,返回首页