我在构建项目时遇到了这个错误,无法修复。我有两个解决方案,它们都引用了相同的设置项目,可能也就是这个问题。
我在谷歌上搜索,在StackOverflow中查找它,并完成了人们所说的所有应该做的事情:删除和读取引用,以及一个长的等等。
我将把我的输出粘贴在这里,希望有人能给我带来一线希望。。
提前感谢大家。
最佳,曼努埃尔。
------ Build started: Project: CPTUtils, Configuration: Debug Any CPU ------
CPTUtils -> D:ProjectsDuboCalcDataLayerCPTUtilsbinDebugCPTUtils.dll
------ Build started: Project: CPT.Security, Configuration: Debug Any CPU ------
CPT.Security -> D:ProjectsDuboCalcDataLayerToolsCPT.SecuritybinDebugCPT.Security.dll
------ Build started: Project: CPTTranslations, Configuration: Debug Any CPU ------
CPTTranslations -> D:ProjectsDuboCalcDataLayerCPTTranslationsbinDebugCPTTranslations.dll
------ Build started: Project: CPTDB, Configuration: Debug Any CPU ------
CPTDB -> D:ProjectsDuboCalcDataLayerCPTDBbinDebugCPTDB.dll
------ Build started: Project: DBManagement, Configuration: Debug Any CPU ------
DBManagement -> D:ProjectsDuboCalcDataLayerDBManagementbinDebugDBManagement.dll
------ Build started: Project: DBMGTBaseExtensions, Configuration: Debug Any CPU ------
DBMGTBaseExtensions -> D:ProjectsDuboCalcDataLayerDBMGTBaseExtensionsbinDebugDBMGTBaseExtensions.dll
------ Build started: Project: Exporter, Configuration: Debug Any CPU ------
Exporter -> D:ProjectsDuboCalcDataLayerExporterbinDebugExporter.dll
copy "D:ProjectsDuboCalcDataLayerExporterbinDebugExporter.dll" "D:ProjectsDuboCalcDuboCalc2.0binDebug"
copy "D:ProjectsDuboCalcDataLayerExporterbinDebugExporter.pdb" "D:ProjectsDuboCalcDuboCalc2.0binDebug"
1 file(s) copied.
1 file(s) copied.
------ Build started: Project: DBMgtRevisioning, Configuration: Debug Any CPU ------
DBMgtRevisioning -> D:ProjectsDuboCalcDataLayerDBMgtRevisioningbinDebugDBMgtRevisioning.dll
------ Build started: Project: NetworkTools, Configuration: Debug Any CPU ------
NetworkTools -> D:ProjectsDuboCalcDataLayerToolsNetworkToolsbinDebugNetworkTools.dll
------ Build started: Project: DBInstaller, Configuration: Debug Any CPU ------
DBInstaller -> D:ProjectsDuboCalcDuboCalc2.0DBInstallerbinDebugDBInstaller.exe
------ Build started: Project: DCClasses, Configuration: Debug Any CPU ------
DCClasses -> D:ProjectsDuboCalcDCClassesDCClassesbinDebugDCClasses.dll
------ Build started: Project: XMLReporter, Configuration: Debug Any CPU ------
Consider app.config remapping of assembly "EnvDTE, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "7.0.3300.0" [] to Version "8.0.0.0" [C:Program Files (x86)Common FilesMicrosoft SharedMSEnvPublicAssembliesEnvDTE.dll] to solve conflict and get rid of warning.
C:WindowsMicrosoft.NETFrameworkv3.5Microsoft.Common.targets : warning MSB3247: Found conflicts between different versions of the same dependent assembly.
XMLReporter -> D:ProjectsDuboCalcDuboCalc2.0XMLReporterbinDebugXMLReporter.exe
Done building project "XMLReporter.csproj".
------ Build started: Project: DuboCalc2.0, Configuration: Debug Any CPU ------
C:WindowsMicrosoft.NETFrameworkv3.5Microsoft.Common.targets : warning : The referenced project '....DCClassesDCClassesDCClassesDCClasses.csproj' does not exist.
Consider app.config remapping of assembly "CPT.Security, Culture=neutral, PublicKeyToken=d593bbb549999bfb" from Version "1.0.4314.17230" [D:ProjectsDataLayerCPTDBbinDebugCPT.Security.dll] to Version "1.0.4402.23887" [D:ProjectsDuboCalcDataLayerToolsCPT.SecuritybinDebugCPT.Security.dll] to solve conflict and get rid of warning.
C:WindowsMicrosoft.NETFrameworkv3.5Microsoft.Common.targets : warning MSB3247: Found conflicts between different versions of the same dependent assembly.
C:WindowsMicrosoft.NETFrameworkv3.5Csc.exe /noconfig /nowarn:1701,1702 /errorreport:prompt /warn:4 /define:DEBUG;TRACE /main:DuboCalc2._0.Program /reference:D:ProjectsDuboCalcDataLayerToolsCPT.SecuritybinDebugCPT.Security.dll /reference:D:ProjectsDataLayerCPTDBbinDebugCPTDB.dll /reference:D:ProjectsDuboCalcDataLayerCPTTranslationsbinDebugCPTTranslations.dll /reference:D:ProjectsDuboCalcDataLayerCPTUtilsbinDebugCPTUtils.dll /reference:D:ProjectsDuboCalcDuboCalc2.0DBInstallerbinDebugDBInstaller.exe /reference:D:ProjectsDataLayerDBManagementbinDebugDBManagement.dll /reference:D:ProjectsDuboCalcDataLayerDBMGTBaseExtensionsbinDebugDBMGTBaseExtensions.dll /reference:D:ProjectsDuboCalcDataLayerDBMgtRevisioningbinDebugDBMgtRevisioning.dll /reference:D:ProjectsDuboCalcDCClassesDCClassesbinDebugDCClasses.dll /reference:D:ProjectsDuboCalcDataLayerExporterbinDebugExporter.dll /reference:..dllInfragistics2.Excel.v9.2.dll /reference:..dllInfragistics2.Shared.v9.2.dll /reference:..dllInfragistics2.Win.UltraWinChart.v9.2.dll /reference:..dllInfragistics2.Win.UltraWinDataSource.v9.2.dll /reference:..dllInfragistics2.Win.UltraWinGrid.ExcelExport.v9.2.dll /reference:..dllInfragistics2.Win.UltraWinGrid.v9.2.dll /reference:..dllInfragistics2.Win.UltraWinTabControl.v9.2.dll /reference:..dllInfragistics2.Win.UltraWinTree.v9.2.dll /reference:..dllInfragistics2.Win.v9.2.dll /reference:C:WindowsMicrosoft.NETFrameworkv2.0.50727Microsoft.VisualBasic.dll /reference:D:ProjectsDuboCalcDataLayerToolsNetworkToolsbinDebugNetworkTools.dll /reference:C:WindowsMicrosoft.NETFrameworkv2.0.50727System.configuration.dll /reference:"C:Program Files (x86)Reference AssembliesMicrosoftFrameworkv3.5System.Core.dll" /reference:"C:Program Files (x86)Reference AssembliesMicrosoftFrameworkv3.5System.Data.DataSetExtensions.dll" /reference:C:WindowsMicrosoft.NETFrameworkv2.0.50727System.Data.dll /reference:C:WindowsMicrosoft.NETFrameworkv2.0.50727System.Deployment.dll /reference:C:WindowsMicrosoft.NETFrameworkv2.0.50727System.Design.dll /reference:C:WindowsMicrosoft.NETFrameworkv2.0.50727System.dll /reference:C:WindowsMicrosoft.NETFrameworkv2.0.50727System.Drawing.dll /reference:C:WindowsMicrosoft.NETFrameworkv2.0.50727System.Runtime.Serialization.Formatters.Soap.dll /reference:C:WindowsMicrosoft.NETFrameworkv2.0.50727System.Web.dll /reference:C:WindowsMicrosoft.NETFrameworkv2.0.50727System.Windows.Forms.dll /reference:C:WindowsMicrosoft.NETFrameworkv2.0.50727System.Xml.dll /reference:"C:Program Files (x86)Reference AssembliesMicrosoftFrameworkv3.5System.Xml.Linq.dll" /reference:D:ProjectsDuboCalcDuboCalc2.0XMLReporterbinDebugXMLReporter.exe /debug+ /debug:full /filealign:512 /nowin32manifest /optimize- /out:objDebugDuboCalc2.0.exe /resource:objDebugDuboCalc2._0.Forms.AxisAnalysisForm.resources /resource:objDebugDuboCalc2._0.Forms.EnvironmentRatiosForm.resources /resource:objDebugDuboCalc2._0.Forms.frmAbout.resources /resource:objDebugDuboCalc2._0.Forms.frmData.resources /resource:objDebugDuboCalc2._0.Forms.frmSplash.resources /resource:objDebugDuboCalc2._0.Graph.resources /resource:objDebugDuboCalc2._0.Forms.LibrarySelectionForm.resources /resource:objDebugDuboCalc2._0.Forms.LibrarySelectionForProject.resources /resource:objDebugDuboCalc2._0.Forms.LibrarySelectionForUpgrade.resources /resource:objDebugDuboCalc2._0.Forms.MassBalanceForm.resources /resource:objDebugDuboCalc2._0.ProjectForm.resources /resource:objDebugDuboCalc2._0.Forms.ProjectPropertiesForm.resources /resource:objDebugDuboCalc2._0.Forms.ReportSelectionForm.resources /resource:objDebugDuboCalc2._0.Forms.SearchResultsForm.resources /resource:objDebugDuboCalc2._0.Forms.TotalOverviewForm.resources /resource:objDebugDuboCalc2._0.Forms.UpdatePreviewForm.resources /resource:objDebugDuboCalc2._0.SearchForm.resources /resource:objDebugDuboCalc2._0.frm_AddMaterialProcess.resources /resource:objDebugDuboCalc2._0.OptionsForm.resources /resource:objDebugDuboCalc2._0.SimpleSearchForm.resources /resource:objDebugDuboCalc2._0.TypeEditor.ExtraPropertiedForm.resources /resource:objDebugDuboCalc2._0.UILongString.resources /resource:objDebugDuboCalc2._0.Forms.VariantAnalysisForm.resources /resource:objDebugDuboCalc2._0.DuboCalcMain.resources /resource:objDebugDuboCalc2._0.Properties.Resources.resources /resource:objDebugDuboCalc2._0.WinFormStrings.resources /resource:Resourcesenglish.resources,DuboCalc2._0.Resources.english.resources /resource:ResourcesDuboCalc2._0.i18n.resources,DuboCalc2._0.Resources.DuboCalc2._0.i18n.resources /resource:Entities.bmp,DuboCalc2._0.Entities.bmp /resource:objDebugDuboCalc2.0.exe.licenses /target:winexe /win32icon:DC.ico DCHelpHelpManager.cs FormsAxisAnalysisForm.cs FormsAxisAnalysisForm.Designer.cs FormsEnvironmentRatiosForm.cs FormsEnvironmentRatiosForm.Designer.cs FormsfrmAbout.cs FormsfrmAbout.Designer.cs FormsfrmData.cs FormsfrmData.Designer.cs FormsfrmSplash.cs FormsfrmSplash.Designer.cs FormsGraph.cs FormsGraph.Designer.cs FormsLibrarySelectionForm.cs FormsLibrarySelectionForm.Designer.cs FormsLibrarySelectionForProject.cs FormsLibrarySelectionForProject.Designer.cs FormsLibrarySelectionForUpgrade.cs FormsLibrarySelectionForUpgrade.Designer.cs FormsMassBalanceForm.cs FormsMassBalanceForm.Designer.cs FormsProjectPropertiesForm.cs FormsProjectPropertiesForm.Designer.cs FormsReportSelectionForm.cs FormsReportSelectionForm.Designer.cs FormsSearchResultsForm.cs FormsSearchResultsForm.Designer.cs FormsTotalOverviewForm.cs FormsTotalOverviewForm.Designer.cs FormsUpdatePreviewForm.cs FormsUpdatePreviewForm.Designer.cs HelperClassesDuboCalcSettings.cs HelperClassesExcelExporter.cs HelperClassesItnterFaces.cs HelperClassesJSONConverter.cs HelperClassesScreenGraber.cs HelperClassesUtils.cs LibUpdateLibraryUpdater.cs LibUpdateItemComparator.cs ProjectExplorerGUIMaterial.cs ProjectExplorerGUIProcess.cs FormsSearchForm.cs FormsSearchForm.Designer.cs FormsDropDownTreeView.cs Formsfrm_AddMaterialProcess.cs Formsfrm_AddMaterialProcess.Designer.cs FormsProjectForm.cs FormsProjectForm.Designer.cs TypeEditorCollectionEditor.cs TypeEditorExtraPropertiedForm.cs TypeEditorExtraPropertiedForm.Designer.cs TypeEditorLongStringEditor.cs FormsOptionsForm.cs FormsOptionsForm.Designer.cs IconManager.cs Icons.cs ProjectExplorerGUIItemMaterial.cs ProjectExplorerGUIItemProcess.cs FormsSimpleSearchForm.cs FormsSimpleSearchForm.Designer.cs UILongString.cs WinFormStrings.nl-NL.Designer.cs I18n.cs ProjectExplorerElement.cs FormsVariantAnalysisForm.cs FormsVariantAnalysisForm.Designer.cs ProjectExplorerGUIItem.cs ProjectExplorerProject.cs ProjectExplorerXMLHelper.cs DuboCalcMain.cs DuboCalcMain.Designer.cs Program.cs PropertiesAssemblyInfo.cs PropertiesResources.Designer.cs PropertiesSettings.Designer.cs ProjectExplorerVariant.cs WinFormStrings.Designer.cs
D:ProjectsDuboCalcDuboCalc2.0DuboCalc2.0DuboCalcMain.cs(22,7): warning CS0105: The using directive for 'System.Data' appeared previously in this namespace
D:ProjectsDuboCalcDuboCalc2.0DuboCalc2.0FormsDropDownTreeView.cs(48,15): warning CS0108: 'DuboCalc2._0.DropDownTreeView.Margin' hides inherited member 'System.Windows.Forms.Control.Margin'. Use the new keyword if hiding was intended.
c:WindowsMicrosoft.NETFrameworkv2.0.50727System.Windows.Forms.dll: (Related file)
D:ProjectsDuboCalcDuboCalc2.0DuboCalc2.0Formsfrm_AddMaterialProcess.Designer.cs(166,64): warning CS0108: 'DuboCalc2._0.frm_AddMaterialProcess.Name' hides inherited member 'System.Windows.Forms.Control.Name'. Use the new keyword if hiding was intended.
c:WindowsMicrosoft.NETFrameworkv2.0.50727System.Windows.Forms.dll: (Related file)
D:ProjectsDuboCalcDuboCalc2.0DuboCalc2.0FormsProjectForm.cs(2263,42): warning CS0168: The variable 'ex' is declared but never used
D:ProjectsDuboCalcDuboCalc2.0DuboCalc2.0DuboCalcMain.cs(289,21): warning CS0162: Unreachable code detected
D:ProjectsDuboCalcDuboCalc2.0DuboCalc2.0ProjectExplorerProject.cs(668,20): warning CS0219: The variable 'toc_content' is assigned but its value is never used
D:ProjectsDuboCalcDuboCalc2.0DuboCalc2.0I18n.cs(28,30): warning CS0168: The variable 'e' is declared but never used
D:ProjectsDuboCalcDuboCalc2.0DuboCalc2.0FormsProjectForm.cs(49,22): warning CS0414: The field 'DuboCalc2._0.ProjectForm.m_multiselect' is assigned but its value is never used
D:ProjectsDuboCalcDuboCalc2.0DuboCalc2.0FormsSearchForm.cs(28,22): warning CS0414: The field 'DuboCalc2._0.SearchForm.rename' is assigned but its value is never used
Compile complete -- 0 errors, 9 warnings
C:Program FilesMicrosoft SDKsWindowsv6.0AbinAL.exe /culture:nl-NL /out:objDebugnl-NLDuboCalc2.0.resources.dll /template:objDebugDuboCalc2.0.exe /embed:objDebugDuboCalc2._0.WinFormStrings.nl-NL.resources
C:Program FilesMicrosoft SDKsWindowsv6.0AbinAL.exe /culture:en-US /out:objDebugen-USDuboCalc2.0.resources.dll /template:objDebugDuboCalc2.0.exe /embed:Resourcesenglish.en-US.resources,DuboCalc2._0.Resources.english.en-US.resources
DuboCalc2.0 -> D:ProjectsDuboCalcDuboCalc2.0DuboCalc2.0binDebugDuboCalc2.0.exe
Done building project "DuboCalc2.0.csproj".
------ Starting pre-build validation for project 'DuboCalcInstallNoSQL' ------
WARNING: File 'jit.js' should not be installed into a User's Profile folder because it may not be available to all users.
WARNING: File 'example1.js' should not be installed into a User's Profile folder because it may not be available to all users.
WARNING: File 'Spacetree.css' should not be installed into a User's Profile folder because it may not be available to all users.
WARNING: File 'DuboCalcOptions.xml' should not be installed into a User's Profile folder because it may not be available to all users.
WARNING: File 'base.css' should not be installed into a User's Profile folder because it may not be available to all users.
WARNING: File 'form.html' should not be installed into a User's Profile folder because it may not be available to all users.
WARNING: File 'excanvas.js' should not be installed into a User's Profile folder because it may not be available to all users.
WARNING: File 'jit-yc.js' should not be installed into a User's Profile folder because it may not be available to all users.
ERROR: Invalid or unspecified target for shortcut 'DuboCalc 2.1'
ERROR: An error occurred while validating. HRESULT = '80004005'
------ Pre-build validation for project 'DuboCalcInstallNoSQL' completed ------
------ Build started: Project: DuboCalcInstallNoSQL, Configuration: Debug ------
========== Build: 13 succeeded or up-to-date, 1 failed, 0 skipped ==========
我解决了这个问题,重新检查了整个项目并从头开始。。花了我一整天的时间,但我修复了它:)