简体   繁体   English

.NET 5 单元测试项目 VS 2019

[英].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?当我 go 从 VS 2019 添加单元测试项目时,我看到了很多 .Net Framework 和 .Net Core 的模板,但我没有看到任何 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.请记住,如果添加了一个测试项目,它将默认为.net CORE 3.1(或我的DOS),因此,如果您将项目引用添加到Z2D50972FCECD37612955507F10621219251925123123123。 .

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Visual Studio 2019 中的单元测试项目模板仅适用于 .NET Framework 是否重要? - Does it matter that Unit Test project template in Visual Studio 2019 is for .NET Framework only? .NET项目中单元测试和验收测试的实现 - Implementation of Unit test and acceptance test in a .NET project 在 VS 2017 中针对完整的 .net 框架 asp.net 核心项目运行 XUnit 2.2.0 单元测试时出现 System.BadImageFormatException - System.BadImageFormatException when running XUnit 2.2.0 unit test in VS 2017 against a full .net framework asp.net core project Visual Studio 2019 突然需要 nuget Microsoft.NET.Test.Sdk 来运行 xUnit 单元测试 - Visual Studio 2019 suddenly requires nuget Microsoft.NET.Test.Sdk to run xUnit unit-tests VS 2022 - 对于在 VS 2019 中创建的项目,无法将目标平台更改为 .Net 6.0 - VS 2022 - cannot change Target Platform to .Net 6.0 for a project created in VS 2019 如何确定项目使用的.net单元测试框架? - How to determine which .net unit test framework a project is using? 如何在.Net中设置单元测试项目? - How do you Setup your Unit Test Project(s) in .Net? 带有CSV数据源的.net单元测试项目无法正确读取值 - .net unit test project with CSV datasource not reading in values correctly 哪个开源Java或.net项目的单元测试覆盖率最高? - Which opensource java or .net project has best unit test coverage? .net 核心单元测试项目未能在 Azure Devops 管道中构建 - .net core unit test project failing to build in Azure Devops pipeline
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM