The type or namespace name 'MyClassLib' could not be found (are you missing a using directive or an assembly reference?)
This could be caused by the target framework being set to "client"
Here's how to fix it:
- Right click the console app project, and select Properties (at the bottom of the menu).
- Select the Application tab on the Property page
- Check the Target Framework - make sure it is NOT .Net Framework 4.0 (or 3.5, if that's what you are using).
- If it is client, you can just select the correct framework - in my case .Net Framework 4.0
- When you select the new Framework, you will get a warning about unloading the project. Who cares, it's wrong anyway! :-)
No comments:
Post a Comment