asp.net-mvc - 使用 GIT for Visual Studio 2012 构建克隆项目时出现问题

标签 asp.net-mvc git visual-studio asp.net-mvc-4 visual-studio-2012

我开始了一个新的解决方案并创建了三个子项目:

  1. 域(类库)
  2. 网络(ASP.Net MVC 4)
  3. 单元测试项目

之后,我使用 GIT for Visual Studio 2012 update 2 将我的文件推送到 GitHub 存储库。

文件推送正常(bin 文件夹未推送)。

我转到我的另一台计算机并成功克隆了存储库。

我尝试构建项目并收到以下错误消息:

Error   15  The type or namespace name 'Optimization' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) D:\Source\Repos\[Project Folder]\MyApp.Web\App_Start\BundleConfig.cs    2   18  MyApp.Web
Error   16  The type or namespace name 'Optimization' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) D:\Source\Repos\[Project Folder]\MyApp.Web\Global.asax.cs   7   18  MyApp.Web
Error   17  The type or namespace name 'BundleCollection' could not be found (are you missing a using directive or an assembly reference?)  D:\Source\Repos\[Project Folder]\MyApp.Web\App_Start\BundleConfig.cs    9   44  MyApp.Web

请注意,这些都是全新的空白项目,它们在第一台计算机上构建没有问题。这里显示的所有错误都在 Web 项目中,因为它是解决方案的启动项目。

我假设某些文件在 Bin 文件夹中是强制性的(不是从我的第一台电脑推送的)。

知道如何解决这个问题,因为我们正在让更多员工参与该项目,并且需要他们只克隆存储库,让一切都为他们工作!

问候

最佳答案

您可以启用 NuGet package restore或从您的解决方案中安装的包提交二进制文件。

关于asp.net-mvc - 使用 GIT for Visual Studio 2012 构建克隆项目时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17254961/

相关文章:

javascript - Asp.net MVC 页面上的多个(相同的)部分 View ,部分 View 内带有 <script> 标记

asp.net-mvc - 支持 Asp.NET MVC Razor 的编辑器

c# - MVC URL 路由复杂性

git - 向 Jenkins 管道中的上游提交者发送通知电子邮件

git - 提交时从文件中删除的所有行以及添加到文件中的所有行

git - 使用 git rebase 时自动跳过空提交

c++ - Visual Studio Code 异常缓慢

c# - 尝试使用通用的 <T> 集合

c# - 如何使用 Windows API 将输入发送到 Visual Studio

c# - 使用 DBValue.null 将 null 值插入 DateTime 字段