C# app not compiling correctly
I need to get my C# Web Applicat开发者_开发知识库ion in VS 2008 Professional to compile. I have 2 projects in one solution. The first project, PowerMeter has an App_Code folder with namespace Inov.PowerMeter and the associated .aspx.cs files in the app reference it by using Inov.PowerMeter;. This code compiles fine and builds the powermeter.dll correctly. I have a second project called QuickMeter. The app_code for this creates a namespace Inov.Quickmeter and the aspx.cs files reference it correctly. But this doesn't compile.
The aspx.cs files can't see the namespace. Do I have to set this "build action" to compile? Where is it?
Thanks!
Did you add a reference to the first project in your second project? In the second project go to References then right click and select Add Reference
精彩评论