Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET, VisualStudio 2010: Web.config not publishing?

For some mysterious reason, all of a sudden when I publish my website, Web.config does not get coppied over.

At first when I saw that the properties of Web.config was set to "Do not copy", that seemed like the reason... but when I change the option, it doesn't stick.

Is there some shortcut key or some global TFS setting that might effect this?

This has never happened before...

like image 917
dcolumbus Avatar asked Jan 21 '11 19:01

dcolumbus


1 Answers

Apparently, if you look at "Properties", there is an option called "Build Action" ... set this to "Content" if you would like this file to be coppied over on Publish. If not, select "None"

Reference: http://forums.asp.net/p/1528920/3698633.aspx

like image 142
dcolumbus Avatar answered Oct 12 '22 11:10

dcolumbus