我試圖在部署期間使用OctopusDeploy替換#{port}變量。我能做到這一點,如果我直接在我的App.Config中添加它如下:OctopusDeploy中的變量替換
<services>
<service name="SampleService" behaviorConfiguration="ServiceBehaviour">
<host>
<baseAddresses>
<add baseAddress="http://localhost:#{port}/SampleService/" />
</baseAddresses>
</host>
..
</service>
有沒有一種方法,我可以添加一個默認端口這裏(25555說,這樣開發人員可以使用它總是沒有替換#{端口}),但仍然指定OctopusDeploy這個特定的端口已被修改? (我正在使用多租戶部署)
謝謝,我用app.config轉換自己和OctopusDeploy的替代變量.. – Narayana