Reference Microsoft.VisualStudio.QualityTools.UnitTestFramework for CI build

前端 未结 5 1565
故里飘歌
故里飘歌 2021-01-01 09:39

I have created a C# test project in VS2015 RC. it builds locally but when i attempt to build on our CI build server (TeamCity) it fails with errors:

U

5条回答
  •  悲哀的现实
    2021-01-01 10:06

    The answer is similar to option 1 in eng.augusto's answer.
    Microsoft doesn't provide NuGet for the latest version of Microsoft.VisualStudio.QualityTools.UnitTestFramework, but rather supplies it as a part of Visual Studio (normally at C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\PublicAssemblies\Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

    I created the folder Microsoft.VisualStudio.QualityTools as a subfolder of my solution and copied:

    Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll Microsoft.VisualStudio.QualityTools.UnitTestFramework.xml

    The files should be added to source control (even if DLLs are usually ignored).
    Then I changed references in my Test.csproj to refer to a new location.

提交回复
热议问题