Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am new to the deployment world can any one please provide the code for publishing a .csproj in remote machine using batch file or VBScript.

Thanks,
Kiran
Posted
Comments
[no name] 18-Jul-12 7:48am    
"provide the code for publishing" no but you can do it yourself.
KiranKumar0407 18-Jul-12 8:22am    
Hi Aday,
Actually my requirement is to publish the x.csproj project into another machine using any script language or batch file..
Please let me know if you need more info.
Thanks,
Kiran
Richard MacCutchan 18-Jul-12 9:57am    
You do not want to publish a .csproj, you want to publish a project. There are plenty of resources around to help do that for you, including the one that is built into Visual Studio.
Christian Graus 18-Jul-12 16:12pm    
I have no idea what this means ? How do you 'publish' a csproj file ?

1 solution

Why not prepare an installer and use it? Here: Miscrosoft Support: How to prepare installers[^],

Alternatively, For hosting a web application: MSDN: Walkthrough: Publishing a Web Site[^]
It clearly states: If you want to deploy a finished Web site to a server, you can use the Publish Web Site utility that is included with the Microsoft Visual Web Developer Web development tool. The Publish Web Site utility precompiles the pages and code that are in the Web site and writes the compiler output to a folder that you specify. You can then copy the output to the target Web server and run the application from there.
Write a script to copy the files to server folder.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900