使用GIT for Visual Studio 2012构建克隆项目时出现问题

IoC*_*IoC 2 git asp.net-mvc visual-studio asp.net-mvc-4 visual-studio-2012

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

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

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

文件被推得很好(不推文件夹).

我去了我的另一台计算机并成功克隆了存储库.

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

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
Run Code Online (Sandbox Code Playgroud)

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

我假设一些文件在Bin文件夹中是必需的(不是从我的第一台PC推送).

任何想法如何解决这个问题,因为我们让更多的员工参与到项目中,并且需要他们只是克隆回购,让一切为他们工作就好了!

问候

Ufu*_*arı 6

您可以在解决方案中启用NuGet包还原或从已安装的包中提交二进制文件.