如何在启用了TFS的MVC的情况下在Visual Studio 2012中设置Umbraco 6.1.2? [英] How to setup Umbraco 6.1.2 in Visual Studio 2012 with MVC enabled to use in TFS?

查看:80
本文介绍了如何在启用了TFS的MVC的情况下在Visual Studio 2012中设置Umbraco 6.1.2?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要的是Visual Studio 2012中的Umbraco 6.1.2版(目前最新的稳定版本)开发环境,并使用MVC作为渲染引擎,因此我可以使用Razor并将MVC项目集成到Umbraco中.

What I want is a development environment in Visual Studio 2012 for Umbraco version 6.1.2 (latest stable version at the moment) with MVC as rendering engine so I can use Razor and integrate a MVC project in Umbraco.

我还希望能够使用Team Foundation Sever共享和存储代码.

I also want to be able to use a Team Foundation Sever to share and store the code.

问题出在这里:当我只是从Umbraco下载Umbraco文件或使用WebMatrix安装Umbraco网站时,我无权访问核心文件或无法在Visual Studio中正确调试安装的方法.

The problem lies here: When I just download the Umbraco files from Umbraco or use WebMatrix to install an Umbraco site, I do not have access to the core files or a way to properly debug my install in Visual Studio.

因此,我需要一种从Visual Studio构建和调试/运行Umbraco的方法.

So I need a way to build and debug/run Umbraco from Visual Studio.

我看了很多帖子,文章等(也在StackOverflow上看到了),但似乎都没有针对Umbraco的最新版本(最多约4.5.x),只有很少一部分涉及MVC.旧的参考文献,不存在的项目模板或旧版VS的模板使我不得不进一步研究. 当我找到解决方案时,我想到了两件事: -1我需要检查此解决方案 -2我应该将此解决方案分享给更多的受众,然后它才逐渐普及

I looked at a lot of posts, articles etc. (also on StackOverflow) but none seemed to address the latest Umbraco version (most about 4.5.x) and only a few about MVC. Old references, non existing project templates or templates to old versions of VS made me have to dig further. When I then found a solution, I thought about 2 things: - 1 I need to check this solution - 2 I should share this solution to a wider audience then it is getting now

这两个原因是让我在此处发布(按要求进行澄清的原因)

Both two reasons are what made me post it here (clarification as asked)

推荐答案

实际上,您要做的就是创建一个空的MVC4项目并添加Umbraco NuGet包,因为这还将添加Core Binaries包并设置依赖项为你.

Actually, all you need to do is create an empty MVC4 project and add the Umbraco NuGet package, as this will also add the Core binaries package and set the dependencies for you.

这篇关于如何在启用了TFS的MVC的情况下在Visual Studio 2012中设置Umbraco 6.1.2?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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