简体   繁体   English

将Web用户控件添加到Visual Studio 2013中的类库项目

[英]Add a Web User Control to a Class Library Project in Visual Studio 2013

Can someone tell me how to make it so I have the ability to add WebUserControls (.asxc) to a Class Library project in Visual Studio 2013? 有人可以告诉我如何制作它,以便可以将WebUserControls(.asxc)添加到Visual Studio 2013中的类库项目吗? I have search everywhere but only found how to do it in old versions. 我到处都有搜索,但是只找到了旧版本中的搜索方法。

As far as I can see, the Web Forms User Control item template doesn't get listed if the project is a Class Library. 据我所知,如果项目是类库,则不会列出Web窗体用户控件项模板。 As a result, the easiest option may be to add a Web Forms project to your solution, add the User Control to it and then drag it into the Class Library project. 如此一来,最简单的选择可能是将Web Forms项目添加到您的解决方案中,向其中添加用户控件,然后将其拖动到Class Library项目中。 You'd need to add the appropriate references to the Class Library project manually. 您需要手动将适当的引用添加到类库项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Visual Studio 2013中运行Web API项目 - running web api project in visual studio 2013 在Visual Studio 2013中为Web资产创建项目 - Creating a project for web assets in Visual Studio 2013 为什么在将控件从工具箱拖动到Web窗体期间,Visual Studio 2013会自动向该控件添加样式? - Why during drag a control from toolbox to web form the Visual Studio 2013 add style to this control automatically? 为什么在Visual Studio 2013 Express中,我没有项目模板Windows Control Library? - Why in visual studio 2013 express, I don't have a project template Windows Control Library? 如何在Windows类库项目中创建Web用户控件 - How to create a web user control in a windows class library project Visual Studio 2013中的TFS源代码管理映射。无法将项目添加到解决方案 - TFS source control mapping in Visual Studio 2013. Unable to add project to a solution 如何在Visual Studio 2013中为MVC项目添加测试项目 - How to Add Test Project for MVC Project in Visual Studio 2013 无法在Visual Studio 2013的模型中添加Visual C#类 - No option to add Visual C# class in models in visual studio 2013 Swagger / Swashbuckle不适用于Visual Studio 2013 Web API 2项目 - Swagger / Swashbuckle not working on Visual Studio 2013 Web API 2 project 无法在Visual Studio 2013中创建新的Web项目 - Unable to create a new web project in Visual Studio 2013
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM