如何更改VS2015使用的.NET核心SDK版本?

技术标签: Visual-Studio-2015  ASP.NET核心  Visual-Studio-2017

我已经安装了VS2017,它完全打破了我的VS2015安装。当我尝试创建一个新的.NET核心Web应用程序项目时,我收到以下错误:

我没有版本 preview2-a-003177 在我的 c:\program files\dotnet\sdk 文件夹,我似乎无法在在线在线找到。

那么如何更改.NET核心SDK的版本(对我已经安装的东西),VS2015模板使用?

enter image description here

P.S.我知道我可以添加一个全球性.json,指向特定的dotnet sdk版本,但我宁愿不这样做。该方案已经解决了 这个问题.

看答案

对不起,你不能。

VS 2015仅限使用 .xproj 文件,而最新的SDK(自版本3或4)使用Old-新建的'.csproj'。最新的SDK将尝试转换为.csproj的项目转换(迁移)。

您应该切换到VS2017以使用最新的SDK或坚持 preview2-1 在VS0215工作。

检查您是否真的需要SDK版本 c:\program files\dotnet\sdk (我的VS 2017的安装不会删除任何先前的SDK)。如果需要,您可以下载任何版本的旧SDK 从这里


智能推荐

vs2015使用SiftGPU

环境:win10、vs2015、x64 编译过程参考: http://www.cnblogs.com/wangguchangqing/p/10132052.html https://www.cnblogs.com/gaoxiang12/p/5149067.html 需要的第三方库: Glew DevIL-Windows-SDK-1.8.0 使用: 项目属性设置include路径到SiftGPU目录...

如何**VS2015(使用秘钥)

【时间】2018.10.07 【题目】如何**VS2015(使用秘钥) 安装完vs2015 企业版/专业版后,在菜单帮助---注册产品,会显示产品试用期30天,怎么**呢?其实只要输入相应的秘钥即可完成**。如若不**,30天后也会弹出这个页面,这时你也只要点击输入相应的秘钥即可。 一、**秘钥 企业版(Enterprise)    HM6NR-QXX7C-DFW2Y-8B82...

Remote如何在VS2015中配置使用

Remote如何在VS2015中配置使用 Qt Remote Objects 在QTCreater当中如何使用,请参考以下文章: https://blog.csdn.net/x85371169/article/details/81427715 https://blog.csdn.net/x85371169/article/details/81427864 https://blog.csdn.net...

如何使用VS2015开发Qt5程序

Qt是一个开发C++图形用户界面十分流行的开源库,Visual Studio是一个十分强大的集成开发环境,这两个强强联合起来进行C++应用程序的开发将是十分地方便快捷。下面就给大家介绍一下如何在VS2015中开发Qt5的程序。 工具/原料 Visual Studio2015 Qt5.7.0 方法/步骤 安装Qt 5.7 for Windows。 在如下地址:http://download.qt.i...

vs2015如何使用pthread.h文件

pthread下载 链接: https://pan.baidu.com/s/1boBGCZt 密码: x6hm 点击 项目 -> 属性->vc++目录,配置路径 点击调试->环境 输入值 path=%path%;D:\code\Pre-built.2\lib\; $(LocalDebuggerEnvironment) 使用 #include "pthread....

猜你喜欢

VS2015 安装.NET Core

-1 安装:Visual Studio 2015 Update 3  打开控制面板中的程序和功能,双击vs安装程序 进入vs安装界面,点击修改 勾选Visual Studio 扩展工具 Update3,点击更新,等待安装完毕 -2 安装:NET Core tools Preview 2 for Visual Studio 2015 下载:https://www.microsoft.com...

如何使用VS2010打开VS2015和VS2013的的项目/代码

如果使用VS2010去打开VS2015上写的代码,会报错,弹出这两个框: 1、使用文本编辑器打开.sln文件,右键->打开方式->记事本,要修改的内容如下红色部分: VS2015下的编译环境: Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 VisualSt...

如何使用VS2010打开VS2015和VS2013的的项目/代码

如果使用VS2010去打开VS2015上写的代码,会报错,弹出这两个框: 1、使用文本编辑器打开.sln文件,右键->打开方式->记事本,要修改的内容如下红色部分: VS2015下的编译环境: Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 VisualSt...

VS2015的安装

对于VS2015卸载不干净问题,使用totallUninstaller2015 中的 Setup.ForcedUninstall.exe,以管理员方式启动,按照步骤进行即可; 安装完成后新建项目,不存在win32控制台应用程序,则需要点击“安装适用于C++的Windows XP 支持”,按照步骤进行; 建立空项目即可;...

无意中发现看书也是一种美

2012年4月25日晚,翻翻自己喜欢的一门语言学习书(python参考手册),无意中发现书中夹着之前的明信片(有一次和同事一起去前门邓丽君音乐生活馆留下来的),感觉学习也是一种美!于是乎拍下这不经意的时刻,哈哈!...

问答精选

How to extract beta coefficients for interaction effect in R?

I am examining the interaction between a continuous variable (bloodq) and a categorical variable with three levels (ER, RB, and WB). In order to see how the betas differ across tissue types, I would l...

what is the difference between Flatten() and GlobalAveragePooling2D() in keras

I want to pass the output of ConvLSTM and Conv2D to a Dense Layer in Keras, what is the difference between using global average pooling and flatten Both is working in my case. That both seem to work d...

How to invoke a test step with inputs at runtime from groovy script in SOAP UI?

I am writing a validation groovy script for a test step, intended to test a SOAP Web Service. Now, I want to call the same test step, with different input value from the groovy script. Is it possible?...

Wicket pagestore results wrong page

I have a problem with my web application with wicket. I am using wicket 6.14. I can't say exactly what the problem is, but I can describe the problem. I am using a self written pagestore, which uses h...

Unity load files from outside of resources folder

In unity is it possible to load a resource that is out side of the resources folder. I want the user to be able to set a textAsset variable from a file outside of the Assets directory entirely. You ca...

相关问题

相关文章

热门文章

推荐文章

相关标签

推荐问答