Visual Studio Winforms App Cannot See Reference on Build/Rebuild

157 Views Asked by At

This should be a simple one... but it confounds me. I am trying to test a third-party assembly using a very simple winforms app. I add a reference to it in the project. I then add an Imports (this is VB.Net) statement. I continue on to call a method in a static class within the assembly within Form1_Load. All of this is almost too much information...

Before attempting to build the solution the imports statement is fine. The call to the method is fine (and by fine I mean visual studio "sees them." When I build the solution it throws the error "'[NAMESPACE]' is not declared. It may be inaccessible due to its protection level."

I have tried removing the assembly to a more public directory. In the reference properties copy local is true.

Any ideas? I am at my wits-end over this silly problem.

1

There are 1 best solutions below

0
On

I figured this out. By default my projects were targeting Framework 4 Client Profile" If I switched to the regular Framework 4... it works fine :-)