简体   繁体   English

Visual Studio 2019 中的 .Net Standard 1.0 class 库

[英].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.

相关问题 Class 库(.NET 标准)模板在 Visual Studio 2019 中不起作用 - Class Library (.NET Standard) Template Not working in Visual Studio 2019 如何在 Visual Studio 2019 中调试 .NET 5 WinForms 应用程序,该应用程序引用 .NET Framework 4.8 class 库 - Howto debug .NET 5 WinForms application that references .NET Framework 4.8 class library in Visual Studio 2019 Visual Studio 2019 - .NET 标准项目兼容性警告 - Visual Studio 2019 - .NET Standard Project compatibility warning 如何在 Visual Studio 2019 16.8.1 中创建 .Net 5.0 类库项目? - How to create .Net 5.0 Class Library project in Visual Studio 2019 16.8.1? 为 .NET Core 类库项目选择框架版本 - Visual Studio 2019 - Select framework version for .NET Core Class Library project - Visual Studio 2019 没有在 Visual Studio 2019 中创建 .NET 5.0 库的选项 - No option to create .NET 5.0 library in Visual Studio 2019 在 Visual Studio 2019 中导出 C# 类库失败 - Export of C# class library fails in Visual Studio 2019 Visual Studio .net 标准库模板使用指令中断? - Visual Studio .net standard library template breaks using directive? 创建项目 Visual Studio 2019 时缺少 Xamarin.Android class 库 - Xamarin.Android class library missing when create project Visual Studio 2019 Visual Studio 2017 不会在 .NET Standard 库中加载 .NET Framework 引用 - Visual Studio 2017 won't load .NET Framework references in .NET Standard library
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM