I have two build environments to target; Release and Staging. The Web.config looks like this:
<system.web>
<authentication mode="Windows">
</authentication>
<authorization>
<deny users="?" />
</authorization>
</system.web>
I want to transform it by building to staging config: Web.Staging.config
<system.web>
<authentication mode="Windows">
</authentication>
<authorization xdt:Transform="Replace">
<deny users="?" />
<allow roles="StagingRoles" />
<deny users="*" />
</authorization>
</system.web>
I build from command line like this:
msbuild buildscript.build /p:Configuration=Staging
After the build, I don't see the web.config file transformed in the build artifacts folder. Is there something wrong here?
Thanks