开发者

Utility to clean up a .net directory tree prior to archiving?

I'm sure this开发者_如何转开发 must have been asked before, but I can't seem to come up with the correct search to find what i'm looking for.

I'm a .net Developer, and even though we use a version control system, i often find myself wanting to zip a .net solution directory tree, and want a utility to delete all the temp files that can be rebuilt from the source code, such as objs, pdb's and what not.

Surely someone must have already written such a simple utility :)

thanks in advance

jonathan


Another option, if you are using Subversion as your source control system, is to use "export" to export your working directory to another folder (also available in TortoiseSVN).

This copies over just the items under source control, giving you a nice clean copy of your source tree including any uncommited changes, but excluding all the bin, obj and other directories and files.


How about cleaning your solution? Would that suffice?

From the Visual Studio menu choose

Build -> Clean Solution

In case your SCM system is SVN, you can use SVN's export command to generate a clean folder structure of your project. Other source control management systems usually have similar commands or offer you to keep a "shadow" folder of your project.


I use a dos .bat file in the solution folder, that simply removes .exe, .dll and pdb files (and I have a more complex one for Win32 C++ projects).

DEL *.DLL /S
DEL *.EXE /S
DEL *.PDB /S

Alternatively, you can clean the solution from VS.


Ah.. i found what i was looking for. Its great!

http://code.google.com/p/treetrim/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜