我正在尝试使用 Jenkins 将 .Net 应用程序发布到 Azure WebApps。按照本指南,我遇到以下错误:
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]
我已经my.PublishSettings
从 Azure 下载,它看起来像
<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>
我做错了什么,我该如何解决?