我正在与其他开发人员合作开发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
当我搜索这些错误时,我找到了一些解决方案,但如果我执行这些解决方案中的任何一个,它们将被推入存储库,然后由其他开发人员提取!这可能会导致更多问题,因为我的机器是唯一出现这些错误的机器?
有什么想法吗?