error CS0246: The type or namespace name 'Assembly_Accessor' could not be found

Hi,

I have few test projects in our solution. The solution builds fine except for the test projects and it gives this error around "accessor" assemblies. Visual Studio builds the solution fine and generate the accessor assemblies, but teamcity doesn't and throws exception.

can you please help me out here? let me know if you need few more details around this.

  • VisionContextBaseTest.cs(69, 26): error CS0246: The type or namespace name 'VisionContextBase_Accessor' could not be found (are you missing a using directive or an assembly reference?)  


Best Regards,
Santhosh.

2 comments
Comment actions Permalink

I think I have found the answer for this, take a look at the post below,

https://adrianhenke.wordpress.com/2010/10/21/msbuild-and-private-accessors-of-unit-tests/

Is TeamCity going to take care of this?

Thanks,
Santhosh.

0
Comment actions Permalink

Hi,

TeamCity uses MSBuild to compile the project. Please try to build your solution on problematic build agent manually via command line using msbuild.exe (without TeamCity). It does not look like TeamCity related issue.

Also please check that referenced assembly actually exists on a disk.

0

Please sign in to leave a comment.