Error 1 The Resolvecomreference Task Failed Unexpectedly
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Build Task Failed Unexpectedly up vote 1 down vote favorite I have error in my project that is The "ResolveComReference" task failed unexpectedly. System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Build.Tasks.v12.0' or one of its dependencies. The system cannot find the file specified. File name: 'Microsoft.Build.Tasks.v12.0' Can anyone help me regards this. I got stucked I am using VS2012 and microsoft office 2007 asp.net vb.net windows-applications msbuild-task share|improve this question edited Dec 12 '14 at 18:17 Black Frog 9,29611649 asked Dec 12 '14 at 17:14 Caffeine addicted 15916 What do you mean microsoft 2007? Do you mean Microsoft Office 2007? –cybermonkey Dec 12 '14 at 17:32 @cybermonkey yes i update my question, can you help me to install package or assembly refrence for this 'Microsoft.Build.Tasks.v12.0' –Caffeine addicted Dec 12 '14 at 17:38 I think I know the answer to this, but first I need to ask whether Visual Studio 2012 is the only version if VS you have installed? –cybermonkey Dec 12 '14 at 17:39 I have VS2010 also –Caffeine addicted Dec 12 '14 at 17:40 1 Great man Great! –Caffeine addicted Dec 12 '14 at 17:42 | show 3 more comments 1 Answer 1 active oldest votes up vote 1 down vote accepted This problem usually occurs as
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask http://stackoverflow.com/questions/27448710/build-task-failed-unexpectedly Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up How to fix TFS build issue “ResolveComReference” task failed unexpectedly process can't access file System.Windows.Interactivity.resources.dll' http://stackoverflow.com/questions/34928024/how-to-fix-tfs-build-issue-resolvecomreference-task-failed-unexpectedly-proces up vote 0 down vote favorite I have a WPF solution and I'm using Visual Studio Team Services with TFVC for source control. I've created an automated build, however, the build will fail (sporadically) with the following error: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets (2015, 0) The "ResolveComReference" task failed unexpectedly. System.IO.IOException: The process cannot access the file 'C:\a\bin\es\System.Windows.Interactivity.resources.dll' because it is being used by another process. Server stack trace: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost) at Microsoft.Build.Tasks.Copy.CopyFileWithLogging(FileState sourceFileState, FileState destinationFileState) at Microsoft.Build.Tasks.Copy.DoCopyWithRetries(FileState sourceFileState, FileState destinationFileState, CopyFileWithState copyFile) at Microsoft.Build.Tasks.NativeMethods.QueryPathOfRegTypeLib(Guid& clsid, Int16 majorVersion, Int16 minorVersion, Int32 lcid) at Microsoft.Build.Tasks.ComReference.GetPathOfTypeLib(TaskLoggingHelper log, Boolean silent, TYPELIBATTR& typeLibAttr, String& typeLibPath) at Microsoft.Build.Tasks.ResolveComReference.ConvertAttrReferencesToComReferenceInfo(List`1 projectRefs, ITaskItem[] typeLibAttrs) at Microsoft.Build.Tasks.ResolveComReference.Execute() at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs) at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg) Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgDa
of the time Visual Studio Team Foundation Server > Team Foundation Server - Build and release management Question 1 Sign in to vote This is a continuation of a thread started and mostly answered in
+ Ask a Question Need help? Post your question and get tips & solutions from a community of 418,502 IT Pros & Developers. It's quick & easy. Reference COM component fails in Visual Studio (ResolveComReference exception) P: n/a ffhansix Hi, I am trying to reference a COM component (.dll) from Visual Studio 2005 in my windows application in C# by adding a reference to a third party.dll file (tried .type library also), and i get this error from the compiler when trying to compile the solution. Does anyone know why this occurs, and how it can be resloved, i would be very grateful indeed. Here comes the exception thrown: ------------------------------------------ Error 2 The "ResolveComReference" task failed unexpectedly. System.SystemException: The type library importer encountered an error during type verification. Try importing without class members. ---> System.TypeLoadException: Method 'IXorDiscountMatrix_GetName' on type 'XOR5.CXorDiscountMatrixClass' from assembly 'Interop.XOR5, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' is overriding a method that has been overridden. at System.Reflection.Module.InternalLoadInMemoryTypeB yName(String className) at System.Runtime.InteropServices.TypeLibConverter.Ty peResolveHandler.ResolveEvent(Object sender, ResolveEventArgs args) at System.AppDomain.OnTypeResolveEvent(String typeName) --- End of inner exception stack trace --- Server stack trace: at System.Runtime.InteropServices.TypeLibConverter.nC onvertTypeLibToMetadata(Object typeLib, AssemblyBuilder asmBldr, ModuleBuilder modBldr, String nameSpace, TypeLibImporterFlags flags, ITypeLibImporterNotifySink notifySink, ArrayList& eventItfInfoList) at System.Runtime.InteropServices.TypeLibConverter.Co nvertTypeLibToAssembly(Object typeLib, String asmFileName, TypeLibImporterFlags flags, ITypeLibImporterNotifySink notifySink, Byte[] publicKey, StrongNameKeyPair keyPair, String asmNamespace, Version asmVersion) at Microsoft.Build.Tasks.TlbReference.GenerateWrapper (ComReferenceWrapperInfo& wrapperInfo) at Microsoft.Build.Tasks.ResolveComReference.ResolveC omReferenceTlb(ComReferenceInfo referenceInfo, String outputDirectory, String refName, Boolean topLevelRef, ComReferenceWrapperInfo& wrapperInfo) at Microsoft.Build.Tasks.ResolveComReference.ResolveC omClassicReference(ComReferenceInfo referenceInfo, String outputDirectory, String wrapperType, String refName, Boolean topLevelRef, ComReferenceWrapperInfo& wrapperInfo) at Microsoft.Build.Tasks.ResolveComReference.ResolveR eference(ComReferenceInfo referenceIn