空白Asp.net MVC模板 [英] Blank Asp.net MVC template

查看:145
本文介绍了空白Asp.net MVC模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法,我可以得到VS2008空白MVC模板?就像只有自带的MVC很高兴看到MVC是怎么一回事,但是当你想使自己的网站,你必须先删除所有他们为你所产生的垃圾是很烦人的。

Is there a way I can get a blank MVC template for VS2008? Like the only that comes with MVC is nice to see what MVC is all about but it gets annoying when you want to make your own site and you first have to delete all the crap they generated for you.

就像我想用我自己的身份验证的东西,因为我明白是怎么回事,和我自己的样式表之类的东西。

Like I want to use my own authentication stuff since I understand what is going on and my own style sheets and stuff.

所以,我必须通过做和删除一切以往单一的时间,所以我想没有人知道一个模板,我可以得到的只是有MVC的基本结构和最低限度的东西在web.config文件中需要的。

So I have to do through and delete everything ever single time so I wondering does anyone know of a template I can get that just has the basic structure of mvc and the bare minimum of stuff needed in the web.config file.

推荐答案

我不知道任何现有的,但你至少可以通过创建一个自定义的 Visual Studio的模板

I don't know of any currently available, but at the least you can create the template you want by creating a custom Visual Studio Template.

从本质上讲,删除所有你不想要的文件后,做一个文件|导出模板在Visual Studio,按照向导的应许之地。

如果你最终这样做,我相信其他人会喜欢拥有它。刚才我已经懒得自己做,并没有真正被创造了很多新的MVC项目,只是工作的同一个几个月。 :)

If you end up doing that, I am sure others would love to have it. I have just been too lazy to do it myself, and haven't really been creating a lot of new MVC projects, just working on the same one for months. :)


UPDATE:为响应您的评论:虽然我还没有真正看起来太深入了,我不知道为什么你不能够在您的项目模板访问测试项目向导包括。我破解打开默认的ASP.NET MVC项目模板的元数据文件,发现这附近的底部:

UPDATE: To respond to your comment: Although I haven't really looked too deeply into it, I don't know why you wouldn't be able to include in your project template access to the test project wizard. I cracked open the default ASP.NET MVC project template metadata file and found this near the bottom:

<WizardExtension>
   <Assembly>Microsoft.VisualStudio.Web.Extensions, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35</Assembly>
   <FullClassName>Microsoft.VisualStudio.Web.Mvc.TemplateWizard</FullClassName>
</WizardExtension>

如果他们能做到这一点,我不知道你为什么会无法为好。我感兴趣的是寻找到这个问题,但是在此刻,我前往床上 - 我已经起来太晚考虑到我有一个可怕的胸部感冒。 :)

If they can do it, I don't know why you wouldn't be able to as well. I am interested in looking into this more, but at the moment I am heading to bed - I am already up WAY too late considering I have a horrible chest cold. :)

这篇关于空白Asp.net MVC模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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