i want to have test pages in a folder called “tests” and be able to run the pages during debug but when i publish the application it excludes those files. Im using Asp. Net 3.5, Windows Server 2008, and c# Vs 2010
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could either exclude it from the project, which isn’t really ideal, or you could use a post-build event script that would remove the folder you don’t want published. Alternatively, you could try adding something like this to your project file:
Take a look here for more information on this:
http://blogs.msdn.com/b/webdevtools/archive/2010/04/22/web-deployment-excluding-files-and-folders-via-the-web-application-s-project-file.aspx