C# 仅在我的计算机上生成项目时出错(其他开发人员没有此问题)

C# 仅在我的计算机上生成项目时出错(其他开发人员没有此问题),c#,asp.net-mvc,git,git-bash,C#,Asp.net Mvc,Git,Git Bash,我正在与其他开发人员合作进行一个C#/MVC项目。除了我的机器,这个项目对每个人都很好 我们正在项目中使用git 每当我尝试构建项目时,都会收到以下错误/警告: Severity Code Description Project File Line Suppression State Error CS0234 The type or namespace name 'Reporting' does not exist in the namespace 'Mic

我正在与其他开发人员合作进行一个C#/MVC项目。除了我的机器,这个项目对每个人都很好

我们正在项目中使用git

每当我尝试构建项目时,都会收到以下错误/警告:

Severity    Code    Description Project File    Line    Suppression State
Error       CS0234  The type or namespace name 'Reporting' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) MvcPortal   C:\xxx\xxx\xxx\MvcPortal\Controllers\TestingController.cs   18  Active
Error       CS0234  The type or namespace name 'Reporting' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) MvcPortal   C:\xxx\xxx\xxx\MvcPortal\Helpers\ReportUtils.cs 6   Active
Error       CS0246  The type or namespace name 'LocalReport' could not be found (are you missing a using directive or an assembly reference?)   MvcPortal   C:\xxx\xxx\xxx\MvcPortal\Helpers\ReportUtils.cs 84  Active
Error       CS0246  The type or namespace name 'LocalReport' could not be found (are you missing a using directive or an assembly reference?)   MvcPortal   C:\xxx\xxx\xxx\MvcPortal\Helpers\ReportUtils.cs 96  Active
Error       CS0246  The type or namespace name 'LocalReport' could not be found (are you missing a using directive or an assembly reference?)   MvcPortal   C:\xxx\xxx\xxx\MvcPortal\Helpers\ReportUtils.cs 124 Active
Warning     CS0108  'SupplierLController.View()' hides inherited member 'Controller.View()'. Use the new keyword if hiding was intended.    MvcPortal   C:\xxx\xxx\xxx\MvcPortal\Controllers\SupplierLiaisonController.cs   60  Active
Warning             The referenced component 'Microsoft.ReportViewer.WebForms' could not be found.  MvcPortal           
Warning             Could not resolve this reference. Could not locate the assembly "Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.  MvcPortal           
当我在谷歌上搜索这些错误时,我发现了一些解决方案,但是如果我执行这些解决方案中的任何一个,它们都会被推到存储库中,然后被其他开发人员拉出来!这可能会导致进一步的问题,因为只有我的机器有这些错误


有什么想法吗?

您的计算机上似乎缺少程序集Microsoft.ReportViewer.WebForms。@rory.ap谢谢!我认为你是对的。有什么建议可以解决这个问题吗?安装可再发行的。我想你需要安装你的nuget引用(也许)。根据der与版本/项目类型的不同,确切的过程可能会有所不同-如果你问其他开发人员他们是如何做到的-他们应该能够给你一个确切的说明,因为他们已经做到了。当你在做的时候,为下一个可能加入你的开发人员写一本手册,包括所有这些步骤,比如明年。。。