tfsbuildextensions / BuildManager

Community TFS Build Manager
54 stars 27 forks source link

Exception when exporting build definition VS2015 #28

Closed srikcgaa2 closed 7 years ago

srikcgaa2 commented 7 years ago

I was using this plugin without any issues when we had VS2013. Recently we upgraded to VS2015 and I installed the latest version 2.14.023 version where I am able to see all the build definitions but when I export, I get the following exception. We connect to TFS 2012 build server

System.Xaml.XamlObjectWriterException: The invocation of the constructor on type 'Microsoft.TeamFoundation.Build.Workflow.Activities.AgentSettings' that matches the specified binding constraints threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.TeamFoundation.Build.Common, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

at Microsoft.TeamFoundation.Build.Workflow.Activities.AgentSettings..ctor()

--- End of inner exception stack trace ---

at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CreateInstance(XamlType xamlType, Object[] args)

at System.Xaml.XamlObjectWriter.Logic_CreateAndAssignToParentStart(ObjectWriterContext ctx)

at System.Xaml.XamlObjectWriter.WriteStartMember(XamlMember property)

at System.Xaml.XamlWriter.WriteNode(XamlReader reader)

at System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter, Boolean closeWriter)

at System.Xaml.XamlServices.Load(XamlReader xamlReader)

at System.Xaml.XamlServices.Load(XmlReader xmlReader)

at Microsoft.TeamFoundation.Build.Workflow.WorkflowHelpers.DeserializeProcessParameters(String parameterValues)

at TfsBuildManager.Views.BuildManagerViewModel.ExportDefinition(BuildDefinitionViewModel b, String filePath)

at TfsBuildManager.Views.BuildManagerViewModel.OnExportBuildDefinition()

chijos commented 7 years ago

I can see the same issue when I try to clone a build to another branch. I am using VS 2015 with the 2.14.0.23 version. FWIW, this seems to work fine if you have VS 2013 installed alongside.

srikcgaa2 commented 7 years ago

Yes, I had uninstalled VS2013 after upgrading to VS2015 due to low diskspace issues. But if I installed VS2013 along with VS2015 it does export even from VS2015.

srikcgaa2 commented 7 years ago

Closed by mistake - Sorry about that - Reopened it

wreynoldson commented 7 years ago

+1, I get this as well, was working recently.

VS 2015 installed only. Will install VS 2013 as a workaround

yourbuddypal commented 7 years ago

Same issue for me. I don't really have the HDD space to spare for an additional VS2013 install. I had to use a different machine that had the 2012 extension installed to clone my build.

Adam-S-Daniel commented 7 years ago

A lighter-weight workaround is to install Team Explorer for Microsoft Visual Studio 2013. This corrected the error after I launched and then closed the newly-installed Visual Studio 2013 (Shell) and then relaunched Visual Studio 2015.

srikcgaa2 commented 7 years ago

The suggestion about Team Explorer for 2013 worked for me too. Thanks!

mikefourie-zz commented 7 years ago

2.14.0.24 resolves this. Apologies for the delay.