I am trying to build my MVC projects using msbuild from Jenkin server but its failed because of following error.
error CS0246: The type or namespace name 'TestMethod' could not be found (are you missing a using directive or an assembly reference?) [D:\Jenkins_home\workspace\resource-allocation-code-cleanup\Brain.Tests\Brain.Tests.csproj]
This is because of following namespace. How can avail this namespace for VS 2019 Builder tools.
Microsoft.VisualStudio.TestTools.UnitTesting;
In Local, the same command is working properly. Only difference is I have installed VS 2019 Build tools in Jenkin server and VS 2019 Enterprise in local machine.