Welcome to WebmasterWorld Guest from

Forum Moderators: ocean10000

Message Too Old, No Replies

Build Project without Docs folder

Is it advisable to build .NET web project and exclude Docs folder?

7:24 am on Oct 14, 2011 (gmt 0)

New User

10+ Year Member

joined:Dec 16, 2008
posts: 20
votes: 0


I have a folder called Docs in my ASP.Net 2.0 web project which contains about 30 PDF files, all approximately 5Mb.

All of my HTML is stored in a Database, so my links to these PDFs are not referenced within the project. (As far as I know - how can I tell?)

Considering that every build will compile the entire project:

1) Can I exclude my Docs folder from the build, and then upload that directory manually without any issues?
2) Should I just remove the PDF files and leave the Docs folder?
3) Should I leave it as is?
4) How can I ascertain if these PDF files are referenced?

Also can someone please explain what occurs on the build process in simple terms.

Thank you in advance.
2:52 am on Oct 30, 2011 (gmt 0)


WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month

joined:Jan 14, 2004
votes: 3

Yes, you can exclude the Docs folder and files from the project. You will just have to remember to include them manually, when you upload it to the server to test / production servers.

The Build/compile process looks for files marked to be compiled or to be converted to an embedded resource inside the dll.

PDF's unless you have purposely changed them to be embedded would be considered static content like static html and images. And the Build/compile process ignores them.

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members