开发者

File exists in my Visual Studio 2010 solution but not deployed to Azure

开发者 https://www.devze.com 2023-04-02 04:14 出处:网络
I have a sitemap.xml.gz file in my solution, and when I run the app locally, the file is available at http://localhost:123/sitemap.xml.gz.

I have a sitemap.xml.gz file in my solution, and when I run the app locally, the file is available at http://localhost:123/sitemap.xml.gz.

However, when I deploy to Azure, the same path (but with my real domain) gives a 404. It's as if the file isn't there.

VS automatically set the Build Action for the fil开发者_如何学Ce to none, but should it be a different value?


Try changing the Build Action to Content. This will usually ensure it is copied.

0

精彩评论

暂无评论...
验证码 换一张
取 消