문제

I need to dump all of my code for my project into a single text file. Is this possible in Visual Studio 2010? I haven't been able to find any options for this in VS. Is there a third party program that can do it? Every search I've done just turns up "how to print from VB", but does not address printing my actual code. Even if I have to do it module by module, that would be acceptable, but copying and pasting is a bit much.

Just FYI, I'm not talking about printing output from my program. I'm talking about printing the program itself.

Thanks.

도움이 되었습니까?

해결책

This can be done outside of visual studio. Start a command prompt, cd to your project directory and:

type *.vb >filecontent.txt

If you have multiple project folders, you'll need to do this for each one as the type command doesn't have a /s subfolder type of parameter.

Alternatively, you could create a batch file that changes to each folder and performs the type command to output the file contents.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top