Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net mvc 使用GIT for Visual Studio 2012构建克隆项目时出现问题_Asp.net Mvc_Git_Visual Studio_Asp.net Mvc 4_Visual Studio 2012 - Fatal编程技术网

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

Asp.net mvc 使用GIT for Visual Studio 2012构建克隆项目时出现问题,asp.net-mvc,git,visual-studio,asp.net-mvc-4,visual-studio-2012,Asp.net Mvc,Git,Visual Studio,Asp.net Mvc 4,Visual Studio 2012,我启动了一个新的解决方案并创建了三个子项目: 域(类库) Web(ASP.Net MVC 4) 单元测试项目 之后,我使用GIT for Visual Studio 2012 update 2将文件推送到GitHub存储库 文件被很好地推送(bin文件夹未被推送) 我转到另一台计算机并成功克隆了存储库 我试图构建该项目,但收到以下错误消息: Error 15 The type or namespace name 'Optimization' does not exist in the na

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

  • 域(类库)
  • Web(ASP.Net MVC 4)
  • 单元测试项目
  • 之后,我使用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文件夹中的某些文件是必需的(它不是从我的第一台电脑推送的)

    有没有办法解决这个问题,因为我们正在让更多的员工参与到这个项目中,需要他们克隆回购协议,让一切都为他们好起来


    关于

    您可以启用或提交解决方案中已安装软件包中的二进制文件。

    您是否将解决方案文件夹中的软件包文件夹提交到存储库?不,我没有。我可以在VisualStudio中执行此操作吗?