开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜