Visual Studio 2010 Web Publish missing a file

前端 未结 3 2025
长发绾君心
长发绾君心 2020-12-29 03:30

I\'m finding that when publishing a website from Visual Studio its not uploading one of my files. Its a Razor file with a \'.cshtml\' extension (its doing the others!) and i

相关标签:
3条回答
  • 2020-12-29 03:42

    In my case I had a couple of config files that weren't being deployed even though they had "Build Action" set to Content. I fixed the problem by excluding them from the project and include them again

    0 讨论(0)
  • 2020-12-29 03:44

    I had the same issue. I tried to Exclude and re-Include the files. When that didn't work I checked my .proj file and the files were in fact missing. I had to add the files into the .proj file manually. That worked for me

    0 讨论(0)
  • 2020-12-29 04:03

    In Visual Studio, right-click on the file and go to Properties.

    Under the file's properties, make sure that Build Action is set to Content. Otherwise it won't be published via web deploy.

    0 讨论(0)
提交回复
热议问题