3
我正試圖將發佈.Net應用程序發佈到使用Jenkins的Azure WebApps。繼this guide,我卡住,出現以下錯誤:Azure WebApps與Jenkins部署
P:\Scripts\Azure\PublishProfiles\my.PublishSettings(1,1): error MSB4068: The element <publishData> is unrecognized, or not supported in this context. [c:\jenkins-slave\workspace\msbuildtest\my\my.csproj]
我已經下載從Azure的my.PublishSettings
,它看起來像
<publishData>
<publishProfile
profileName="my - Web Deploy"
publishMethod="MSDeploy"
publishUrl="my.scm.azurewebsites.net:443"
msdeploySite="my"
userName="$my"
userPWD="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
destinationAppUrl="http://my.azurewebsites.net"
SQLServerDBConnectionString=""
mySQLDBConnectionString=""
hostingProviderForumLink=""
controlPanelLink="http://windows.azure.com"
webSystem="WebSites">
<databases />
</publishProfile>
<publishProfile
profileName="my - FTP"
publishMethod="FTP"
publishUrl="ftp://waws-prod-am2-045.ftp.azurewebsites.windows.net/site/wwwroot"
ftpPassiveMode="True"
userName="my\$my"
userPWD="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
destinationAppUrl="http://my.azurewebsites.net"
SQLServerDBConnectionString=""
mySQLDBConnectionString=""
hostingProviderForumLink=""
controlPanelLink="http://windows.azure.com"
webSystem="WebSites">
<databases />
</publishProfile>
</publishData>
什麼我做錯了,我該如何解決?
請問您可以提供msbuild命令參數 –
@Karthikeyan(Un)幸運的是,我們已經從Azure切換到AWS,因爲這個(以及其他我們沒有得到任何答案的問題)。 – Johan