.Net项目在发布到Azure时未更新。

huangapple go评论59阅读模式
英文:

.Net Project not updating when publishing to Azure

问题

当我发布到Azure时,我的DevOps管道成功完成,但实际应用程序不会根据我所做的更改进行更新。

我已经尝试手动发布,但仍然遇到相同的问题。我已经尝试了我能想到的一切,以及我在网上看到的一切,但我无法弄清楚是什么原因导致了这个问题。

我已经在Web应用程序上禁用了缓存,禁用了浏览器缓存,并尝试了多台机器。我已经尝试重新启动Web应用程序,停止,运行管道,然后启动它,以及其他许多不同的操作。

这是一个运行C# 11的.NET 7应用程序。

是否有其他人也经历过这种情况?期待您的回复。

英文:

When I publish to Azure, my dev-ops pipeline completes successfully, however the actual application does not update as per the changes I have made.

I have tried publishing this manually and still experience the same issue. I have tried everything I can think of and everything I have seen online, however I cannot work out what is causing this.

I have disabled caching on the web-app, I have disabled browser cache and have tried from multiple machines. I have tried restarting the web-app, stopping, running the pipeline, then starting it amongst a number of different things.

This is a .Net 7 application running C# 11.

Has anyone else experienced this? I look forward to hearing from you.

答案1

得分: 0

我已经找到了这个问题的解决方法。

在移除了 Microsoft.AspNetCore.Razor.Design 包之后,现在它按预期方式运行。

希望这对其他人有所帮助。

英文:

I have managed to find the issue to this.

After removal of the Microsoft.AspNetCore.Razor.Design package this now functions as expected.

I hope this helps others.

huangapple
  • 本文由 发表于 2023年7月10日 18:13:02
  • 转载请务必保留本文链接:https://go.coder-hub.com/76652745.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定