I want to create 3 projects in a Visual Studio Solution:
- Windows Service (references Business Layer, Common Layer, log4net.dll)
- Business Layer (references Common Layer, log4net.dll)
- Common Layer (references log4net.dll)
Steps:
I create the Business Layer and the Common layer using the wizard, without doing any modifications. I set up the references and everything is working.
Then I create add a new Windows Service project to the solution. I notice that instead of Any CPU it is added with target platform x86. I reference the 3 things and the code is colored correctly, pre-compilation errors disappear: this means that the references are recognized.
When I build the solution however the Windows Service project has compilations errors: can not find any of the referenced assemblies.
What is happening here? Is the x86 configuration causing the "The type or namespace name 'log4net' could not be found (are you missing a using directive or an assembly reference?)" errors?
I forced the Windows Service project to use ANY CPU configuration. I double checked every reference, they are correct. Still I cannot reference anything.
System specs:
- Windows 7 x64 SP1 Visual Studio 2010
- Ultimate