2011-03-25 40 views
1

我读过有关部署MVC3项目的博客文章没有安装MVC3共享托管环境:在没有安装MVC3的机器上打开MVC3项目?

http://www.iwantmymvc.com/2011-03-23-bin-deploy-aspnet-mvc-3-visual-studio

我在VS2010不具有MVC3的机器上打开一个MVC3项目安装。我已经添加了引用到我的* .csproj的文件:

<Reference Include="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> 
<HintPath>..\..\lib\System.Web.Mvc.dll</HintPath> 
</Reference> 
<Reference Include="System.Web.Helpers"> 
<HintPath>..\..\lib\System.Web.Helpers.dll</HintPath> 
</Reference> 
<Reference Include="System.Web.Razor"> 
<HintPath>..\..\lib\System.Web.Razor.dll</HintPath> 
</Reference> 
<Reference Include="System.Web.WebPages"> 
<HintPath>..\..\lib\System.Web.WebPages.dll</HintPath> 
</Reference> 
<Reference Include="System.Web.WebPages.Deployment"> 
<HintPath>..\..\lib\System.Web.WebPages.Deployment.dll</HintPath> 
</Reference> 
<Reference Include="System.Web.WebPages.Razor"> 
<HintPath>..\..\lib\System.Web.WebPages.Razor.dll</HintPath> 
</Reference> 
<Reference Include="Microsoft.Web.Infrastructure"> 
<HintPath>..\..\lib\Microsoft.Web.Infrastructure.dll</HintPath> 
</Reference> 

我还发现了以下错误:

The project type is not supported by this installation.

我的机器上打开的项目,MVC3安装和浏览到正确指向本地lib文件的引用。我错过了什么?

+0

该错误消息去......看来你是失踪了MVC的VS.NET项目模板。也许从具有它的机器上复制它会起作用? – Naraen 2011-03-25 15:06:40

回答