为什么一些UWP项目有project.json有些没有? [英] Why some UWP projects has project.json some doesnt has?

查看:143
本文介绍了为什么一些UWP项目有project.json有些没有?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以看到一些UWP项目有project.json文件,所有NuGet包条目都包含在project.json中。但是一些UWP项目没有project.json。 NuGet包条目包含在.csproj文件中。为什么?

解决方案

不同版本的Visual Studio。旧版本使用project.json。 Visual Studio 2017将信息移动到项目文件中,但它仍然可以将project.json用于现有项目。


参见:



  • https://channel9.msdn.com/Events/Visual-Studio /Visual-Studio-2017-Launch/T108
  • https://docs.microsoft.com/en-us/dotnet/core/tools/project-json-to-csproj
  • https://docs.microsoft.com/en-us/dotnet/core/migration/#migration-from-projectjson-to-csproj 


I can see that some UWP projects has project.json file and all the NuGet packages entries are included in the project.json. But some UWP projects doesnt has project.json. NuGet packages entries are included in .csproj file itself. Why?

解决方案

Different versions of Visual Studio. Older versions used project.json. Visual Studio 2017 moved info into the project file, but it can still use project.json for existing projects.

See:

  • https://channel9.msdn.com/Events/Visual-Studio/Visual-Studio-2017-Launch/T108
  • https://docs.microsoft.com/en-us/dotnet/core/tools/project-json-to-csproj
  • https://docs.microsoft.com/en-us/dotnet/core/migration/#migration-from-projectjson-to-csproj 


这篇关于为什么一些UWP项目有project.json有些没有?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆