Hi,
You're seeing this because of MSBuild order of evaluation.
You can replace IISWebSiteID with IISMetabasePath, and just put the entire IIS://<etc> URI into the settings spreadsheet for each environment. There's no need to have another property in addition to IISMetabasePath unless you really want to split them up.
That said, if directly using IISMetabasePath doesn't help then you'll need to set it at runtime -- and then you're probably better off having the separate property as you do now. You can add a target:
Tom
You're seeing this because of MSBuild order of evaluation.
You can replace IISWebSiteID with IISMetabasePath, and just put the entire IIS://<etc> URI into the settings spreadsheet for each environment. There's no need to have another property in addition to IISMetabasePath unless you really want to split them up.
That said, if directly using IISMetabasePath doesn't help then you'll need to set it at runtime -- and then you're probably better off having the separate property as you do now. You can add a target:
<SetIISMetabasePath BeforeTargets="DeployVirtualDirectory;UndeployVDirs">
<CreateProperty Value="IIS://localhost/w3svc/${IISWebSiteID}/Root">
<Output TaskParameter="Value" PropertyName="IISMetabasePath" />
</CreateProperty>
</SetIISMetabasePath>
Thanks,Tom