简体   繁体   中英

.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. Especially since it could be used everywhere (even in older Unity versions) and the library is basically just a collection of enums.

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.

It's possible that it's just not an option in the Visual Studio user interface anymore.

It should be possible to set it manually by opening your .csproj file and changing the TargetFramework by hand:

<TargetFramework>netstandard1.0</TargetFramework>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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