# Problem with msbuild

**URL:** https://www.finalbuilder.com/forums/t/problem-with-msbuild/343
**Category:** Discussion
**Created:** [February 6, 2007, 7:50am UTC](https://www.finalbuilder.com/forums/t/problem-with-msbuild/343 "2007-02-06T07:50:20Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![allen](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/bbce88/32.png) [@allen](https://www.finalbuilder.com/forums/u/allen)
#### Post date: [February 6, 2007, 7:50am UTC](https://www.finalbuilder.com/forums/t/problem-with-msbuild/343/1 "2007-02-06T07:50:20Z")

</div>

I'm trying to do an msbuild for a project and I'm getting this error.  
  
Microsoft (R) Build Engine Version 2.0.50727.42  
[Microsoft .NET Framework, Version 2.0.50727.42]  
Copyright (C) Microsoft Corporation 2005. All rights reserved.

MSBUILD : error MSB1001: Unknown switch.  
Switch: /restricted

For switch syntax, type "MSBuild /help"  
Action Failed  
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\msbuild.exe returned : 1  
  
  
I can't figure out where it's getting the "Switch /Restricted" from.  
  
any ideas?  
  
I'm using FB 5 and the project file is under %FBPROJECT%\Controls\RBL

---

<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: [February 7, 2007, 12:53pm UTC](https://www.finalbuilder.com/forums/t/problem-with-msbuild/343/2 "2007-02-07T12:53:35Z")

</div>

Hi Allen  
  
It seems the /restricted option was removed sometime between the beta and the release of .net 2.0 and I guess we missed it. You must have the Restricted property checked for the action, turn that off. I’ll removed the option from the action.
