# Running MSBuild action without 'Project File'

**URL:** <https://www.finalbuilder.com/forums/t/running-msbuild-action-without-project-file/5541>\
**Category:** Discussion\
**Created:** [February 20, 2017, 2:00am UTC](https://www.finalbuilder.com/forums/t/running-msbuild-action-without-project-file/5541 "2017-02-20T02:00:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![remko.seelig](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/5f9b8f/32.png) [@remko.seelig](https://www.finalbuilder.com/forums/u/remko.seelig)\
**Post date:** [February 20, 2017, 2:00am UTC](https://www.finalbuilder.com/forums/t/running-msbuild-action-without-project-file/5541/1 "2017-02-20T02:00:13Z")

</div>

Hi,  
  
We discovered that the MS Build action’s ‘Project File’ field is mandatory. Today we ran into a build configuration that is considered to be more optimal when run just on a directory rather than an explicit project or solution file.  
  
For what we can see, MSBuild can also be executed in I directly, using the directory itself as scope for the build (similary to for instance Make)  
  
See also:&nbsp;[https://msdn.microsoft.com/en-us/library/ms164311.aspx](https://msdn.microsoft.com/en-us/library/ms164311.aspx)&nbsp;which states that the [ProjectFile] parameter is optional.

Could it be possible to make the ‘Project File’ field optional, or do you have a different rationale?  
  
Kind regards,  
Remko Seelig

---

<div class="post-metadata">

**Author:** ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)\
**Post date:** [February 20, 2017, 11:25am UTC](https://www.finalbuilder.com/forums/t/running-msbuild-action-without-project-file/5541/2 "2017-02-20T11:25:44Z")

</div>

Hi Remko,  
  
Yes, we’ll get this updated for the next version. We will probably change the field to “Project File or Folder” as the command will need a working directory and this is currently derived from the Project File path.

---

<div class="post-metadata">

**Author:** ![remko.seelig](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/5f9b8f/32.png) [@remko.seelig](https://www.finalbuilder.com/forums/u/remko.seelig)\
**Post date:** [February 21, 2017, 10:45am UTC](https://www.finalbuilder.com/forums/t/running-msbuild-action-without-project-file/5541/3 "2017-02-21T10:45:37Z")

</div>

Sounds great, looking forward to that.   
  
 Thanks!   
  
 Kind regards,   
 Remko Seelig
