Did you know… Only VC supports parallel building within the IDE – #324

Under Tools – Options – Projects And Solutions – Build And Run, there’s the Maximum Number Of Parallel Project Builds edit box.

image

Try as you might, this will never work on non-VC projects. Makes me wonder why the label doesn’t just say Visual C++ projects. Probably a historical reason for it.

These are some MSBuild blog entries I found on building projects in parallel using MSBuild. if you know of more recent, or more descriptive content, please leave the URL as a comment.

Visual Studio 2008 – http://blogs.msdn.com/msbuild/archive/2007/04/26/building-projects-in-parallel.aspx

.NET FX 3.5 – http://blogs.msdn.com/msbuild/archive/2007/10/22/enabling-multiprocessor-support-in-an-msbuild-host.aspx

Technorati Tags: VS2005Tip,VS2008Tip

Tips and Tricks for ASP.NET, IIS, and Visual Web Developer

Reshmi, a SDET on the Web Development Tools team, is running a new Tips and Tricks blog for ASP.NET, IIS, and Visual Web Developer tips. This is great to see, since I constantly get Visual Web Developer questions that I can’t answer.

http://blogs.msdn.com/webdevelopertips

Reshmi is on tip #10, which shows you just how far behind I am on blogging. =)

Did you know… How to configure how and when the IDE saves your files before building? – #323

Ahh, finally, back to one of the IDE feature areas I used to test – Projects and Solutions! And no other better way to start than a Tools Options series…

You can figure at a global level, across all languages (VB, VC, and C# are the ones i’ve tested) in your solution, how, when, and whether Visual Studio saves your files before a build.

Projects and Solutions - Build and Run

Go to the Tools – Options – Projects And Solutions – Build And Run page, and under Before Building: you’ll have the following options:

Save All Changes – pretty obvious. VS will save all unsaved edits whether you hit F5, build the solution, or build a specific project.

Save Changes To Open Documents Only – again, pretty obvious. VS will save all unsaved edits to files that are currently-opened in the IDE, whether you hit F5, build the solution, or build a specific project.

Prompt To Save Changes – You’ll see the standard prompt appear whenever you have unsaved files in the editor.

Prompt to save files

Don’t Save Any Changes – just as you would expect, keeps unsaved files unsaved. However, VS will build based on the code that appears currently in the editor, and not against the last-saved code that’s one file.

Technorati Tags: VS2005Tip,VS2008Tip

Matt’s Snippet Designer finally sees the light of day!

Sara Aside: Matt and I were IM’ing each other this morning, and he congratulated me for the book being sent to printing yesterday. He asked me if I planned to sleep with it like a stuff animal. I said of course I was going to..

One of the hardest things about working at Microsoft is to see the cool applications people develop never get released. Of course, it’s a night and day difference now compared to several years ago. But still, it is frustrating to hear customers ask for functionality, a feature, or a tool, and you know the answer is sitting in a source control repository somewhere behind the corpnet firewall. Hey, I’m speaking to you whoever you were at ReMix who asked me about editing a snippet file.

http://www.codeplex.com/SnippetDesigner

Matt’s a very sharp, talented developer. Go try it out, send him feedback, (rate it! – my shameless plug for my feature), and show some love. I know he’ll appreciate the feedback and will do whatever to make this tool a successful open source project.

Snippet Editor - hosted in the IDE which lets you edit the code, make replacements and change snippet properties:

Snippet Designer in IDE

And a Snippet Explorer - which lets you search for Snippet files on your computer an quickly open and edit them. The built-in Code Snippet Manager only organizes your snippets on disk and shows you their metadata as read-only. The overall Snippet Designer tool goes one step further and actually allows you to edit your snippets, create them on the fly, and so forth.

Snippet Explorer in IDE

You can read more on Matt’s blog at

http://blogs.msdn.com/matt/archive/2008/09/21/the-snippet-designer-is-released.aspx

Sara Aside: No, I really do not plan to sleep with the book. I’ll just end up drooling it or kicking it.

Did you know… You can use the XML Visualizer to view XML? – #321

Let’s say you have a more interesting string that contains xml, say one of the code snippet files.

string with XML content

You can still use the Text Visualizer to view the xml, but that’s not very exciting.

viewing xml using the text visualizer

If you select the XML Visualizer, then you get the xml syntax highlighting.

code snippet file shown in XML Visualizer

Much more exciting!

Technorati Tags: VS2005Tip,VS2008Tip

Did you know… How to use the Text Visualizer? – #319

Let’s say you have a long string, maybe a SQL connection string or just some tabular data (or data separated by a space as shown below), and you need to view the entire string.

Of course, you could cut and paste into notepad to view the contents, but there’s a way to achieve the same effect from within Visual Studio.

Bring up the DataTip for the string, and click the circled drop down arrow:

Drop Down Button for Visualizers on DataTip

Now you’ll see a list of Visualizers to choose from.

Text Visualizer on DataTip drop down menu

Since this is a string, today’s tip picks the Text Visualizer. Note that this dialog box is resizable and you can copy and paste from within.

image

Technorati Tags: VS2005Tip,VS2008Tip

Remembering ReMix08 UK – 3 talks in Brighton, England last week

Last week, my career-long dream of becoming an international speaker came true. I had the opportunity to speak at ReMix08 UK in Brighton, England. Thanks to Dave Sussman and Phil Winstanley, who ran the Community Track session, for inviting me out to speak. Also thanks to Mike Ormond for fitting me into the Developer track to deliver the VS tips talk.

This was an amazing conference. The logistics, the setup, and the organization reminded me of a conference the size of TechEd or PDC, yet I was completely relaxed and comfortable as a speaker. Kudos to everyone on the ReMix UK event staff and all the track owners who put this together. Your hard work definitely showed.

I gave 3 talks and sat on 1 panel during the 2-day conference. You can view my CodePlex talk slides and photos over on the CodePlex team blog. But since you are reading my blog, here’s are pictures from my Visual Studio Tips and Tricks.

Apparently, i rocked the house with my 20/20 session on VS Tips. In a 20/20 talk, you have 20 slides, and have 20 seconds each slide, lasting 7 minutes. Being the classic overachiever that I am (this summer has taught me nothing), I volunteered to do a 20/20 but using VS to demo tips instead of using slides. In other words, i demo’ed 20 tips, 20 seconds each. Dave screamed “Next” every 20 seconds, forcing me to move to the next tip. I cannot wait to get the recording and post it here. (again, thanks to Dave and Phil for organizing these talks!)

Here are pictures from my Visual Studio Tips and Tricks talk. I am still amazed how great the room looked.

Showing off cowboy hat from blog photo

Demo'ing on stage

And i’ll throw in a CodePlex photo that doesn’t appear on the team blog:

CodePlex and me

And lastly, I spent Saturday sightseeing in London, before flying home. And here is a picture of “tower bridge” and not “London bridge.” I’m curious when do people learn this in schools?

Tower Bridge in England

and of course the codeplex flag in front of Big Ben. Thanks to Scott Guthrie for taking the photo.

CodePlex and Me in front of Big Ben