我试图使用Jenkins将.Net应用程序发布到Azure WebApps。在this guide之后,我遇到了以下错误:
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>
我做错了什么,如何解决?
答案 0 :(得分:0)
很抱歉,您现在已经迁移到AWS但是有一个用于部署到Azure Web App的新插件:https://aka.ms/azapp-service,这可能对您没有帮助。