从视觉工作室2022到Azure发布ASP.NET核心应用程序不在不查看Web.config的情况下工作
当我尝试将我的ASP.NET Core App从VS 2022(最新版本)发布到Azure时,如果未查看项目web.config
文件,则发布失败。
手动查看此文件后,发布作品。
如果没有手动步骤,我该如何使出版工作? (我不能切换到github,也无法使用连续发布)
When I try to publish my ASP.NET Core app from VS 2022 (latest version) to Azure, the publishing fails in case the projects web.config
file is not checked out.
After manually checking out this file, publishing works.
How can I make publishing work without the manual step? (I can not switch to github and I can not use continuous publishing)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我看到您在其他地方提到了此问题,并提供了下面的详细信息。
在发布应用程序时 。 ,转换任务是在Web.config文件上,我认为问题与权限
有关
。发布。
2。 /em>
3。请记住,不要在发布之前删除所有现有文件
相关链接:
“ transformwebconfig”任务意外失败
I see that you have mentioned this issue elsewhere and provided the details below.
While publishing the app, a transformation task was running on web.config file. According to the error message, I think the problem is related to permissions.
Suggestion
1. Restart Visual Studio and running it as Administrator, then publish it.
2. I see that your project is on the C drive, check if you have enough permissions to access it, and check if the current web.config file is set to read-only.
3. Also I see a practice, you can try it. You can prevent the generation of web.config files at compile and publish time. Then you can copy and paste the web.config file to wwwroot path manually. Remember not to enable
Delete all existing files prior to publish
.Related Link:
The "TransformWebConfig" task failed unexpectedly