A typical solution to this problem is to use an automated assembly process to create an official assembly from the original working copies and to exclude these folders from official assemblies. You will also want to include other source files, project files, and everything else that is part of your working copy of development, but not needed in the deployment.
You will also want to change the debug flag in your Web.config. And you will want to create and run unit tests. And you can run fxcop / stylecop. And there may be other things. Auto build is very useful. This seems like a lot of work if all you initially want to do is delete the .svn folders, but in the end you will find there much more that you want to do than just that, and automation is worth it.
TeamCity is an excellent commercial product with a free version for supporting automated assemblies. Cruise Control.NET also works fine.
http://www.jetbrains.com/teamcity/
http://confluence.public.thoughtworks.org/display/CCNET/Welcome+to+CruiseControl.NET
source share