Click here to Skip to main content
15,888,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Everybody,
I am trying to publish a site from my local machine to other machine. I am able to publish but the resource files are missing after publishing after a little bit of r & d i got to know with help of adding applies to="all" attribute for aspnet_compiler.exe we will be able to get the resource files also. But with help of batch script I am not able to add that attribute. Can anybody help me how to add that attribute to aspnet_compiler.exe. Here is my sample batch script
 @ECHO OFF
 set PROJECT_ROOT=%CD%
 set WEB_ROOT=D:\New folder
 echo Publishing site %PROJECT_ROOT% to %WEB_ROOT%
 pause
::aspnet_compiler 
 %windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_compiler.exe -nologo -v / -p "%PROJECT_ROOT%" -u -d -f 

"%WEB_ROOT%" || goto Error 
pause
 goto Success
 :Error
 echo Site was not published 
pause
 goto End
 :Success
echo Site published successfully 
:End

How can i publish the resource files to antoher machine or to server.

Thanks & Regards,
Janardhan

[edit]code block added[/edit]
Posted
Updated 19-Nov-12 11:19am
v2

You can just copy the files across. No need to do anything more fancy than use an FTP program.
 
Share this answer
 
So you are saying me to manually copy the files into other machine or server right? I think this is not the correct way then why should we have that appliesto="all". I want every thing to be automated so how can I achieve this via that batch script.

regards,
Janardhan
 
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