[英]Publishing asp.net MVC csproj to IIS server VSTS
这是我当前为名为 ABC.sln 的项目设置的 MVC 项目
我正在尝试通过 VSTS Visual Studio 构建(版本 2019)将 A.csproj 发布到 IIS
这是我的 msbuild 参数:
/p:SolutionDir="$(Build.SourcesDirectory)" /p:DeployOnBuild=True /p:Configuration=$(BuildConfiguration) /p:MSDeployPublishMethod=WMSVC /p:MSDeployServiceUrl=serverpath.com /p:DeployIISAppPath=mysite.com /p:OutputPath=$(Build.BinariesDirectory) /p:AllowUntrustedCertificate=true /p:UserName= /p:AuthType=NTLM /p:DeleteExistingFiles=True /p:SkipExtraFilesOnServer=False
解决方案:
$(Build.SourcesDirectory)/A/A.csproj
平台: AnyCPU
构建成功运行,我得到了:
Successfully executed Web deployment task.
Package "A.zip" is successfully created as single file at the following location:
file:///C:/agent/_work/54/b/_PublishedWebsites/A_Package
To get the instructions on how to deploy the web package please visit the following link:
https://go.microsoft.com/fwlink/?LinkId=124618
GenerateSampleDeployScript:
Sample script for deploying this package is generated at the following location:
C:\agent\_work\54\b\_PublishedWebsites\A.deploy.cmd
For this sample script, you can change the deploy parameters by changing the following file:
C:\agent\_work\54\b\_PublishedWebsites\A.SetParameters.xml
PipelineDeployPhase:
Publish Pipeline Deploy Phase
Done Building Project "C:\agent\_work\54\s\A.csproj" (default targets).
但是,我看不到它是在哪里发布的。 我没有看到在我的 IIS 服务器上的任何文件夹中针对此应用程序池发布的任何文件。
为什么说是包裹? A.csproj 中的文件不应该直接发布到提到的 p:DeployIISAppPath 吗?
为什么说是包裹? A.csproj 中的文件不应该直接发布到提到的 p:DeployIISAppPath 吗?
您可以遵循的解决方法之一,
.csproj
文件是否存在,请检查 scm 站点在D:/home/site/wwwroot
下是否可用。 并确保部署的文件结构与 Azure 和 IIS 上的相同。 请找到参考图像以检查 scm 站点。有关在 Windows 上将 ASP.Net MVC 应用程序部署到 IIS 的完整设置,请参阅@ Asma Khalid的此博客。
有关更多信息,请参阅以下链接以了解类似问题:-
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.