c# - MsBuild from command prompt is not generating the FakeAssemblies -
I have a test project in my solution that uses counterfeit for testing, and I have the same solution to other projects In.
When I create a solution in VS 2013 everything works well and I see that the FakesAssemblies folder is made with fake for my dll.
But if I do not see the msbuild command prompt from the FakesAssemblies folder and my test project fails with fail reference DLL.
Login with MSBuild:
(ResolveAssemblyReferences target) -> C: \ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319 \ Microsoft.Common.targets (1605,5): WARNING MSB3245: This reference could not be resolved The assembly could not be detected "CustomNetworkLib Fax" Make sure that the assembly is present on the disk. If this reference is necessary for your code, you can get the compilation errors.
....
FakeNetworkHelper.cs (1,28): Error CS0234: Type or Namespace name 'Fakes' does not exist in the namespace' CustomNetworkLib Binding '(Are you missing an assembly reference?)
Thanks for any help ...
I have found the answer ..
We need to use MsBuild version 12 from the following location " C: \ Program Files ( X86) \ MSBuild \ 12.0 \ Bin \ MSBuild.exe "
There is the ability to create fake DLS ... and I think it is installed with VS.
I was actually using msbuild .. C: \ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ MSBuild.exe
Comments
Post a Comment