1

I'm building an addon ASP.net set of pages ontop of an old classic ASP system.

The new pages are in the folder newversion/ this is the only folder I need rebuilding when I make changes, at the moment it attempts to build the entire site which results in a lot of errors.

Can you exclude all other folders from the build configuration?

Edit Please note, the other pages are still going to be edited (all the classic ASP ones) so exlcuding them from project etc really doesn't help

Edit 2 Here's a screen shot from VS enter image description here

Tunaki
  • 132,869
  • 46
  • 340
  • 423
Tom Gullen
  • 61,249
  • 84
  • 283
  • 456

1 Answers1

2
  1. Select the files you like to exclude in the solution explorer
  2. Press F4\Alt+Enter to open properties window.
  3. Change Build Action property to Nnoe.

enter image description here

HuBeZa
  • 4,715
  • 3
  • 36
  • 58
  • This is VS2008, the only properties showing are filename and fullpath – Tom Gullen Jan 25 '11 at 10:18
  • @Tom: The screen capture I've add taken from VS2008 – HuBeZa Jan 25 '11 at 10:23
  • Thanks for your help HuBeZa I've uploaded a screenshot from original question, I don't seem to have these options. The project was opened via the "file > open website", is this why? – Tom Gullen Jan 25 '11 at 10:29
  • You are correct. This solution doesn't work on websites. Try mark the file as hidden as suggested [here](http://stackoverflow.com/questions/219381/how-to-exclude-files-from-visual-studio-compile/4346613#4346613) – HuBeZa Jan 25 '11 at 11:23
  • Thanks, will this affect other people working on the project though if they need to edit those hidden folders? – Tom Gullen Jan 25 '11 at 13:40
  • You mean other people that use it through some kind of source control? I recommend trial and error – HuBeZa Jan 25 '11 at 13:50