Reputation: 121
I have some projects that use the Fakes library for unit tests. The projects build successfully in Visual Studio, but when I try to build from the command line with msbuild, I get the following error:
XControllerTests.cs(10,20): error CS0234: The type or namespace 'Fakes' does not exist in the namespace 'System.Data.Common' (are you missing an assembly reference?) [C:\Runner\builds\xxx\XTests.csproj]
This question has actually been asked before, and has been answered in this Stack Overflow post. However, the answer in that post doesn't quite apply to my situation, because I'm using an msbuild executable that exists in a different folder structure. The answer in the above post only works for the msbuild path C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\MSBuild.exe
, but I'm using the path C:\Windows\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe
Does anyone happen to know an equivalent solution that applies to my situation? Thanks
Upvotes: 0
Views: 635