在未安装 MVC3 的计算机上打开 MVC3 项目?

发布于 2024-10-26 04:56:07 字数 1529 浏览 6 评论 0原文

我已阅读有关将 MVC3 项目部署到未安装 MVC3 的共享托管环境的博客文章:

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

我正在打开未安装 MVC3 的计算机上 VS2010 中的 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>

我仍然收到以下错误:

此安装不支持该项目类型。

我将在安装了 MVC3 的计算机上打开该项目并浏览到引用,该引用正确指向本地 lib 文件。我缺少什么?

I've read the blog posts on deploying MVC3 projects to shared hosting environments that do not have MVC3 installed:

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

I'm opening an MVC3 project in VS2010 on a machine that does not have MVC3 installed. I have added the references to my *.csproj file:

<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>

I'm still getting the following error:

The project type is not supported by this installation.

I'll open up the project on a machine with MVC3 installed and browse to the references, which correctly points to the local lib file. What am I missing?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文