2011-03-25 37 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

回答