【发布时间】:2016-08-05 02:34:28
【问题描述】:
我创建了一个分支,在意识到我需要做的就是添加其他程序的 .dll 之后,生活正在寻找;)。无论如何,在 5 小时后,又到了最后一期的溢出时间了,我会觉得好像我完成了一些事情。
我创建了一个分支,所有要处理的 nessesserry 程序都在该分支中,并且所有引用都被复制并粘贴为 .dll,感觉就像我做了什么。 ;)
无论如何,我有一个程序不会重新编译一个 dll 或任何内置参考或任何 Nuget 包,相信我,我已经尝试了所有事情,我的意思是我所知道的一切,并且在 5 小时后是时候进入 StackOverflow 了。
请看我的两张快照,并给我一个提示,让我想在世界上做些什么。现在,每个程序都必须重置它的引用并且没有问题,但是这个是胭脂,我已经删除它,删除它,重新添加它,下一步是什么?我迷路了。
请指教。
[1
这是输出。
1>------ Rebuild All started: Project: PartsProcessor, Configuration: Debug Any CPU ------
2>------ Rebuild All started: Project: CadDetials, Configuration: Debug Any CPU ------
3>------ Rebuild All started: Project: UtilFile, Configuration: Debug Any CPU ------
2>W:\Users\Erik Little\Source\Workspaces\WorkSpace\AlumCloud\Main\BackEnd\CadDetials\Manager.cs(1,7,1,23): error CS0246: The type or namespace name 'AlumCloudDrawing' could not be found (are you missing a using directive or an assembly reference?)
2>W:\Users\Erik Little\Source\Workspaces\WorkSpace\AlumCloud\Main\BackEnd\CadDetials\Manager.cs(17,28,17,39): error CS0246: The type or namespace name 'DrawingBase' could not be found (are you missing a using directive or an assembly reference?)
3> UtilFile -> W:\Users\Erik Little\Source\Workspaces\WorkSpace\AlumCloud\Main\BackEnd\UtilFile\bin\Debug\UtilFile.dll
1>W:\Users\Erik Little\Source\Workspaces\WorkSpace\AlumCloud\Main\BackEnd\PartsProcessor\Processors\PartsProcessor.cs(58,21,58,38): warning CS0414: The field 'PartProcessor.W_BLOCKS_PER_LITE' is assigned but its value is never used
1> PartsProcessor -> W:\Users\Erik Little\Source\Workspaces\WorkSpace\AlumCloud\Main\BackEnd\PartsProcessor\bin\Debug\PartsProcessor.dll
4>------ Rebuild All started: Project: Optimization, Configuration: Debug Any CPU ------
5>------ Rebuild All started: Project: CutSheet, Configuration: Debug Any CPU ------
6>------ Rebuild All started: Project: ElevationMaker, Configuration: Debug Any CPU ------
7>------ Rebuild All started: Project: Estimate, Configuration: Debug Any CPU ------
6>W:\Users\Erik Little\Source\Workspaces\WorkSpace\AlumCloud\Main\BackEnd\ElevationMaker\ElevationMaker.csproj(183,5): error : This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=317567.
8>------ Rebuild All started: Project: PartsList, Configuration: Debug Any CPU ------
4>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): warning MSB3277: Found conflicts between different versions of the same dependent assembly that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed.
4>W:\Users\Erik Little\Source\Workspaces\WorkSpace\AlumCloud\Main\BackEnd\Optimization\OptimizedParts.cs(1,7,1,23): error CS0246: The type or namespace name 'AlumCloudDrawing' could not be found (are you missing a using directive or an assembly reference?)
4>W:\Users\Erik Little\Source\Workspaces\WorkSpace\AlumCloud\Main\BackEnd\Optimization\OptimizedParts.cs(19,35,19,46): error CS0246: The type or namespace name 'DrawingBase' could not be found (are you missing a using directive or an assembly reference?)
9>------ Rebuild All started: Project: LabelMaker, Configuration: Debug Any CPU ------
8>W:\Users\Erik Little\Source\Workspaces\WorkSpace\AlumCloud\Main\BackEnd\PartsList\MaterialList.cs(1,7,1,23): error CS0246: The type or namespace name 'AlumCloudDrawing' could not be found (are you missing a using directive or an assembly reference?)
8>W:\Users\Erik Little\Source\Workspaces\WorkSpace\AlumCloud\Main\BackEnd\PartsList\MaterialList.cs(18,33,18,44): error CS0246: The type or namespace name 'DrawingBase' could not be found (are you missing a using directive or an assembly reference?)
10>------ Rebuild All started: Project: AlumCloudDrawing, Configuration: Debug Any CPU ------
9>W:\Users\Erik Little\Source\Workspaces\WorkSpace\AlumCloud\Main\BackEnd\LabelMaker\Manager.cs(1,7,1,23): error CS0246: The type or namespace name 'AlumCloudDrawing' could not be found (are you missing a using directive or an assembly reference?)
9>W:\Users\Erik Little\Source\Workspaces\WorkSpace\AlumCloud\Main\BackEnd\LabelMaker\Labels.cs(1,7,1,23): error CS0246: The type or namespace name 'AlumCloudDrawing' could not be found (are you missing a using directive or an assembly reference?)
9>W:\Users\Erik Little\Source\Workspaces\WorkSpace\AlumCloud\Main\BackEnd\LabelMaker\ILabels.cs(8,70,8,86): error CS0246: The type or namespace name 'AlumCloudDrawing' could not be found (are you missing a using directive or an assembly reference?)
9>W:\Users\Erik Little\Source\Workspaces\WorkSpace\AlumCloud\Main\BackEnd\LabelMaker\ILabels.cs(9,103,9,119): error CS0246: The type or namespace name 'AlumCloudDrawing' could not be found (are you missing a using directive or an assembly reference?)
9>W:\Users\Erik Little\Source\Workspaces\WorkSpace\AlumCloud\Main\BackEnd\LabelMaker\Labels.cs(38,45,38,54): error CS0246: The type or namespace name 'SheetInfo' could not be found (are you missing a using directive or an assembly reference?)
9>W:\Users\Erik Little\Source\Workspaces\WorkSpace\AlumCloud\Main\BackEnd\LabelMaker\Labels.cs(43,41,43,50): error CS0246: The type or namespace name 'SheetInfo' could not be found (are you missing a using directive or an assembly reference?)
9>W:\Users\Erik Little\Source\Workspaces\WorkSpace\AlumCloud\Main\BackEnd\LabelMaker\Labels.cs(18,27,18,34): error CS0535: 'Labels' does not implement interface member 'ILabels.GetPDF(AlumCloudDrawing.SheetInfo)'
9>W:\Users\Erik Little\Source\Workspaces\WorkSpace\AlumCloud\Main\BackEnd\LabelMaker\Labels.cs(18,27,18,34): error CS0535: 'Labels' does not implement interface member 'ILabels.GetSheets(AlumCloudDrawing.SheetInfo)'
10>W:\Users\Erik Little\Source\Workspaces\WorkSpace\AlumCloud\Main\BackEnd\AlumCloudDrawing\AlumCloudDrawing.csproj(138,5): error : This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ..\packages\Microsoft.Bcl.Build.1.0.21\build\Microsoft.Bcl.Build.targets.
5>W:\Users\Erik Little\Source\Workspaces\WorkSpace\AlumCloud\Main\BackEnd\CutSheet\CutSheet.cs(1,7,1,23): error CS0246: The type or namespace name 'AlumCloudDrawing' could not be found (are you missing a using directive or an assembly reference?)
5>W:\Users\Erik Little\Source\Workspaces\WorkSpace\AlumCloud\Main\BackEnd\CutSheet\CutSheet.cs(18,29,18,40): error CS0246: The type or namespace name 'DrawingBase' could not be found (are you missing a using directive or an assembly reference?)
7>W:\Users\Erik Little\Source\Workspaces\WorkSpace\AlumCloud\Main\BackEnd\Estimate\Estimate.cs(1,7,1,23): error CS0246: The type or namespace name 'AlumCloudDrawing' could not be found (are you missing a using directive or an assembly reference?)
7>W:\Users\Erik Little\Source\Workspaces\WorkSpace\AlumCloud\Main\BackEnd\Estimate\Estimate.cs(16,29,16,40): error CS0246: The type or namespace name 'DrawingBase' could not be found (are you missing a using directive or an assembly reference?)
11>------ Rebuild All started: Project: BackendSandbox, Configuration: Debug Any CPU ------
11>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): warning MSB3274: The primary reference "DataImporter, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL" could not be resolved because it was built against the ".NETFramework,Version=v4.5.1" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.5".
11> BackendSandbox -> W:\Users\Erik Little\Source\Workspaces\WorkSpace\AlumCloud\Main\BackEnd\BackendSandbox\bin\Debug\BackendSandbox.exe
========== Rebuild All: 3 succeeded, 8 failed, 0 skipped ==========
这是 VSO Main 基本源代码的相同快照,而不是分支。
【问题讨论】:
-
在项目属性中查看 AlumCloudDrawing 项目的框架版本。
-
我们不会得到这些截图。进行干净的构建并从输出窗口提供构建输出。
-
乔恩是我做的,那是我读到的东西之一
-
@spender 我发布了你的要求。这似乎很棘手,因为 NuGet 并没有说实话我做了所有这些,删除然后添加回来,并逐行计算,所有 dll / 包都在那里。
-
@AlumCloud.Com 您是如何将 nuget 包(以及对 DLL 的引用)添加到另一个项目的?如果它们是 nuget 包,则必须由 nuget 添加,而不是通过 cut'n'paste 添加。如果它们是对其他项目的引用,则应将它们添加为对项目的引用,而不是添加到项目的 DLL 输出中。
标签: c# branching-and-merging azure-devops tfvc