开发者

Visual Web Developer Publish doesn't publish all required files

开发者 https://www.devze.com 2022-12-10 04:25 出处:网络
With an MVC C# app that builds err开发者_运维问答or-free, the Publish action (Release configuration) won\'t copy any of the controllers and several of files when \"Publish only files required to run..

With an MVC C# app that builds err开发者_运维问答or-free, the Publish action (Release configuration) won't copy any of the controllers and several of files when "Publish only files required to run..." is selected.

Yes, MVC 1.0 is installed on top of ASP.net 3.5 SP1, and the MVC templates are visible in VWD. I'm at a loss as this is so simple. Any ideas?


Look at the properties of each file and make certain it states to copy when newer or copy always.

It may be set to "Don't copy"


I haven't done an MVC application myself, but I do know that when you publish a plain jane asp.net application all of the files are compiled down to an assembly and placed in the bin folder of your application.

You might want to check the folder you're publishing to and see if you have that bin folder and see if you have a .dll inside of there. If not, this could possibly be your problem.

Good luck and hope this helps you.

0

精彩评论

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

关注公众号