Solved

print c# project

Posted on 2013-01-23
3
481 Views
Last Modified: 2013-01-31
Is there a easy way to print out all the code in a C# application without having to go to each object in solution explorer and print from there ?
0
Comment
Question by:phiadmin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 38811321
Perhaps a batch file?

for /R "C:\path\to\top\level\folder\containing\c-sharp\files" %c in (*.cs) do print "%c"

Open in new window

0
 

Author Comment

by:phiadmin
ID: 38811409
Not sure what you mean by that ?

I was looking to print using Visual Studio
0
 
LVL 4

Accepted Solution

by:
jiangsheng earned 150 total points
ID: 38811485
The fearure is not built-in in Visual Studio, but you can write a macro in VBA to automate Visual Studio's API, provided you have a version that is automatable (sorry no Express edition) Check http://stackoverflow.com/questions/683759/visual-studio-printing-all-source-files-in-a-solution for a sample code.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question