Tips and tricks for working with Microsoft Visual Studio solutions and project?

First rule of working with Visual Studio: Install ReSharper.

I'm a huge fan of using msbuild to build my solutions with the /m option so that it builds using multiple cores. It can drastically decrease your build time. Scott Hanselman posted on how to add it to your tools list at hanselman.com/blog/HackParallelMSBuildsF... usually just run 'msbuild /m' from the command prompt or PowerShell, though.

Another tip that is sometimes useful is taking advantage of the pre- and post-build events to add additional logic before or after a build. To see these, go to the Properties for a Project, click on the Compile tab, and then choose "Build Events...

You surely meant "drastically decrease". :) – Kyralessa Sep 12 '08 at 4:06 Hah! Thanks Kyralessa!Fixed.

– David Mohundro Oct 2 '08 at 13:25.

I love debugging with the Multiple startup projects option.

Using the command window to quickly open files in your solution: Bring up the Command Window (CTRL-ALT-A) Type open I create an alias for open by executing the following at the Command Window: alias o open. Visual Studio will remember the alias from then on, so I only ever need to type o . It even searches database projects unlike some third-party plugins!

Unfortunately, there is a bug in the filename completion when searching for nested files. A simple workaround is to type the beginning of the filename, hit the ESC key and then type the rest of the name. To search for login.aspx.Cs, type login.

Aspx, hit ESCP and then type .cs.

– Jhonny D. Cano -Leftware- Apr 14 '09 at 20:16 I didn't fully understand your question, but I hope my edit answers your question. VS remembers the alias until you explicitly remove it.

– Mario Apr 16 '09 at 1:08 1 You can also use the search box in the toolbar to open files by typing ">of filename" (it autocompletes but has the same problem mentioned above). – Jersey Dude Apr 23 '10 at 15:17 Yup, I used that for a while too. Now, however, I just use ReSharper ;) – Mario Apr 23 '10 at 20:28.

I like changing the default location that new projects are saved to. Tools->Options (Select Projects and Solutions tab) This "tab" has all sorts of goodness. Not just the ability to change the default locations and avoid saving new projects automatically but other nice things as well.

For example: Track Active Item - Selects the file in the solution explorer when you change windows. Show Output window when build starts - Toggle to show or not. I like it on, your mileage will vary.

Track Active Item in Solution Explorer is one of the features I regret are not on by default. So many people have gasped in wonder as I check the box and show them what it does. – Omer van Kloeten Sep 10 '08 at 14:19.

I have a tip regarding the "Track Active Item" option mentioned above, for when working with big projects. It's posted here: stackoverflow.com/questions/31163/forcin....

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions