2
Vote

Pipeline Builder fails if have solution items

description

Add a file (E.g. an XML document) to the solution then invoke the pipeline builder.
It fails before the pipeline builder dialog is shown.
I suspect that when it tries to enumerate the projects in the solution is does not expect to find other types of file.
 
The error is:
System.NullReferenceException: Object reference not set to an instance of an object.
at VSPipelineBuilder.Connect.GetProjectsFromSolutionFolder(Project slnFolder) in D:\AppBuilding\PipelineBuilder\VSPipelineBuilder\Connect.cs:line 488
at VSPipelineBuilder.Connect.GetProjectsFromSolution(DTE2 root) in D:\AppBuilding\PipelineBuilder\VSPipelineBuilder\Connect.cs:line 476
at VSPipelineBuilder.PipelineConfiguration.Initialize(DTE2 root) in D:\AppBuilding\PipelineBuilder\VSPipelineBuilder\PipelineConfiguration.cs:line 68
at VSPipelineBuilder.Connect.Exec(String commandName, vsCommandExecOption executeOption, Object& varIn, Object& varOut, Boolean& handled) in D:\AppBuilding\PipelineBuilder\VSPipelineBuilder\Connect.cs:line 161

comments

apatitucci wrote Aug 18, 2010 at 4:19 PM

It happened to me when a couple of projects were unloaded from the solution. Reloading the projects solved the issue.

wrote Aug 19, 2010 at 8:18 AM

rjperes wrote Nov 23, 2010 at 9:18 AM

Can't get it to work on VS 2010.
I create a blank solution, with a single Contracts class library project, where I place my contract interface, inherited from IContract. I set the build output to ..\output\contracts and do a build. Then, I run Pipeline builder and select as the Contract Source Project the project I created and as its Project Location the path to where I am outputting the build. I don't know what to place in the Pipeline Options and the Output Options sections, I think these should be filled in automatically, or, at least, suggested.
When I try to run the PipelineBuilder, I get this exception:

System.InvalidOperationException: Please build the contract project before attempting to generate a pipeline.
at VSPipelineBuilder.Connect.buildPipeline(PipelineConfiguration config, Action`2 reportProgress)
at VSPipelineBuilder.Connect.Exec(String commandName, vsCommandExecOption executeOption, Object& varIn, Object& varOut, Boolean& handled)

Any suggestions? Thanks!

RP

wrote Feb 14, 2013 at 8:01 PM