简体   繁体   中英

.NET 5 Unit Test project VS 2019

When I go to add a unit test project from VS 2019 I see a lot of templates for.Net Framework and.Net Core but I don't see any for.Net 5? Is there a template available? Or is there a work-around?

在此处输入图像描述

Alejandro is correct. Keep in mind if you add a test project it will default to targeting .net core 3.1 (or mine does) and so if you add a project reference to a .net 5.0 project you will have to change the target framework to .net 5.0 for the test project.

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