drewwyatt
drewwyatt

Reputation: 6027

Why do some files not auto publish with the rest of the project?

There are a handful of files in my project that do not auto publish with the rest of my project to IIS when there are changes. I have to manually right-click on those files and publish them individually.

I am pretty sure I have done something to cause this because it appears that all of the files that do this have a check-mark next to the file (see layout.cshtml in the image below). What have I done, and how can I fix it?

enter image description here

Upvotes: 0

Views: 23

Answers (1)

Antonio Bakula
Antonio Bakula

Reputation: 20693

Set file Build Action to Content, right Mouse click on file and select Properties in Solution Explorer. Like this:

enter image description here

Upvotes: 1

Related Questions