我正在将一个功能从我的 App_Code 目录迁移到一个单独的项目,该项目将构建一个类库以供我的 Web 应用程序引用。我在 App_Code 中的一个类继承了 System.Configuration.ConfigurationSection 的形式,如下所示:
Imports System.Configuration
Imports System.Web.Configuration
Imports Microsoft.VisualBasic
Namespace P10.WebStore
#Region "WebStore Section"
Public Class WebStoreSection
Inherits ConfigurationSection
我绝对不能让项目将 ConfigurationSection 识别为一个类。我在谷歌上搜索的这门课没有提到必须做任何特别的事情才能使用它。是因为这是一个类库而不是 .exe 或其他东西吗?我难住了。