简体   繁体   English

VS2019 中的 xUnit 项目

[英]xUnit Project in VS2019

I want to add a new xUnit Test Project but i can't find it in the dialog.我想添加一个新的 xUnit 测试项目,但在对话框中找不到它。 What's the problem?有什么问题?

在此处输入图片说明

@Deilan: @戴兰:

通用 Windows 平台开发

BUT!但! Actually you'd install xUnit via NuGet.实际上,您会通过 NuGet 安装 xUnit。 VisualStudio -> Tools - NuGet Package Manager -> Manage NuGet Packages for Solution ... VisualStudio -> 工具 - NuGet 包管理器 -> 管理解决方案的 NuGet 包...

NuGet。单位

You are missing the corresponding workload ( .NET Core ): 您缺少相应的工作负载.NET Core ):

xUnit Test Project is a .NET Core project template, which is included in the .NET Core cross-platform development workload. xUnit Test Project是一个.NET Core项目模板,该模板包含在.NET Core跨平台开发工作负载中。

You can install additional workloads to customize your Visual Studio installation with the Visual Studio Installer , which you can start via Install more tools and features from the Project-Wizard , via Visual Studio > Tools > Get Tools and Features... , or as described here: Modify Visual Studio by adding or removing workloads and components 您可以安装其他工作负载以使用Visual Studio Installer自定义Visual Studio安装 ,可以通过从Project-Wizard Install more tools and features ,通过Visual Studio > Tools > Get Tools and Features... ”或按照说明进行安装。此处: 通过添加或删除工作负载和组件修改Visual Studio

您必须选择一个,然后进行xUnit测试。

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

相关问题 如何在VS2019中将共享项目添加到WPF项目中 - how to Add Shared Project to WPF Project in VS2019 vs2019 .net 核心项目 CopyToOutputDirectory 无效 - vs2019 .net core project CopyToOutputDirectory is invalid 有人征服了VS2019中的Visual Studio安装程序项目吗? - Has anyone conquered the Visual Studio installer project in VS2019? 如何在 VS2019 中为 Windows 窗体应用程序创建安装程序项目 - How to create an installer project in VS2019 for a Windows form application VS2019,缺少程序集 - VS2019, missing assemblies 我在VS2017中启动的项目无法在VS2019上构建:错误CS1061 - Project that i started in VS2017 wont build on VS2019: error CS1061 VS2019 在解决方案中复制项目以用作新项目的起点 - VS2019 copy project within solution to use as starting point for new project 使用框架 4.7.2 运行 SDK 项目的 vs2019 中的控件和表单缺少图标和视图设计器选项 - controls and forms missing icon and view designer option in vs2019 running SDK project with framework 4.7.2 如何在 VS2019 中将 WPF 项目添加到 C# class 库项目中? - How can I add WPF items into a C# class library project in VS2019? 如何在 VS2019(版本 16.8.0)中将“移动应用程序(Xamarin.Forms)”项目定位到 .net 5.0? - How to target "Mobile App(Xamarin.Forms)" project to .net 5.0 in VS2019 (Version 16.8.0)?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM