[英]should the ASP.NET Server Control template exist in Visual Studio 2015 community edition?
I am trying to build a custom ASP.NET server control, but I am failing at the first hurdle. 我正在尝试构建一个自定义的ASP.NET服务器控件,但我在第一个障碍时失败了。 All the tutorials have as their first step "Select the ASP.NET Server Control template". 所有教程的第一步都是“选择ASP.NET服务器控件模板”。 My install of studio does not have that template. 我安装的工作室没有该模板。 (VS 2015 community edition) Ive tried several machines, with windows 7 to 10, and still no template. (VS 2015社区版)我已经尝试了几台机器,Windows 7到10,仍然没有模板。
Is this a matter of the template not being part of this edition, the template no longer being available, or something else that I am missing? 这是模板不属于此版本的问题,模板不再可用,还是我遗漏的其他内容?
You're at the New Project screen. 您正处于“新建项目”屏幕。 But ASP.NET Server Control isn't a project. 但是ASP.NET Server Control不是一个项目。 You need to create a project (a class library or web application) and then right click your project in the Solution Explorer and expand Add, then click New Item. 您需要创建一个项目(类库或Web应用程序),然后在解决方案资源管理器中右键单击您的项目,然后展开“添加”,再单击“新建项”。 Expand Visual C# Items, Web, Web Forms, then you'll see Web Forms Server Control. 展开Visual C#Items,Web,Web窗体,然后您将看到Web窗体服务器控件。
You have to add a new Windows Forms Application project. 您必须添加新的Windows窗体应用程序项目。 Right click the project and select the new item. 右键单击项目并选择新项目。 Once selected, a pop-up window will appear. 选择后,将出现一个弹出窗口。 Click Web and you can see the Web Forms Server Control. 单击Web,您可以看到Web窗体服务器控件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.