新的 NuGet 版本修复了许多问题(例如传递依赖能力、构建时的依赖解析、单个包存储库缓存等)。
但是我只能使用 ASP.NET vNext 和 UWP 项目对其进行测试。
这些新功能是否也可用于“遗留”项目(例如完整的 .NET 4.5/4.6 项目、WPF 等)?
最佳答案
截至 2015 年 8 月 19 日,“遗留”项目似乎不支持新功能,但可能会在以后添加。根据NuGet documentation :
project.json is mandatory for UWP apps and ASP.NET 5 apps, is optional for PCLs, and currently is not fully supported on other project systems.
和
Starting from Visual Studio 2015, several project types are utilizing this technology, with more to follow in the future.
1.Universal Windows Platform managed apps (UWP).
2.Portable class libraries (PCL).
3.ASP.NET 5 applications.
关于c# - "legacy".NET 项目是否也可以使用新的 NuGet 3 功能?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32008023/