Lasse Edsvik
Lasse Edsvik

Reputation: 9298

Publish asp.net mvc missing images

I have a networkdrive z: where I publish my asp.net mvc project to, and when I do some images from my Content/Images directory doesnt get published. Why is that? Every time I have to copy the imagesfolder manually to make sure. I have set it so it deletes all on the target before it publishes.

Upvotes: 3

Views: 2984

Answers (2)

m0sa
m0sa

Reputation: 10950

  • In the solution explorer (ctrl+w,s) select an image that is not copied to the publish folder.
  • Check the properties panel (ctrl+w,p) and make sure the image has the "Build Action" property set to "Content".

From your description I assume that now it is set to "None".

Upvotes: 8

Matthew Abbott
Matthew Abbott

Reputation: 61617

Are the images part of the project, or do they just sit in the folder on disk? If they are not part of the project, they won't be published.

Upvotes: 0

Related Questions