I am using a "web site" in visual studio 2008, and i would like to add a post-build event which would append the build time to the web.config file. Is it possible?
A:
Doesn't seem like it. Is there any specific reason to use a web site instead of a web application?
Mladen Mihajlovic
2009-04-06 14:21:06
There's no reason for me not to use the application, a web site seemed like a good idea at a time, and i didn't know the difference between the two.
Pasha
2009-04-06 16:07:46
+1
A:
I'm afraid this isn't supported for web sites, you'll need to use a web application project. See this MSDN article for a comparison of the two project types.
Steve Haigh
2009-04-06 14:33:02
Thanks, i'll review the differences, and see if there's a way to switch from a website to a project.
Pasha
2009-04-06 16:08:31
+2
A:
One of the major benefits of going the WAP (Web Application Projects) route rather than WSP (Website Projects) is that you get the ability to have Post Build events.
Therefore, it is not possible out of the box anyway. Here is the detail.
Mitchel Sellers
2009-04-06 14:34:15