powershell from msbuild prompt


i trying run msbuild powershell prompt. working fine until added property connection string.

this command run regular command prompt:

msbuild .\some.dbproj /t:deploy /p:targetdatabase=timmayfoo /p:targetconnectionstring="datasource=testenson;integrated security=true;pooling=false"

if run using powershell following error msbuild:

msbuild : error msb1006: property not valid.
switch: integrated security=true

i assumed issue ; escaped them ` so

msbuild .\some.dbproj /t:deploy /p:targetdatabase=timmayfoo /p:targetconnectionstring="datasource=testenson`;integrated security=true`;pooling=false"

same error. can tell me missing must need escape something.

pscx (http://www.codeplex.com/pscx) includes utility understand how commands interpreted @ command line:

ps c:\program files (x86)\powershell community extensions> echoargs.exe msbuild ...
arg 0 <msbuild>
arg 1 <.\some.dbproj>
arg 2 </t:deploy>
arg 3 </p:targetdatabase=timmayfoo>
arg 4 </p:targetconnectionstring=datasource=testenson;integrated security=true;pooling=false>

seems dropping quotes.

can't seem figure out how keep them myself.  now, careful because powershell tokenizer can't handle command-line utilities out there , non-standards arguments , values.


Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

2008 Windows Deployment Server Properties Error

Can no longer user MS Update - Files required to use Microsoft Update are no longer registered

How do a find data in one file, search for it in another file and if not found, write a custom message to another file