The opinions expressed in these materials are my own and are not necessarily those of Microsoft.
Copyright © Microsoft Corporation. All rights reserved. Unless otherwise indicated, all source code provided is licensed under the Microsoft Public License (Ms-PL).
Well! I had an interesting night. As many of probably know by now we have four dogs at my house: Max (Basenji), Fibi (Jack Russell Terrier), Lily aka Piggy (we think she is a Pit Bull mix), and Zorro (Blue Tick mix). With four dogs you are always breaking up little fights between them at one time or another. Not sure if it is just our dogs or this is a normal thing.
Last night my dogs were in the backyard and I heard a little skirmish start. I did my usual yell to tell them to cut it out but this time Zorro kept making a funny noise like he was hurt. It didn't sound good at all. I went out side and found Max and Zorro attacking Lilly. Normally Lilly can handle herself no problem but she didn't seem to be fighting and it looked like Zorro had her around the neck.
As I approached and got Zorro to hold still I discovered that he had managed to get his lower jaw stuck in Lilly's collar. As I looked closer I found I was having a hard time getting Zorro lose so I brought them closer into the light near our porch. That is when I realized there was a bad problem. Zorro was really stuck and there was blood all over Lilly.
I called for my wife to come down and give me some help and she began looking for a flashlight to get a better idea of what we were dealing with. Right after she left, I noticed that Lilly had a funny look and realized she was choking--things were much worse than I thought. OMG. I almost freaked but held it together and called for my wife to bring me a knife (screw the collar, ill buy a new one). It was close but I managed to cut the collar off w/o cutting Zorro or Lilly. As soon as I cut them lose, I grabbed Lilly who had turned purple and had stopped breathing.
I didn't know you could give a dog mouth-to-mouth but my wife (freaking out) managed to say "give her mouth-to-mouth". Now, I have to admit, giving my dog mouth-to-mouth was not appealing to me but when you are faced with a purple dog you tend to not give a crap. I directed her to start the car so we could take Lilly to the emergency room and gave the the dog mouth-to-mouth.
It worked! I never, EVER would have thought you could resuscitate a dog that way but she started breathing slowly and we rushed her to the emergency room. By the time we got to the emergency room, she had completely restored breathing and was just a regular dog. So there we were in our pajamas with a perfectly healthy dog just wagging it's tail and having a good time. About 30 minutes and 95 dollars later we were on our way home and now we are looking for a new (hopefully safer) collar for Lilly. :P
Shoot me the URL to your blog and point out where you have linked to me. I will pick one lucky victim...er...winner to reward with a Visual Studio 2008 Backpack or 3 Visual Studio T-Shirts.
Menu: Project -> Add New Solution Folder; [Right-Click Solution] -> Add -> New Solution Folder Command: Project.AddNewSolutionFolderVersions: 2008,2010Published: 3/27/2010 Code: vstipProj0009
Did you know there are special folders to help you organize large solutions? There is! They are called, appropriately enough, Solution Folders. To create one just Right-Click on your solution (or go to Project -> Add New Solution Folder) and you will see this in Solution Explorer:
Simply give the folder a name and you are good to go. But so what? I mean, what can you actually DO with these things? Here is a list of stuff you can do:
Move or add projects to them. Solution Folders can be nested to create greater organizational structure.
Add, delete, or rename Solution Folders at any time, if the organizational requirements of the solution change.
Unload all projects in a Solution Folder to make them temporarily unavailable for building.
Collapse or hide entire Solution Folders so that you can work more easily in Solution Explorer. Hidden projects are built when you build the solution.
Build or rebuild all the projects. The projects are built in the order specified by the project dependencies.
Solution Folders are an organizational tool in Solution Explorer; corresponding Windows folders are not created. Microsoft recommends that you organize your projects on disk in the same way that you organize them in the solution. But that is your call :)
So, someone thought it would be a good idea to give me some money for SWAG to give to my readers. Naturally, I loved the idea! So I went and bought a whole bunch of $100 ThinkGeek gift certificates. The problem is how to give them away? After much thought (about 10 minutes, at least), I figured the best way was to give them away whenever I felt like it.
Okay so there you have it. Beginning April 12th (Visual Studio 2010 Launch Day) I will be giving away ThinkGeek gift certificates. I’ll be picking people who show love for the Visual Studio Tips and Tricks blog. There are some basic ways you can do this:
Feel free to get creative and let me know about it. That’s pretty much it. Very simple really. Look for the fun to begin on Launch Day.
Keyboard: CTRL + WCommand: Edit.SelectCurrentWordVersions: 2008,2010Published: 4/5/2010Code: vstipEdit0039
Download the seriously cool Tip of the Day Extension to get the daily tips delivered to your Start Page!
You can easily select the current word in Visual Studio by simply putting your cursor in the word to select:
Then press CTRL + W and it will automatically select the current word:
Menu: Window -> Split Command: Windows.SplitVersions: 2008,2010Published: 3/5/2010Code: vstipEnv0004
Did you know you can split your windows? This feature has been available in a lot of Microsoft products for some time. You can simply go to Window -> Split on the Menu Bar or you can use this mouse technique:
Keyboard: CTRL + ALT + K (anywhere); CTRL + K,T (cursor must be on a member name) Menu: View -> Call Hierarchy Command: View.CallHierarchy; EditorContextMenus.CodeWindow.ViewCallHierarchyVersions: 2010Published: 1/19/2010Code: vstipTool0005
For the C# folks this is one heck of a great feature: The Call Hierarchy. It allows you to visualize all calls to and from a selected method, property, or constructor. To see how it works just right-click on any method, property, or constructor in the Editor and select View Call Hierarchy:
You should get a window similar to this one (amount of information will vary):
Notice there are "Calls To" and "Calls From" areas related to your selection. You can expand them out:
When you click on a node in the tree, the Call Sites window updates so you can visit the call if you want to:
You can continue expanding the hierarchy to see more "Calls To" and "Calls From" information:
The best part is you can right-click on a symbol and get all kinds of options:
Here are some options you may come across:
Context Menu Item
Add As New Root
Adds the selected node to the tree view pane as a new root node.
Removes the selected root node from the tree view pane. This option is available only from a root node.
You can also use the Remove Root toolbar button to remove the selected root node.
Go To Definition
Runs the Go To Definition command on the selected node. This navigates to the original definition for a method call or variable definition.
You can also press F12 to run the Go To Definition command on the selected node.
Find All References
Runs the Find All References command on the selected node. This finds all the lines of code in your project that reference a class or member.
You can also use SHIFT+F12 to run the Find All References command on the selected node.
Copies the contents of the selected node (but not its subnodes).
Collapses the selected node so that re-expanding it displays current information.
Versions: 2010Published: 1/29/2010Code: vstipDebug0004
For those not familiar with WPF Trees, check out this article: http://msdn.microsoft.com/en-us/library/ms753391(VS.100).aspx
Now. For those that ARE familiar with them have we got something for you: WPF Tree Visualizer. Yes, it started out as a CodePlex project and ended up in the product itself as a visualizer. But how do you use it?
Just an update on the book. It appears that it may be over 300 pages as originally planned so I am seeing if that is an issue with the publisher. Would you have a problem if the book was larger?
Also, I've gotten another draft of the book as we move along and, just as I have always done, I would like to get your thoughts. I've attached the PDF for your review. Let me know your thoughts. Bear in mind is it a rough draft and some things will change. For example, "Free Your Document Windows" will become something like "Multi-Monitor Support" as I review the titles.
Also, I will most likely be trimming out the more trivial tips. The tricky part is that one person's "trivial" is another person's "cool" so I'm erring on the side of too much information rather than not enough.
Welcome to the Launch Landing Page on my blog! Here you will find all kinds of launch-related coolness for your use.
Visual Studio Team System 2008 Virtual PC Images
Hands-On-Labs -- These things rock they are the harcore labs that you can do to get up so speed with the products.
[UPDATE: apparently there are source files missing from the hands on labs above so they are basically PDFs that suck. You can grab them as a nice overview but use the link below for labs with source files you can actually use:
And here you can find related webcast/podcasts/etc...: http://www.microsoft.com/events/series/msdnvs2008.aspx?tab=virtuallabs ]
Now to the good stuff! here are the links to videos from the Dallas Launch. Enjoy!
Links to Session Videos:
Ø Keynote, Chris Sakolosky, Jon Roskill
Ø Virtualization and your Infrastructure, John Weston
Ø Exploring Windows Server 2008 Web and Application Technologies, John Weston
Ø Optimizing your IT Infrastructure with Windows Server 2008, Stephanie Doakes
Ø What is New in Windows Server 2008, John Weston
Ø Securing your IT Infrastructure with Windows Server 2008, John Weston
Ø Enabling Dynamic IT and Optimizing your infrastructure processes and people, Stephanie Doakes
Ø The Application Platform: Where IT meets business, Stephanie Doakes
Ø Exploring Business Intelligence and SQL Server 2008, Brad Nelson
US Premier Launch Dallas MSDN Event Page:
Ø Simplify Management of Data Infrastructure, Sri Sridharan
Ø Breakthrough Challenges with Visual Studio 2008, Chris Koenig
Ø Creating Instantly Familiar Applications with Office System, Zain Naboulsi
Ø Mission Critical Application in SQL Server 2008, Sri Sidharan
Ø Next Generation Data Applications, Jonathan Swartz
Ø Reach end Users with Next Generation Web Applications, Chris Koenig
Ø Defy Occasionally Connected Challenges with Smart Client Applications, Zain Naboulsi