R
rcook349
I'm trying to automate our builds and publishes of our Windows application
(deployed to a website via ClickOnce).
I'm getting close, I think, on the commands I need to execute. However, how
do I put these commands in some sort of executable file?
I thought at first a VBScript file (Windows script), but from what I'm
reading that is old techology.
A script in PowerShell? Not too familiar with this?
A Windows Console Application?
Here are the commands I wish to execute nightly:
***************
msbuild.exe helloworld.vbproj /targetublish
/propertyublishurl=http://localhost/helloworlddev
xcopy.exe d:\projects\helloworld\helloworld\bin\debug\app.publish
c:\inetpub\wwwroot\helloworlddev /s
msbuild.exe helloworld.vbproj /targetublish
/propertyublishurl=http://localhost/helloworldtest
xcopy.exe d:\projects\helloworld\helloworld\bin\debug\app.publish
c:\inetpub\wwwroot\helloworldtest /s
msbuild.exe helloworld.vbproj /targetublish
/propertyublishurl=http://localhost/helloworlduser
xcopy.exe d:\projects\helloworld\helloworld\bin\debug\app.publish
c:\inetpub\wwwroot\helloworlduser /s
***************
If it matters, being in the Visual Studio 2008 Command Prompt is required (I
don't think it can be done from a regular command prompt).
The last time I dealt with anything like this is was creating autoexec.bat
files in DOS 20 years ago!
Thanks.
(deployed to a website via ClickOnce).
I'm getting close, I think, on the commands I need to execute. However, how
do I put these commands in some sort of executable file?
I thought at first a VBScript file (Windows script), but from what I'm
reading that is old techology.
A script in PowerShell? Not too familiar with this?
A Windows Console Application?
Here are the commands I wish to execute nightly:
***************
msbuild.exe helloworld.vbproj /targetublish
/propertyublishurl=http://localhost/helloworlddev
xcopy.exe d:\projects\helloworld\helloworld\bin\debug\app.publish
c:\inetpub\wwwroot\helloworlddev /s
msbuild.exe helloworld.vbproj /targetublish
/propertyublishurl=http://localhost/helloworldtest
xcopy.exe d:\projects\helloworld\helloworld\bin\debug\app.publish
c:\inetpub\wwwroot\helloworldtest /s
msbuild.exe helloworld.vbproj /targetublish
/propertyublishurl=http://localhost/helloworlduser
xcopy.exe d:\projects\helloworld\helloworld\bin\debug\app.publish
c:\inetpub\wwwroot\helloworlduser /s
***************
If it matters, being in the Visual Studio 2008 Command Prompt is required (I
don't think it can be done from a regular command prompt).
The last time I dealt with anything like this is was creating autoexec.bat
files in DOS 20 years ago!
Thanks.