简体   繁体   English

将目标更改为.net标准时创建的project.json(Visual Studio 2015)

[英]project.json created when changing target to .net standard (Visual Studio 2015)

I want to switch target for Portable Class Library project from classic profiles to .Net Standard. 我想将可移植类库项目的目标从经典配置文件切换到.Net Standard。 The problem is that it creates project.json file which is deprecated. 问题是它创建了不推荐使用的project.json文件。 If I install any nuget packages, it also leads to updating this file rather than .csproj . 如果我安装了任何nuget软件包,它也会导致更新此文件而不是.csproj I use Visual Studio 2015 and latest version of .NET Core tools for Visual Studio 2015 (Preview2.0.3). 我将Visual Studio 2015和最新版本的.NET Core工具用于Visual Studio 2015(Preview2.0.3)。 Does it mean that I have to switch to VS 2017 or is there a proper way to deal with updated .csproj format and .Net Standard using VS 2015? 这是否意味着我必须切换到VS 2017,或者是否存在使用VS 2015处理更新的.csproj格式和.Net Standard的正确方法?

If you want to use csproj, you need to use VS 2017. 如果要使用csproj,则需要使用VS 2017。

Even though csproj for VS 2015 is usable, it involves a lot of hacks and isn't really documented or officially supported (and afaik break in VS 2017 without a migration path), so I strongly suggest to stick with project.json or migrate to VS 2017. 即使适用于VS 2015的csproj可用,它也会涉及很多黑客行为,并且并未得到真正的文档记录或官方支持(并且VS 2017中的afaik中断没有迁移路径),因此我强烈建议您坚持使用project.json或迁移至VS 2017。

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

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