Reputation: 6300
This is crazy, but I can't seem to get all my views/content/scripts published when I publish the site. This seems to happen, I believe, when the view or content is not directly referenced by my project, but used by another assembly in my project. So I might have:
Right now I have a script that copies everything in the Views folder and dumps it to where I want it deployed, but VS should do this for me. What am I doing wrong?
Upvotes: 18
Views: 4657
Reputation: 7584
So your views files are in another project or folder outside your current project? Normally the files have to exist in the web site project, in it's views folder, not externally, and the build action should be set to Content
and not to copy to the output folder. But there are some workarounds:
Upvotes: 12
Reputation: 30152
When you click on one if these files what is the build action for it on the properties? Content....or? Set to content.
Upvotes: 17