[英]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.