Reputation: 4700
i am trieng to create a batch task that will publish my site in release mode but with no luck...
my script for doing so is this:
aspnet_compiler -errorstack -nologo -fixednames -v / -p "C:\projects\mysite\COMPONENTS\sitefolder" -f -u "C:\projects\publish-mysite"
my site has about 10 other projects in the solution. so i expect them to all be published in release mode. (the site refrence those projects)
please help. thanks
Upvotes: 1
Views: 1133
Reputation: 8543
Here are the relevant lines from one of my build.bat files
rem set debug to false
sed -i 's/debug="true"/debug="false"/g' ../TZ/Web.config
"%VSDIR%\Common7\IDE\devenv.exe" ..\TZ.sln /build Release
"%WINDIR%\Microsoft.Net\Framework\v2.0.50727\aspnet_compiler" -nologo -v TZ -p ..\TZ ..\compiled
Upvotes: 1