# How to invoke MSBuild task from FinalBuilder?

**URL:** https://www.finalbuilder.com/forums/t/how-to-invoke-msbuild-task-from-finalbuilder/1660
**Category:** Discussion
**Created:** [December 4, 2010, 6:28am UTC](https://www.finalbuilder.com/forums/t/how-to-invoke-msbuild-task-from-finalbuilder/1660 "2010-12-04T06:28:20Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [December 4, 2010, 6:28am UTC](https://www.finalbuilder.com/forums/t/how-to-invoke-msbuild-task-from-finalbuilder/1660/1 "2010-12-04T06:28:20Z")

</div>

The only way I&nbsp;see now is to create xml file for MSBuild with needed taks invocations and then run MSBuild directly by calling"Execute Program"&nbsp;action. Is there any standard way of doing this?

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [December 5, 2010, 1:32am UTC](https://www.finalbuilder.com/forums/t/how-to-invoke-msbuild-task-from-finalbuilder/1660/2 "2010-12-05T01:32:46Z")

</div>

MSBuild Tasks are designed to be invoked by… MSBuild. They depend on the infrastructure of MSBuild, you can’t just instantiate the task and run it.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [December 5, 2010, 1:33am UTC](https://www.finalbuilder.com/forums/t/how-to-invoke-msbuild-task-from-finalbuilder/1660/3 "2010-12-05T01:33:28Z")

</div>

Oh and there is an MSBuild action in FinalBuilder for invoking MSBuild, you don’t need to use the Execute Program action.

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [December 6, 2010, 7:42am UTC](https://www.finalbuilder.com/forums/t/how-to-invoke-msbuild-task-from-finalbuilder/1660/4 "2010-12-06T07:42:58Z")

</div>

You can also invoke MSBuild (instead of devenv) on a [VS.NET](http://VS.NET) solution / project by clicking the “Use MSBuild” checkbox on that step.

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [December 6, 2010, 8:05am UTC](https://www.finalbuilder.com/forums/t/how-to-invoke-msbuild-task-from-finalbuilder/1660/5 "2010-12-06T08:05:46Z")

</div>

I got it. Thanks for your help!
