我能够在这些步骤中获得类似的功能:
1. Create Solution "MySolution"
2. Add a WebSite or Web Application project to "MySolution" named "MyWeb"
3. Add a Class Library Project To "MySolution" named "MyLibrary"
4. Select "MyWeb" project in the Solution Explorer and select the references node
5. Click Add Reference
6. Select the Solution List View Item on the right hand side
NOTE : You should see "MyLibrary" as a selection
7. Select "MyLibrary"
8. Open "MyWeb" Default.aspx -> cs or vb file.
9. Add using MyLibrary.ClassName
我能够引用和实例化“MyLibrary”类就好了。如果您将代码添加到“MyLibrary”中,您可能必须重新编译代码,以便intellisense立即获取更改。