C
Chuck P
I was wondering what practices people have come up with for
deployment. I want to precompile the application and encrypt portions
of the web.config.
In 1.0 I just did a batch file that would
copy %source%\*.aspx %web%\*.*
copy %source%\bin\*.dll %web%\bin\*.*
rem copy %source%\web.config %web%\*.*
Would rem out web.config because of changes in web.config. Such as
pointing to the production servers versus the development ones and
encrypting of the connections strings using the DPAPI and the machine
key.
In 2.0 was thinking of doing the same with a batch file
aspnet_compiler -v /<websitename> -p <source> <destination>
aspnet_regiis.exe -pef "connectionStrings" %website% –prov
"DataProtectionConfigurationProvider"
An issue I was having is where to automatically find the latest and
greatest version of the compiler. I know they are stored at:
%WinDir%\Microsoft.NET\Framework\<versionNumber>
How can I automatically get the location of the most recent one to run
in my .bat file.
Or is there an easier more reliable way to precompile the app and
encrypt the web.config.
thanks,
deployment. I want to precompile the application and encrypt portions
of the web.config.
In 1.0 I just did a batch file that would
copy %source%\*.aspx %web%\*.*
copy %source%\bin\*.dll %web%\bin\*.*
rem copy %source%\web.config %web%\*.*
Would rem out web.config because of changes in web.config. Such as
pointing to the production servers versus the development ones and
encrypting of the connections strings using the DPAPI and the machine
key.
In 2.0 was thinking of doing the same with a batch file
aspnet_compiler -v /<websitename> -p <source> <destination>
aspnet_regiis.exe -pef "connectionStrings" %website% –prov
"DataProtectionConfigurationProvider"
An issue I was having is where to automatically find the latest and
greatest version of the compiler. I know they are stored at:
%WinDir%\Microsoft.NET\Framework\<versionNumber>
How can I automatically get the location of the most recent one to run
in my .bat file.
Or is there an easier more reliable way to precompile the app and
encrypt the web.config.
thanks,