gpt4 book ai didi

c# - Microsoft.VisualStudio.TestTools.UnitTesting 给出错误

转载 作者:太空宇宙 更新时间:2023-11-03 20:27:27 24 4
gpt4 key购买 nike

使用时:

     using Microsoft.VisualStudio.TestTools.UnitTesting

它在 .VisualStudio 下给我一个引用错误。这是我需要的 NuGet 包吗?我读到我可以进去获取 dll,但是我应该把 dll 放在我的项目中的什么地方。我会将其添加到哪个文件夹?

     Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll

最佳答案

你必须添加一个 reference到 dll。

In Solution Explorer, double-click the My Project node for the project.

In the Project Designer, click the References tab.

Click the Add button to open the Add Reference dialog box.

In the Add Reference dialog box, select "Microsoft.VisualStudio.QualityTools.UnitTestFramework", then click OK.

关于c# - Microsoft.VisualStudio.TestTools.UnitTesting 给出错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9730929/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com