使用 NUnit 为单元测试创建新项目的问题

问题描述 投票:0回答:0

我在 Mac 上创建了一个新项目来测试我的 web rest api,但我无法使用项目的初始版本。每次我遇到错误时:

/Applications/Visual Studio.app/Contents/MonoBundle/MSBuild/Current/bin/Microsoft.Common.CurrentVersion.targets(5,5): Error MSB3971: The reference assemblies for ".NETFramework,Version=v7.0" were not found. You might be using an older .NET SDK to target .NET 5.0 or higher. Update Visual Studio and/or your .NET SDK. (MSB3971) (Core)

整个项目都是用.Net Core 7.0编写的。

我查了两个项目,都是一样的。 还设置了项目参考。 有人可以帮助我如何让它在 macOs 上工作吗? 谢谢。

经过一些更改和恢复后 - 由于相同的错误,两个项目目前都没有启动。

.net-core nunit
© www.soinside.com 2019 - 2024. All rights reserved.