This project is read-only.
1
Vote

InvalidOperationException

description

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

comments

espenrl wrote May 10, 2012 at 5:01 PM

This will happen if the project name and assembly name differ.

Problem is probably located in ProjectUtil.GetOutputAssembly(this Project p) in VSPipelineBuilder.

p_ronto wrote May 11, 2012 at 2:19 PM

espenrl is right, the problem is here:

outputFileName = properties.Item("OutputFileName").Value.ToString();

You can replace it with:

outputFileName = p.Properties.Item("AssemblyName").Value.ToString() + ".dll";

Or you can rename the assembly name to be the same with the project name.

wrote Feb 14, 2013 at 12:28 AM