[英].Net Standard 1.0 class library in Visual Studio 2019
I have written a tiny library which I would like to release to the public.我写了一个小库,我想向公众发布。 Since the lower the standard the wider it can be used targeting.Net Standard 1.0 would be the best.
由于 标准越低,它可以使用的范围越广,目标是.Net Standard 1.0 将是最好的。 Especially since it could be used everywhere (even in older Unity versions) and the library is basically just a collection of enums.
特别是因为它可以在任何地方使用(即使在较旧的 Unity 版本中),并且该库基本上只是枚举的集合。
The only problem is it seems I can't figure out how I could create a class library project targeting .NET Standard 1.0 in Visual Studio 2019. The lowest I get is .NET Standard 2.0.唯一的问题是我似乎无法弄清楚如何在 Visual Studio 2019 中创建针对 .NET Standard 1.0 的 class 库项目。我得到的最低的是 .NET Standard 2.
It's possible that it's just not an option in the Visual Studio user interface anymore.它可能不再是 Visual Studio 用户界面中的一个选项。
It should be possible to set it manually by opening your .csproj
file and changing the TargetFramework
by hand:应该可以通过打开
.csproj
文件并手动更改TargetFramework
来手动设置它:
<TargetFramework>netstandard1.0</TargetFramework>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.