c# - Visual Studio 2019 xUnit 测试错误 CS0246
问题描述
我正在尝试创建单元测试,在使用 xUnit 测试模板添加新项目后,我添加了对要测试的项目的引用。我一直遇到这个错误。
Error CS0246 The type or namespace name 'Book'
could not be found (are you missing a using directive or an assembly reference?)
我已经定义了 Book,所以我不确定为什么会出现这个错误。
解决方案
推荐阅读
- python - 在 if/else 语句上打开随机 tkinter 窗口
- r - Error in lm.fit(x, y, offset = offset, singular.ok = singular.ok, ...) : NA/NaN/Inf in 'y' In addition:
- docker - 服务 PHP 未能构建 Docker
- spring-data-elasticsearch - 如何禁用 Spring Data Elasticsearch 中的任何写入操作?
- c - 不使用指针算法将值从一个数组复制到另一个数组
- sql-server - T-SQL Select dates Sunday through Saturday (2 weeks apart) from Dates table for the last n months
- sql - 无法将参数值从 String 转换为 Int32,尝试将其转换为用户可以删除记录
- three.js - ThreeJS Vertices and Faces optimization
- swift - 无法在 swift 中使用 kanna 将 url 转换为 html
- python - 使用 cx_Freeze 将 Python 项目转换为 .exe 文件