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.
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
Post a Comment