Visual studio doesn't exist in namespace, but link added

I am creating a custom code coverage application using the Microsoft.VisualStudio.Coverage.Analysis class. I already added a DLL reference to my solution and when I start typing a using statement at the beginning of my class, Visual Studio predicts the correct names, eg. after entering "Microsoft". "VisualStudio" will be displayed in the proposal window, the same happens with the following two levels: "Coverage and Analysis". But the second I try to build the project, I get the following error:

type or namespace name 'visual studio' does not exist in namespace 'microsoft'

I have no idea why this is happening, so any suggestions would be great.

+3


source to share


1 answer


I had to check the warnings in visual studio, they had real error data, the project had to be built against .net 4.5 and not 4.0. After this was changed, the project was built correctly.



+8


source







All Articles