# Build solution using devenv.exe

**URL:** https://www.finalbuilder.com/forums/t/build-solution-using-devenv-exe/121
**Category:** Discussion
**Created:** [June 29, 2006, 10:26am UTC](https://www.finalbuilder.com/forums/t/build-solution-using-devenv-exe/121 "2006-06-29T10:26:26Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![cpdaniel](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/e47774/32.png) [@cpdaniel](https://www.finalbuilder.com/forums/u/cpdaniel)
#### Post date: [June 29, 2006, 10:26am UTC](https://www.finalbuilder.com/forums/t/build-solution-using-devenv-exe/121/1 "2006-06-29T10:26:26Z")

</div>

As a part of my build, I need to build a couple of Visual Studio (2005) deployment projects. Unfortunately, MSBuild can’t build deployment projects, so I need to launch devenv from within FB to build this solution.  
  
I’m having trouble getting it to work though - I’ve configured a “Execute Program” action with the full path to devenv.exe, set the working directory to the location of the .sln file, and supplied appropriate command-line arguments to devenv. When I build though, I get a single cryptic error “Program returned error code : 1”. Indeed, it looks like devenv didn’t build the solution, since there’s no installer in the output directory.  
  
Any idea what’s wrong? I’ve tried launching FB4 from a “visual studio 2005 command prompt” so that the environment is fully set up, but that didn’t make any difference (nor should it - VS launched by Explorer doesn’t have that environment, after all).  
  
-cd

---

<div class="post-metadata">

### Author: ![cpdaniel](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/e47774/32.png) [@cpdaniel](https://www.finalbuilder.com/forums/u/cpdaniel)
#### Post date: [June 29, 2006, 10:56am UTC](https://www.finalbuilder.com/forums/t/build-solution-using-devenv-exe/121/2 "2006-06-29T10:56:40Z")

</div>

Nevermind :) I figured it out - there were files missing from the directory where the deployment project expected them to be. When I tested from the command line earlier, I had manually created the missing files, so naturally it worked.  
  
Now to get something into the build to create those missing files...

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [June 30, 2006, 2:04am UTC](https://www.finalbuilder.com/forums/t/build-solution-using-devenv-exe/121/3 "2006-06-30T02:04:57Z")

</div>

Glad to hear you sorted it out.   
  
You should also be able to use the “[VS.NET](http://VS.NET) Build Solution” action, unchecking the “Use MSBuild” property.

---

<div class="post-metadata">

### Author: ![cpdaniel](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/e47774/32.png) [@cpdaniel](https://www.finalbuilder.com/forums/u/cpdaniel)
#### Post date: [June 30, 2006, 2:09am UTC](https://www.finalbuilder.com/forums/t/build-solution-using-devenv-exe/121/4 "2006-06-30T02:09:50Z")

</div>

What package is that action in, and where does it appear in the Action Types list? I looked high and low through the actions for something like that and never found it (I may have the package unloaded, but looking through the package manager, I didn’t see anything that looked inappropriate).

---

<div class="post-metadata">

### Author: ![tate](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@tate](https://www.finalbuilder.com/forums/u/tate)
#### Post date: [June 30, 2006, 2:26am UTC](https://www.finalbuilder.com/forums/t/build-solution-using-devenv-exe/121/5 "2006-06-30T02:26:01Z")

</div>

Hi Carl,  
  
Sorry, the action is called “Build [VS.Net](http://VS.Net) Solution”. It’s in the Compilers category.  
  
The easiest way to find it is to start typing the name of the action in the filter (you can focus the filter with Ctrl-i)  
  
If you still can’t find it, make sure you have the package “FinalBuilder 4.x VisualStudio .Net Support” loaded.

---

<div class="post-metadata">

### Author: ![cpdaniel](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/e47774/32.png) [@cpdaniel](https://www.finalbuilder.com/forums/u/cpdaniel)
#### Post date: [June 30, 2006, 4:00am UTC](https://www.finalbuilder.com/forums/t/build-solution-using-devenv-exe/121/6 "2006-06-30T04:00:50Z")

</div>

Thanks - I see it now. I guess there’s just enough things in the list that I was able to read past it the several times I looked for it. I’ll change to using that action tomorrow - it’s a better solution.

---

<div class="post-metadata">

### Author: ![cpdaniel](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/e47774/32.png) [@cpdaniel](https://www.finalbuilder.com/forums/u/cpdaniel)
#### Post date: [July 1, 2006, 5:00am UTC](https://www.finalbuilder.com/forums/t/build-solution-using-devenv-exe/121/7 "2006-07-01T05:00:45Z")

</div>

I switched to the "Build Vs.Net solution" action - that works great, thanks!
