Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
378 views
in Technique[技术] by (71.8m points)

c# - App_Code "Add Class" Greyed Out

I'm new to developing web applications, so I'm not sure if I'm going about this properly. What I'm trying to do is create a C# class with some common functions that my ASPX.CS classes can inherit from, to eliminate redundant code.

I've added an App_Code folder to my project's root directory. When I right-click on that folder in Visual Studio's Solution Explorer, then select Add, the Class option is greyed out.

Likewise, if I create a class from File > New > File, then manually put it into the App_Code folder, it's inaccessible. It'll be visible if I select Show All Files in the Solution Explorer, but right-clicking on it has Include in Project greyed-out too.

image

How do I create a class that my other ASPX.CS classes can inherit from?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...