I have an asp.net project with an WebDeployment Project.
At the end of the msbuild file I put:
<Target Name="AfterBuild">
<Exec WorkingDirectory="$(OutputPath)"
Command="$(MSBuildBinPath)\aspnet_regiis.exe -pef connectionStrings
$(OutputPath) -prov HrCustomProvider" />
<RemoveDir Directories="$(OutputPath)/ConfigFiles" />
</Target>
This works fine if the webserver is the built in server.
However if I am using the localhost IIS server I get an error.
From the Output window:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspn et_regiis.exe -pef
connectionStrings .\Debug\ -prov HrCustomProvider
Encrypting configuration section...
The configuration for physical path
'D:\DotNet2005\WebAuthentication_Solution\Hr-Auth_deploy\Debug\.\Debug\'
cannot be opened.
So I looked in my WebDeployment Project Property Pages
Configuration Properties: Compilation
Output Folder
It was set to .\Debug\
I am a little scared about changing the output directory to . because I
certainly don't want the source files to get deleted.
What should I do to get this to work.