如何以编程方式创建网站项目-VS2008? [英] How do I programmatically create a website project - VS2008?

查看:75
本文介绍了如何以编程方式创建网站项目-VS2008?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用于创建一系列项目的插件.我已经弄清楚了如何创建Web应用程序,类库项目等,但无法弄清楚如何创建网站项目.我可以使用菜单选项等来完成它,最后得到一个项目 名称为"C:\ ... \ website3"但是对于我的一生,我无法从编程插件的内部弄清楚如何做到这一点.

I have an addin that creates a series of projects. I have figured out how to create webapplication, classlibrary projects etc but am unable to figure out how to create a website project. I can do it using the menu options etc and end up with a project with a name such as "C:\...\website3" but for the life of me I cannot figure out how to do this from inside my addin programmatically.

有人可以帮忙吗?

推荐答案

您好,

不同于具有MSBuild项目文件来组织所有项目项的Web应用程序或Windows窗体应用程序,该WebSite将项目项添加到解决方案文件中.

Unlike Webapplication or windows form application that have a MSBuild project file to organize all the project items, the WebSite add the project items to the solution file.

据我所知,自动化模型中没有方法可以为我们添加网站以编程方式.

谢谢

Chao


这篇关于如何以编程方式创建网站项目-VS2008?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆