Visual studio,构建失败,没有错误
Visual studio, build failed with no errors
我在 visual studio 2013 年有一个项目运作良好。
在上次重建(没有更改)时它失败了,我没有收到错误。
我试图重新启动一切,甚至建立了一个没有运气的新项目。我重新安装了我的 VS2013,什么也没有...:(
当我将构建日志更改为诊断时,我得到了以下结果:
5f7f11d50a3a".
Resolved file path is "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Deployment.dll".
Reference found at search path location "{TargetFrameworkDirectory}".
For SearchPath "{TargetFrameworkDirectory}".
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Deployment.winmd", but it didn't exist.
This reference is not "CopyLocal" because it's a prerequisite file.
The ImageRuntimeVersion for this reference is "v4.0.30319".
Primary reference "System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Resolved file path is "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Drawing.dll".
Reference found at search path location "{TargetFrameworkDirectory}".
For SearchPath "{TargetFrameworkDirectory}".
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Drawing.winmd", but it didn't exist.
This reference is not "CopyLocal" because it's a prerequisite file.
The ImageRuntimeVersion for this reference is "v4.0.30319".
Primary reference "System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Resolved file path is "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Management.dll".
Reference found at search path location "{TargetFrameworkDirectory}".
For SearchPath "{TargetFrameworkDirectory}".
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Management.winmd", but it didn't exist.
This reference is not "CopyLocal" because it's a prerequisite file.
The ImageRuntimeVersion for this reference is "v4.0.30319".
Primary reference "System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089".
Resolved file path is "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Windows.Forms.dll".
Reference found at search path location "{TargetFrameworkDirectory}".
For SearchPath "{TargetFrameworkDirectory}".
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Windows.Forms.winmd", but it didn't exist.
This reference is not "CopyLocal" because it's a prerequisite file.
The ImageRuntimeVersion for this reference is "v4.0.30319".
Primary reference "System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089".
Resolved file path is "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Xml.dll".
Reference found at search path location "{TargetFrameworkDirectory}".
For SearchPath "{TargetFrameworkDirectory}".
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Xml.winmd", but it didn't exist.
This reference is not "CopyLocal" because it's a prerequisite file.
The ImageRuntimeVersion for this reference is "v4.0.30319".
Primary reference "System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089".
Resolved file path is "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Xml.Linq.dll".
Reference found at search path location "{TargetFrameworkDirectory}".
For SearchPath "{TargetFrameworkDirectory}".
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Xml.Linq.winmd", but it didn't exist.
This reference is not "CopyLocal" because it's a prerequisite file.
The ImageRuntimeVersion for this reference is "v4.0.30319".
Primary reference "System.Data.DataSetExtensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089".
Resolved file path is "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.DataSetExtensions.dll".
Reference found at search path location "{TargetFrameworkDirectory}".
For SearchPath "{TargetFrameworkDirectory}".
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.DataSetExtensions.winmd", but it didn't exist.
This reference is not "CopyLocal" because it's a prerequisite file.
The ImageRuntimeVersion for this reference is "v4.0.30319".
Primary reference "System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089".
Resolved file path is "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Core.dll".
Reference found at search path location "{TargetFrameworkDirectory}".
For SearchPath "{TargetFrameworkDirectory}".
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Core.winmd", but it didn't exist.
This reference is not "CopyLocal" because it's a prerequisite file.
The ImageRuntimeVersion for this reference is "v4.0.30319".
AssemblyFoldersEx location: "{Registry:Software\Microsoft\.NETFramework,v4.0,AssemblyFoldersEx}"
C:\Program Files\Reference Assemblies\Microsoft\Workflow Manager.0\
C:\Program Files (x86)\Microsoft WCF Data Services.6\bin\.NETFramework\
C:\Program Files (x86)\Microsoft WCF Data Services.0\bin\.NETFramework\
C:\Program Files\Reference Assemblies\Microsoft\VSTO40\v4.0.Framework\
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Visual Studio Tools for Office\PIA\Office15\
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Visual Studio Tools for Office\PIA\Office14\
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Visual Studio Tools for Office\PIA\Common\
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\SharePoint\PublicAssemblies\
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\ReferenceAssemblies\v4.0\
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\ReferenceAssemblies\v4.0\
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\
C:\Program Files (x86)\Reference Assemblies\Microsoft\VBPowerPacks\v10.0\
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\TEMPLATE\WorkflowActivities\
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\TEMPLATE\WorkflowActivities\
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\ISAPI\
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\ISAPI\
C:\Program Files (x86)\Microsoft SDKs\RIA Services\v1.0\Libraries\Server\
C:\Program Files (x86)\Open XML SDK\V2.5\lib
C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\.NETFramework\v4.0.3.0.0\Type Providers\
C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\.NETFramework\v4.0.3.0.0\
C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\.NETFramework\v4.0.3.1.0\
C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp.0\Runtime\v4.0\Type Providers\
C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp.0\Runtime\v4.0\
C:\Program Files (x86)\Microsoft SDKs\Expression\Blend\.NETFramework\v4.0\Prototyping\Libraries\
C:\Program Files (x86)\Microsoft SDKs\Expression\Blend\.NETFramework\v4.0\Libraries\
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v2.0\Assemblies\
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\Assemblies\
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 4\Assemblies\
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 3\Assemblies\
C:\Program Files\Reference Assemblies\Microsoft\Microsoft Identity Extensions.0\
C:\Program Files\Common Files\Microsoft Shared\VS7DEBUG\Program Files\Reference Assemblies\Microsoft\VSTA30\v11.0\.NET2.0\
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\SharePoint\PublicAssemblies\
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\ReferenceAssemblies\v2.0\
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\ReferenceAssemblies\v2.0\
C:\Program Files (x86)\Reference Assemblies\Microsoft\VBPowerPacks\v10.0\
C:\Program Files (x86)\Common Files\Microsoft Shared\MSEnv\PublicAssemblies\
C:\Program Files (x86)\Microsoft Chart Controls\Assemblies
C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\.NETFramework\v2.0.3.0.0\
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Blend\
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Blend\
Done executing task "ResolveAssemblyReference".
Done building target "ResolveAssemblyReferences" in project "TomaMix_Grades.vbproj".
Target "GenerateBindingRedirects" skipped, due to false condition; ('$(AutoGenerateBindingRedirects)' == 'true' and '$(GenerateBindingRedirectsOutputType)' == 'true') was evaluated as ('' == 'true' and 'true' == 'true').
Target "GenerateBindingRedirectsUpdateAppConfig" skipped, due to false condition; ('$(AutoGenerateBindingRedirects)' == 'true' and '$(GenerateBindingRedirectsOutputType)' == 'true' and Exists('$(_GenerateBindingRedirectsIntermediateAppConfig)')) was evaluated as ('' == 'true' and 'true' == 'true' and Exists('obj\x86\Debug\TomaMix_Grades.vbproj.TomaMix Grades.exe.config')).
Target "PrepareForBuild" skipped. Previously built successfully.
Target "ResolveKeySource" skipped, due to false condition; ($(SignManifests) == 'true' or $(SignAssembly) == 'true') was evaluated as (false == 'true' or == 'true').
Target "ResolveAssemblyReferences" skipped. Previously built successfully.
Target "ResolveComReferences" in file "C:\Program Files (x86)\MSBuild.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\Development\TomaMix\TomaMix\TomaMix_Grades\TomaMix_Grades\TomaMix_Grades.vbproj" (target "ResolveReferences" depends on it):
Task "MakeDir"
Done executing task "MakeDir".
Task "ResolveComReference"
Using cache file at "obj\x86\Debug\TomaMix_Grades.vbproj.ResolveComReference.cache".
C:\Program Files (x86)\MSBuild.0\bin\Microsoft.Common.CurrentVersion.targets(2234,5): warning MSB3284: Cannot get the file path for type library "e64169b3-3592-47d2-816e-602c5c13f328" version 1.1. Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))
C:\Program Files (x86)\MSBuild.0\bin\Microsoft.Common.CurrentVersion.targets(2234,5): warning MSB3284: Cannot get the file path for type library "7b92f833-027d-402b-bff9-a67697366f4e" version 1.0. Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))
C:\Program Files (x86)\MSBuild.0\bin\Microsoft.Common.CurrentVersion.targets(2234,5): warning MSB3284: Cannot get the file path for type library "6bf52a50-394a-11d3-b153-00c04f79faa6" version 1.0. Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))
C:\Program Files (x86)\MSBuild.0\bin\Microsoft.Common.CurrentVersion.targets(2234,5): warning MSB3284: Cannot get the file path for type library "7b92f833-027d-402b-bff9-a67697366f4e" version 1.0. Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))
C:\Program Files (x86)\MSBuild.0\bin\Microsoft.Common.CurrentVersion.targets(2234,5): warning MSB3284: Cannot get the file path for type library "29866aed-1e14-417d-ba0f-1a2be6f5a19e" version 1.0. Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))
C:\Program Files (x86)\MSBuild.0\bin\Microsoft.Common.CurrentVersion.targets(2234,5): warning MSB3284: Cannot get the file path for type library "6bf52a50-394a-11d3-b153-00c04f79faa6" version 1.0. Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))
COM Reference 'MSComctlLib' is the interop assembly for ActiveX control 'AxMSComctlLib' but was marked to be linked by the compiler with the /link flag. This COM reference will be treated as a reference and will not be linked.
Resolving COM reference for item "ADODB" with a wrapper "primary".
Determining dependencies of the COM reference "ADODB".
Resolving COM reference for item "stdole" with a wrapper "primary".
Determining dependencies of the COM reference "stdole".
Resolved COM reference for item "stdole": "C:\Windows\assembly\GAC\stdole.0.3300.0__b03f5f7f11d50a3a\stdole.dll".
Resolved COM reference for item "ADODB": "C:\Windows\assembly\GAC\ADODB.0.3300.0__b03f5f7f11d50a3a\ADODB.dll".
Resolving COM reference for item "Microsoft.Office.Core" with a wrapper "primary".
Determining dependencies of the COM reference "Microsoft.Office.Core".
Resolved COM reference for item "Microsoft.Office.Core": "C:\Windows\assembly\GAC_MSIL\Office.0.0.0__71e9bce111e9429c\Office.dll".
Resolving COM reference for item "Microsoft.Office.Interop.Access" with a wrapper "primary".
Determining dependencies of the COM reference "Microsoft.Office.Interop.Access".
Resolving COM reference for item "Microsoft.Office.Interop.Access.Dao" with a wrapper "primary".
Determining dependencies of the COM reference "Microsoft.Office.Interop.Access.Dao".
Resolved COM reference for item "Microsoft.Office.Interop.Access.Dao": "C:\Windows\assembly\GAC_MSIL\Microsoft.Office.Interop.Access.Dao.0.0.0__71e9bce111e9429c\Microsoft.Office.Interop.Access.Dao.dll".
Resolving COM reference for item "VBIDE" with a wrapper "primary".
Determining dependencies of the COM reference "VBIDE".
Resolved COM reference for item "VBIDE": "C:\Windows\assembly\GAC_MSIL\Microsoft.Vbe.Interop.0.0.0__71e9bce111e9429c\Microsoft.Vbe.Interop.dll".
Resolving COM reference dependency "2a75196c-d9eb-4129-b803-931327f72d5c" version 2.8.
Resolved COM reference dependency "2a75196c-d9eb-4129-b803-931327f72d5c" version 2.8: "C:\Windows\assembly\GAC\ADODB.0.3300.0__b03f5f7f11d50a3a\ADODB.dll"
Resolved COM reference for item "Microsoft.Office.Interop.Access": "C:\Windows\assembly\GAC_MSIL\Microsoft.Office.Interop.Access.0.0.0__71e9bce111e9429c\Microsoft.Office.Interop.Access.dll".
Resolving COM reference for item "Microsoft.Office.Interop.Word" with a wrapper "primary".
Determining dependencies of the COM reference "Microsoft.Office.Interop.Word".
Resolved COM reference for item "Microsoft.Office.Interop.Word": "C:\Windows\assembly\GAC_MSIL\Microsoft.Office.Interop.Word.0.0.0__71e9bce111e9429c\Microsoft.Office.Interop.Word.dll".
Resolving COM reference for item "MSComctlLib" with a wrapper "primary".
Determining dependencies of the COM reference "MSComctlLib".
C:\Program Files (x86)\MSBuild.0\bin\Microsoft.Common.CurrentVersion.targets(2234,5): warning MSB3283: Cannot find wrapper assembly for type library "MSComctlLib". Verify that (1) the COM component is registered correctly and (2) your target platform is the same as the bitness of the COM component. For example, if the COM component is 32-bit, your target platform must not be 64-bit.
Resolving COM reference for item "JRO" with a wrapper "tlbimp".
Determining dependencies of the COM reference "JRO".
Resolving COM reference dependency "2a75196c-d9eb-4129-b803-931327f72d5c" version 2.8.
Resolved COM reference dependency "2a75196c-d9eb-4129-b803-931327f72d5c" version 2.8: "C:\Windows\assembly\GAC\ADODB.0.3300.0__b03f5f7f11d50a3a\ADODB.dll"
Processing COM reference "JRO" from path "C:\Program Files (x86)\Common Files\System\ado\msjro.dll". Type 'ReplicaTypeEnum' imported.
Processing COM reference "JRO" from path "C:\Program Files (x86)\Common Files\System\ado\msjro.dll". Type 'VisibilityEnum' imported.
Processing COM reference "JRO" from path "C:\Program Files (x86)\Common Files\System\ado\msjro.dll". Type 'UpdatabilityEnum' imported.
Processing COM reference "JRO" from path "C:\Program Files (x86)\Common Files\System\ado\msjro.dll". Type 'SyncTypeEnum' imported.
Processing COM reference "JRO" from path "C:\Program Files (x86)\Common Files\System\ado\msjro.dll". Type 'SyncModeEnum' imported.
Processing COM reference "JRO" from path "C:\Program Files (x86)\Common Files\System\ado\msjro.dll". Type 'FilterTypeEnum' imported.
Resolved COM reference dependency "2a75196c-d9eb-4129-b803-931327f72d5c" version 2.8: "C:\Windows\assembly\GAC\ADODB.0.3300.0__b03f5f7f11d50a3a\ADODB.dll"
Processing COM reference "JRO" from path "C:\Program Files (x86)\Common Files\System\ado\msjro.dll". Type 'IReplica' imported.
Processing COM reference "JRO" from path "C:\Program Files (x86)\Common Files\System\ado\msjro.dll". Type 'Filters' imported.
Processing COM reference "JRO" from path "C:\Program Files (x86)\Common Files\System\ado\msjro.dll". Type 'Filter' imported.
Processing COM reference "JRO" from path "C:\Program Files (x86)\Common Files\System\ado\msjro.dll". Type 'IJetEngine' imported.
Processing COM reference "JRO" from path "C:\Program Files (x86)\Common Files\System\ado\msjro.dll". Type 'Replica' imported.
Processing COM reference "JRO" from path "C:\Program Files (x86)\Common Files\System\ado\msjro.dll". Type 'JetEngine' imported.
Resolved COM reference for item "JRO": "obj\x86\Debug\Interop.JRO.dll".
Resolving COM reference for item "Scripting" with a wrapper "tlbimp".
Determining dependencies of the COM reference "Scripting".
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'CompareMethod' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'IOMode' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'Tristate' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'FileAttribute' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type '__MIDL___MIDL_itf_scrrun_0000_0000_0001' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'IDictionary' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'Dictionary' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'IFileSystem' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'IDriveCollection' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'IDrive' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'DriveTypeConst' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type '__MIDL___MIDL_itf_scrrun_0001_0001_0001' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'IFolder' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'IFolderCollection' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'IFileCollection' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'IFile' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'ITextStream' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'SpecialFolderConst' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type '__MIDL___MIDL_itf_scrrun_0001_0001_0002' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'IFileSystem3' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'StandardStreamTypes' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type '__MIDL___MIDL_itf_scrrun_0001_0001_0003' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'FileSystemObject' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'Drive' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'Drives' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'Folder' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'Folders' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'File' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'Files' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'TextStream' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'IScriptEncoder' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'Encoder' imported.
Resolved COM reference for item "Scripting": "obj\x86\Debug\Interop.Scripting.dll".
Resolving COM reference for item "AxMSComctlLib" with a wrapper "aximp".
Determining dependencies of the COM reference "AxMSComctlLib".
C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools\AxImp.exe C:\Windows\SysWOW64\MSCOMCTL.OCX /out:obj\x86\Debug\AxInterop.MSComctlLib.dll
Generated Assembly: C:\Development\TomaMix\TomaMix\TomaMix_Grades\TomaMix_Grades\obj\x86\Debug\MSComctlLib.dll
Generated Assembly: C:\Development\TomaMix\TomaMix\TomaMix_Grades\TomaMix_Grades\obj\x86\Debug\AxInterop.MSComctlLib.dll
Resolved COM reference for item "AxMSComctlLib": "obj\x86\Debug\AxInterop.MSComctlLib.dll".
Done executing task "ResolveComReference" -- FAILED.
Done building target "ResolveComReferences" in project "TomaMix_Grades.vbproj" -- FAILED.
Target "_CheckForCompileOutputs" in file "C:\Program Files (x86)\MSBuild.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\Development\TomaMix\TomaMix\TomaMix_Grades\TomaMix_Grades\TomaMix_Grades.vbproj" (target "_CleanGetCurrentAndPriorFileWrites" depends on it):
Done building target "_CheckForCompileOutputs" in project "TomaMix_Grades.vbproj".
Target "_SGenCheckForOutputs" skipped, due to false condition; ('$(_SGenGenerateSerializationAssembliesConfig)' == 'On' or ('@(WebReferenceUrl)'!='' and '$(_SGenGenerateSerializationAssembliesConfig)' == 'Auto')) was evaluated as ('Off' == 'On' or (''!='' and 'Off' == 'Auto')).
Target "_CleanGetCurrentAndPriorFileWrites" in file "C:\Program Files (x86)\MSBuild.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\Development\TomaMix\TomaMix\TomaMix_Grades\TomaMix_Grades\TomaMix_Grades.vbproj" (target "_CleanRecordFileWrites" depends on it):
Task "ReadLinesFromFile"
Done executing task "ReadLinesFromFile".
Task "ConvertToAbsolutePath"
Done executing task "ConvertToAbsolutePath".
Task "FindUnderPath"
Comparison path is "C:\Development\TomaMix\TomaMix\TomaMix_Grades\TomaMix_Grades".
Done executing task "FindUnderPath".
Task "FindUnderPath"
Comparison path is "bin\x86\Debug\".
Done executing task "FindUnderPath".
Task "FindUnderPath"
Comparison path is "obj\x86\Debug\".
Done executing task "FindUnderPath".
Task "RemoveDuplicates"
Done executing task "RemoveDuplicates".
Done building target "_CleanGetCurrentAndPriorFileWrites" in project "TomaMix_Grades.vbproj".
Target "_CleanRecordFileWrites" in file "C:\Program Files (x86)\MSBuild.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\Development\TomaMix\TomaMix\TomaMix_Grades\TomaMix_Grades\TomaMix_Grades.vbproj" (target "CoreBuild" depends on it):
Task "RemoveDuplicates"
Done executing task "RemoveDuplicates".
Task "MakeDir"
Done executing task "MakeDir".
Task "WriteLinesToFile"
Done executing task "WriteLinesToFile".
Done building target "_CleanRecordFileWrites" in project "TomaMix_Grades.vbproj"
Build FAILED.
Time Elapsed 00:00:02.65
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
[https://drive.google.com/file/d/0B4s91eIhxfHGRUlJNmd2alBScmM/view?usp=sharing][the link 完整日志]
最后说构建失败
有趣的问题是当我尝试在 VS12 上重建它时,同样的问题,但是当我在其他机器上重建它时(将相同的项目文件夹复制到其他计算机)它工作了!!!
有什么建议吗?我不想重新安装 OS...
感谢你的帮助,罗伊
当构建在一台机器上运行,但在另一台机器上运行时使用完全相同的复制文件夹,并且构建失败是由于 .dll 在本例中的位置;最有可能的(几乎我已经解决的所有情况)问题在于这些程序集的位置。
可能的候选人:
- 您在不同位置安装了各种框架,并且可能使用了非相对路径。
- 安装的框架和代码之间存在位问题,这可能是您的情况,如此处的错误所示:
C:\Program Files (x86)\MSBuild.0\bin\Microsoft.Common.CurrentVersion.targets(2234,5): warning MSB3283: Cannot find wrapper assembly for type library "MSComctlLib". Verify that (1) the COM component is registered correctly and (2) your target platform is the same as the bitness of the COM component. For example, if the COM component is 32-bit, your target platform must not be 64-bit.
在我的例子中,问题出现在升级到 windows 10 之后。我的项目在 Visual Studio 2013 年使用框架 4.5。我不能保证这不是我做的或升级的某些行为,但我的项目有对 ADODB 和 MSDATASRC 的引用(均列在 -> 引用中)。我检查了我的项目是否确实有任何代码引用了这些组件中的任何内容,但找不到任何内容,所以我只是删除了这些引用,问题就消失了。
我的 VB.NET 项目也有 ADODB 引用。 windows 10 次升级后开始出现错误。
我简单地删除并再次添加引用,发现一行被三行替换如下:
<WrapperTool>primary</WrapperTool>
替换为
<WrapperTool>tlbimp</WrapperTool>
<Isolated>False</Isolated>
<EmbedInteropTypes>True</EmbedInteropTypes>
通过删除对“Microsoft HTML Object Library”的引用并在项目中再次添加它来解决我的问题。重新添加时项目文件的更改与 Muhammad Arshad Awan 指出的相同。
我在 visual studio 2013 年有一个项目运作良好。 在上次重建(没有更改)时它失败了,我没有收到错误。 我试图重新启动一切,甚至建立了一个没有运气的新项目。我重新安装了我的 VS2013,什么也没有...:(
当我将构建日志更改为诊断时,我得到了以下结果:
5f7f11d50a3a".
Resolved file path is "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Deployment.dll".
Reference found at search path location "{TargetFrameworkDirectory}".
For SearchPath "{TargetFrameworkDirectory}".
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Deployment.winmd", but it didn't exist.
This reference is not "CopyLocal" because it's a prerequisite file.
The ImageRuntimeVersion for this reference is "v4.0.30319".
Primary reference "System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Resolved file path is "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Drawing.dll".
Reference found at search path location "{TargetFrameworkDirectory}".
For SearchPath "{TargetFrameworkDirectory}".
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Drawing.winmd", but it didn't exist.
This reference is not "CopyLocal" because it's a prerequisite file.
The ImageRuntimeVersion for this reference is "v4.0.30319".
Primary reference "System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Resolved file path is "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Management.dll".
Reference found at search path location "{TargetFrameworkDirectory}".
For SearchPath "{TargetFrameworkDirectory}".
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Management.winmd", but it didn't exist.
This reference is not "CopyLocal" because it's a prerequisite file.
The ImageRuntimeVersion for this reference is "v4.0.30319".
Primary reference "System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089".
Resolved file path is "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Windows.Forms.dll".
Reference found at search path location "{TargetFrameworkDirectory}".
For SearchPath "{TargetFrameworkDirectory}".
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Windows.Forms.winmd", but it didn't exist.
This reference is not "CopyLocal" because it's a prerequisite file.
The ImageRuntimeVersion for this reference is "v4.0.30319".
Primary reference "System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089".
Resolved file path is "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Xml.dll".
Reference found at search path location "{TargetFrameworkDirectory}".
For SearchPath "{TargetFrameworkDirectory}".
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Xml.winmd", but it didn't exist.
This reference is not "CopyLocal" because it's a prerequisite file.
The ImageRuntimeVersion for this reference is "v4.0.30319".
Primary reference "System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089".
Resolved file path is "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Xml.Linq.dll".
Reference found at search path location "{TargetFrameworkDirectory}".
For SearchPath "{TargetFrameworkDirectory}".
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Xml.Linq.winmd", but it didn't exist.
This reference is not "CopyLocal" because it's a prerequisite file.
The ImageRuntimeVersion for this reference is "v4.0.30319".
Primary reference "System.Data.DataSetExtensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089".
Resolved file path is "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.DataSetExtensions.dll".
Reference found at search path location "{TargetFrameworkDirectory}".
For SearchPath "{TargetFrameworkDirectory}".
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.DataSetExtensions.winmd", but it didn't exist.
This reference is not "CopyLocal" because it's a prerequisite file.
The ImageRuntimeVersion for this reference is "v4.0.30319".
Primary reference "System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089".
Resolved file path is "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Core.dll".
Reference found at search path location "{TargetFrameworkDirectory}".
For SearchPath "{TargetFrameworkDirectory}".
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Core.winmd", but it didn't exist.
This reference is not "CopyLocal" because it's a prerequisite file.
The ImageRuntimeVersion for this reference is "v4.0.30319".
AssemblyFoldersEx location: "{Registry:Software\Microsoft\.NETFramework,v4.0,AssemblyFoldersEx}"
C:\Program Files\Reference Assemblies\Microsoft\Workflow Manager.0\
C:\Program Files (x86)\Microsoft WCF Data Services.6\bin\.NETFramework\
C:\Program Files (x86)\Microsoft WCF Data Services.0\bin\.NETFramework\
C:\Program Files\Reference Assemblies\Microsoft\VSTO40\v4.0.Framework\
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Visual Studio Tools for Office\PIA\Office15\
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Visual Studio Tools for Office\PIA\Office14\
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Visual Studio Tools for Office\PIA\Common\
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\SharePoint\PublicAssemblies\
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\ReferenceAssemblies\v4.0\
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\ReferenceAssemblies\v4.0\
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\
C:\Program Files (x86)\Reference Assemblies\Microsoft\VBPowerPacks\v10.0\
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\TEMPLATE\WorkflowActivities\
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\TEMPLATE\WorkflowActivities\
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\ISAPI\
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\ISAPI\
C:\Program Files (x86)\Microsoft SDKs\RIA Services\v1.0\Libraries\Server\
C:\Program Files (x86)\Open XML SDK\V2.5\lib
C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\.NETFramework\v4.0.3.0.0\Type Providers\
C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\.NETFramework\v4.0.3.0.0\
C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\.NETFramework\v4.0.3.1.0\
C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp.0\Runtime\v4.0\Type Providers\
C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp.0\Runtime\v4.0\
C:\Program Files (x86)\Microsoft SDKs\Expression\Blend\.NETFramework\v4.0\Prototyping\Libraries\
C:\Program Files (x86)\Microsoft SDKs\Expression\Blend\.NETFramework\v4.0\Libraries\
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v2.0\Assemblies\
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\Assemblies\
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 4\Assemblies\
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 3\Assemblies\
C:\Program Files\Reference Assemblies\Microsoft\Microsoft Identity Extensions.0\
C:\Program Files\Common Files\Microsoft Shared\VS7DEBUG\Program Files\Reference Assemblies\Microsoft\VSTA30\v11.0\.NET2.0\
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\SharePoint\PublicAssemblies\
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\ReferenceAssemblies\v2.0\
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\ReferenceAssemblies\v2.0\
C:\Program Files (x86)\Reference Assemblies\Microsoft\VBPowerPacks\v10.0\
C:\Program Files (x86)\Common Files\Microsoft Shared\MSEnv\PublicAssemblies\
C:\Program Files (x86)\Microsoft Chart Controls\Assemblies
C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\.NETFramework\v2.0.3.0.0\
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Blend\
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Blend\
Done executing task "ResolveAssemblyReference".
Done building target "ResolveAssemblyReferences" in project "TomaMix_Grades.vbproj".
Target "GenerateBindingRedirects" skipped, due to false condition; ('$(AutoGenerateBindingRedirects)' == 'true' and '$(GenerateBindingRedirectsOutputType)' == 'true') was evaluated as ('' == 'true' and 'true' == 'true').
Target "GenerateBindingRedirectsUpdateAppConfig" skipped, due to false condition; ('$(AutoGenerateBindingRedirects)' == 'true' and '$(GenerateBindingRedirectsOutputType)' == 'true' and Exists('$(_GenerateBindingRedirectsIntermediateAppConfig)')) was evaluated as ('' == 'true' and 'true' == 'true' and Exists('obj\x86\Debug\TomaMix_Grades.vbproj.TomaMix Grades.exe.config')).
Target "PrepareForBuild" skipped. Previously built successfully.
Target "ResolveKeySource" skipped, due to false condition; ($(SignManifests) == 'true' or $(SignAssembly) == 'true') was evaluated as (false == 'true' or == 'true').
Target "ResolveAssemblyReferences" skipped. Previously built successfully.
Target "ResolveComReferences" in file "C:\Program Files (x86)\MSBuild.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\Development\TomaMix\TomaMix\TomaMix_Grades\TomaMix_Grades\TomaMix_Grades.vbproj" (target "ResolveReferences" depends on it):
Task "MakeDir"
Done executing task "MakeDir".
Task "ResolveComReference"
Using cache file at "obj\x86\Debug\TomaMix_Grades.vbproj.ResolveComReference.cache".
C:\Program Files (x86)\MSBuild.0\bin\Microsoft.Common.CurrentVersion.targets(2234,5): warning MSB3284: Cannot get the file path for type library "e64169b3-3592-47d2-816e-602c5c13f328" version 1.1. Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))
C:\Program Files (x86)\MSBuild.0\bin\Microsoft.Common.CurrentVersion.targets(2234,5): warning MSB3284: Cannot get the file path for type library "7b92f833-027d-402b-bff9-a67697366f4e" version 1.0. Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))
C:\Program Files (x86)\MSBuild.0\bin\Microsoft.Common.CurrentVersion.targets(2234,5): warning MSB3284: Cannot get the file path for type library "6bf52a50-394a-11d3-b153-00c04f79faa6" version 1.0. Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))
C:\Program Files (x86)\MSBuild.0\bin\Microsoft.Common.CurrentVersion.targets(2234,5): warning MSB3284: Cannot get the file path for type library "7b92f833-027d-402b-bff9-a67697366f4e" version 1.0. Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))
C:\Program Files (x86)\MSBuild.0\bin\Microsoft.Common.CurrentVersion.targets(2234,5): warning MSB3284: Cannot get the file path for type library "29866aed-1e14-417d-ba0f-1a2be6f5a19e" version 1.0. Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))
C:\Program Files (x86)\MSBuild.0\bin\Microsoft.Common.CurrentVersion.targets(2234,5): warning MSB3284: Cannot get the file path for type library "6bf52a50-394a-11d3-b153-00c04f79faa6" version 1.0. Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))
COM Reference 'MSComctlLib' is the interop assembly for ActiveX control 'AxMSComctlLib' but was marked to be linked by the compiler with the /link flag. This COM reference will be treated as a reference and will not be linked.
Resolving COM reference for item "ADODB" with a wrapper "primary".
Determining dependencies of the COM reference "ADODB".
Resolving COM reference for item "stdole" with a wrapper "primary".
Determining dependencies of the COM reference "stdole".
Resolved COM reference for item "stdole": "C:\Windows\assembly\GAC\stdole.0.3300.0__b03f5f7f11d50a3a\stdole.dll".
Resolved COM reference for item "ADODB": "C:\Windows\assembly\GAC\ADODB.0.3300.0__b03f5f7f11d50a3a\ADODB.dll".
Resolving COM reference for item "Microsoft.Office.Core" with a wrapper "primary".
Determining dependencies of the COM reference "Microsoft.Office.Core".
Resolved COM reference for item "Microsoft.Office.Core": "C:\Windows\assembly\GAC_MSIL\Office.0.0.0__71e9bce111e9429c\Office.dll".
Resolving COM reference for item "Microsoft.Office.Interop.Access" with a wrapper "primary".
Determining dependencies of the COM reference "Microsoft.Office.Interop.Access".
Resolving COM reference for item "Microsoft.Office.Interop.Access.Dao" with a wrapper "primary".
Determining dependencies of the COM reference "Microsoft.Office.Interop.Access.Dao".
Resolved COM reference for item "Microsoft.Office.Interop.Access.Dao": "C:\Windows\assembly\GAC_MSIL\Microsoft.Office.Interop.Access.Dao.0.0.0__71e9bce111e9429c\Microsoft.Office.Interop.Access.Dao.dll".
Resolving COM reference for item "VBIDE" with a wrapper "primary".
Determining dependencies of the COM reference "VBIDE".
Resolved COM reference for item "VBIDE": "C:\Windows\assembly\GAC_MSIL\Microsoft.Vbe.Interop.0.0.0__71e9bce111e9429c\Microsoft.Vbe.Interop.dll".
Resolving COM reference dependency "2a75196c-d9eb-4129-b803-931327f72d5c" version 2.8.
Resolved COM reference dependency "2a75196c-d9eb-4129-b803-931327f72d5c" version 2.8: "C:\Windows\assembly\GAC\ADODB.0.3300.0__b03f5f7f11d50a3a\ADODB.dll"
Resolved COM reference for item "Microsoft.Office.Interop.Access": "C:\Windows\assembly\GAC_MSIL\Microsoft.Office.Interop.Access.0.0.0__71e9bce111e9429c\Microsoft.Office.Interop.Access.dll".
Resolving COM reference for item "Microsoft.Office.Interop.Word" with a wrapper "primary".
Determining dependencies of the COM reference "Microsoft.Office.Interop.Word".
Resolved COM reference for item "Microsoft.Office.Interop.Word": "C:\Windows\assembly\GAC_MSIL\Microsoft.Office.Interop.Word.0.0.0__71e9bce111e9429c\Microsoft.Office.Interop.Word.dll".
Resolving COM reference for item "MSComctlLib" with a wrapper "primary".
Determining dependencies of the COM reference "MSComctlLib".
C:\Program Files (x86)\MSBuild.0\bin\Microsoft.Common.CurrentVersion.targets(2234,5): warning MSB3283: Cannot find wrapper assembly for type library "MSComctlLib". Verify that (1) the COM component is registered correctly and (2) your target platform is the same as the bitness of the COM component. For example, if the COM component is 32-bit, your target platform must not be 64-bit.
Resolving COM reference for item "JRO" with a wrapper "tlbimp".
Determining dependencies of the COM reference "JRO".
Resolving COM reference dependency "2a75196c-d9eb-4129-b803-931327f72d5c" version 2.8.
Resolved COM reference dependency "2a75196c-d9eb-4129-b803-931327f72d5c" version 2.8: "C:\Windows\assembly\GAC\ADODB.0.3300.0__b03f5f7f11d50a3a\ADODB.dll"
Processing COM reference "JRO" from path "C:\Program Files (x86)\Common Files\System\ado\msjro.dll". Type 'ReplicaTypeEnum' imported.
Processing COM reference "JRO" from path "C:\Program Files (x86)\Common Files\System\ado\msjro.dll". Type 'VisibilityEnum' imported.
Processing COM reference "JRO" from path "C:\Program Files (x86)\Common Files\System\ado\msjro.dll". Type 'UpdatabilityEnum' imported.
Processing COM reference "JRO" from path "C:\Program Files (x86)\Common Files\System\ado\msjro.dll". Type 'SyncTypeEnum' imported.
Processing COM reference "JRO" from path "C:\Program Files (x86)\Common Files\System\ado\msjro.dll". Type 'SyncModeEnum' imported.
Processing COM reference "JRO" from path "C:\Program Files (x86)\Common Files\System\ado\msjro.dll". Type 'FilterTypeEnum' imported.
Resolved COM reference dependency "2a75196c-d9eb-4129-b803-931327f72d5c" version 2.8: "C:\Windows\assembly\GAC\ADODB.0.3300.0__b03f5f7f11d50a3a\ADODB.dll"
Processing COM reference "JRO" from path "C:\Program Files (x86)\Common Files\System\ado\msjro.dll". Type 'IReplica' imported.
Processing COM reference "JRO" from path "C:\Program Files (x86)\Common Files\System\ado\msjro.dll". Type 'Filters' imported.
Processing COM reference "JRO" from path "C:\Program Files (x86)\Common Files\System\ado\msjro.dll". Type 'Filter' imported.
Processing COM reference "JRO" from path "C:\Program Files (x86)\Common Files\System\ado\msjro.dll". Type 'IJetEngine' imported.
Processing COM reference "JRO" from path "C:\Program Files (x86)\Common Files\System\ado\msjro.dll". Type 'Replica' imported.
Processing COM reference "JRO" from path "C:\Program Files (x86)\Common Files\System\ado\msjro.dll". Type 'JetEngine' imported.
Resolved COM reference for item "JRO": "obj\x86\Debug\Interop.JRO.dll".
Resolving COM reference for item "Scripting" with a wrapper "tlbimp".
Determining dependencies of the COM reference "Scripting".
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'CompareMethod' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'IOMode' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'Tristate' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'FileAttribute' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type '__MIDL___MIDL_itf_scrrun_0000_0000_0001' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'IDictionary' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'Dictionary' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'IFileSystem' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'IDriveCollection' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'IDrive' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'DriveTypeConst' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type '__MIDL___MIDL_itf_scrrun_0001_0001_0001' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'IFolder' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'IFolderCollection' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'IFileCollection' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'IFile' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'ITextStream' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'SpecialFolderConst' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type '__MIDL___MIDL_itf_scrrun_0001_0001_0002' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'IFileSystem3' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'StandardStreamTypes' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type '__MIDL___MIDL_itf_scrrun_0001_0001_0003' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'FileSystemObject' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'Drive' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'Drives' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'Folder' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'Folders' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'File' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'Files' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'TextStream' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'IScriptEncoder' imported.
Processing COM reference "Scripting" from path "C:\Windows\SysWOW64\scrrun.dll". Type 'Encoder' imported.
Resolved COM reference for item "Scripting": "obj\x86\Debug\Interop.Scripting.dll".
Resolving COM reference for item "AxMSComctlLib" with a wrapper "aximp".
Determining dependencies of the COM reference "AxMSComctlLib".
C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools\AxImp.exe C:\Windows\SysWOW64\MSCOMCTL.OCX /out:obj\x86\Debug\AxInterop.MSComctlLib.dll
Generated Assembly: C:\Development\TomaMix\TomaMix\TomaMix_Grades\TomaMix_Grades\obj\x86\Debug\MSComctlLib.dll
Generated Assembly: C:\Development\TomaMix\TomaMix\TomaMix_Grades\TomaMix_Grades\obj\x86\Debug\AxInterop.MSComctlLib.dll
Resolved COM reference for item "AxMSComctlLib": "obj\x86\Debug\AxInterop.MSComctlLib.dll".
Done executing task "ResolveComReference" -- FAILED.
Done building target "ResolveComReferences" in project "TomaMix_Grades.vbproj" -- FAILED.
Target "_CheckForCompileOutputs" in file "C:\Program Files (x86)\MSBuild.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\Development\TomaMix\TomaMix\TomaMix_Grades\TomaMix_Grades\TomaMix_Grades.vbproj" (target "_CleanGetCurrentAndPriorFileWrites" depends on it):
Done building target "_CheckForCompileOutputs" in project "TomaMix_Grades.vbproj".
Target "_SGenCheckForOutputs" skipped, due to false condition; ('$(_SGenGenerateSerializationAssembliesConfig)' == 'On' or ('@(WebReferenceUrl)'!='' and '$(_SGenGenerateSerializationAssembliesConfig)' == 'Auto')) was evaluated as ('Off' == 'On' or (''!='' and 'Off' == 'Auto')).
Target "_CleanGetCurrentAndPriorFileWrites" in file "C:\Program Files (x86)\MSBuild.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\Development\TomaMix\TomaMix\TomaMix_Grades\TomaMix_Grades\TomaMix_Grades.vbproj" (target "_CleanRecordFileWrites" depends on it):
Task "ReadLinesFromFile"
Done executing task "ReadLinesFromFile".
Task "ConvertToAbsolutePath"
Done executing task "ConvertToAbsolutePath".
Task "FindUnderPath"
Comparison path is "C:\Development\TomaMix\TomaMix\TomaMix_Grades\TomaMix_Grades".
Done executing task "FindUnderPath".
Task "FindUnderPath"
Comparison path is "bin\x86\Debug\".
Done executing task "FindUnderPath".
Task "FindUnderPath"
Comparison path is "obj\x86\Debug\".
Done executing task "FindUnderPath".
Task "RemoveDuplicates"
Done executing task "RemoveDuplicates".
Done building target "_CleanGetCurrentAndPriorFileWrites" in project "TomaMix_Grades.vbproj".
Target "_CleanRecordFileWrites" in file "C:\Program Files (x86)\MSBuild.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\Development\TomaMix\TomaMix\TomaMix_Grades\TomaMix_Grades\TomaMix_Grades.vbproj" (target "CoreBuild" depends on it):
Task "RemoveDuplicates"
Done executing task "RemoveDuplicates".
Task "MakeDir"
Done executing task "MakeDir".
Task "WriteLinesToFile"
Done executing task "WriteLinesToFile".
Done building target "_CleanRecordFileWrites" in project "TomaMix_Grades.vbproj"
Build FAILED.
Time Elapsed 00:00:02.65
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
[https://drive.google.com/file/d/0B4s91eIhxfHGRUlJNmd2alBScmM/view?usp=sharing][the link 完整日志]
最后说构建失败
有趣的问题是当我尝试在 VS12 上重建它时,同样的问题,但是当我在其他机器上重建它时(将相同的项目文件夹复制到其他计算机)它工作了!!!
有什么建议吗?我不想重新安装 OS...
感谢你的帮助,罗伊
当构建在一台机器上运行,但在另一台机器上运行时使用完全相同的复制文件夹,并且构建失败是由于 .dll 在本例中的位置;最有可能的(几乎我已经解决的所有情况)问题在于这些程序集的位置。
可能的候选人:
- 您在不同位置安装了各种框架,并且可能使用了非相对路径。
- 安装的框架和代码之间存在位问题,这可能是您的情况,如此处的错误所示:
C:\Program Files (x86)\MSBuild.0\bin\Microsoft.Common.CurrentVersion.targets(2234,5): warning MSB3283: Cannot find wrapper assembly for type library "MSComctlLib". Verify that (1) the COM component is registered correctly and (2) your target platform is the same as the bitness of the COM component. For example, if the COM component is 32-bit, your target platform must not be 64-bit.
在我的例子中,问题出现在升级到 windows 10 之后。我的项目在 Visual Studio 2013 年使用框架 4.5。我不能保证这不是我做的或升级的某些行为,但我的项目有对 ADODB 和 MSDATASRC 的引用(均列在 -> 引用中)。我检查了我的项目是否确实有任何代码引用了这些组件中的任何内容,但找不到任何内容,所以我只是删除了这些引用,问题就消失了。
我的 VB.NET 项目也有 ADODB 引用。 windows 10 次升级后开始出现错误。 我简单地删除并再次添加引用,发现一行被三行替换如下:
<WrapperTool>primary</WrapperTool>
替换为
<WrapperTool>tlbimp</WrapperTool>
<Isolated>False</Isolated>
<EmbedInteropTypes>True</EmbedInteropTypes>
通过删除对“Microsoft HTML Object Library”的引用并在项目中再次添加它来解决我的问题。重新添加时项目文件的更改与 Muhammad Arshad Awan 指出的相同。