开发者

C# app not compiling correctly

开发者 https://www.devze.com 2023-02-20 09:58 出处:网络
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.Power

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

0

精彩评论

暂无评论...
验证码 换一张
取 消