Visual Studio Tips and Tricks |
| Wednesday, 06 September 2006 15:15 | |||
Visual Studio is something that I've had to deal with for a long time in my life so I have a love/hate relationship with it.VS 2005 == VC8 == _MSC_VER 1400 VS 2008 == VC9 == _MSC_VER 1500 VS 2010 == VC10 == _MSC_VER 1600C++11 Features in Visual C++ 11 - Visual C++ Team Blog - Site Home - MSDN Blogs Things are looking bright these days... new SP1 for VS2008 out! new SP1 for VS2008 out!... VS2010 is out! Visual Studio 2010, .net 4.0Look at all the testing tools! :) Exciting stuff indeed.Visual Studio 2010 and .NET Framework 4.0 Overview Download details: Visual Studio 2010 and .NET Framework 4 Training Kit 10-4 | Shows | Channel 9 - channel 9 videos on 2010 features. WCF / WF 4 Training Kit - Home Download details: WCF WF Samples for .NET Framework 4.0 Beta 1 A quick analyze of the .NET Fx v4.0 Beta1 - Patrick Smacchia [MVP C#] Download details: Visual Studio 2010 and .NET Framework 4 Training Kit VCBuild vs. C++ MSBuild on the Command Line - Visual C++ Team Blog - Site Home - MSDN Blogs - they took eer vcbuild... Visual Studio 2008, .net 3.5, sqlcompactDownload details: Visual Studio 2008 Service Pack 1 BetaDownload details: .NET Framework 3.5 Service pack 1 Beta Download details: SQL Server Compact 3.5 SP1 Beta for ADO.Net Entity Framework Beta 3 Visual Studio 2008 (vs2008), includes a lot of new tools for working with XML, XTDs, XSD, etc. New XML editors with intellisense and XML schema explorer let you navigate and code with ease. Glad to see this come in the product. CoDe Magazine - Article: XML Tools in Visual Studio 2008 Web ResourcesEric Nelson - Development for .NET Framework for ISVs : Visual Studio 2008 Training Kit updated for RTMBoris Jabes's Webblog (VS Program Manager) Visual Studio 2005 Service Pack 1 Beta Debugging in Visual Studio: Avoid Stepping Into Common Functions EEAddIn Sample: Debugging Expression Evaluator Add-In dzolee's pocketblog: Remote debugging How to Not Step Into Functions using the Visual C++ Debugger Formatting variables within the IDEVS2005 has gotten a lot better when it comes to displaying custom datatypes within the IDE. There is a file called autoexp.dat which controls the formatting of datatypes within the VS watch and tooltip windows. This is the file that provides the expansion for types like CStrings, std::vectors, std::string, etc. Just edit autoexp.dat to provide the expression expansion for your custom type. (This came up for me because I was always dealing with a custom string class that subclasses the std::string and as tired of having to expand the class to view the std:string)Full path to autoexp.dat is: "C:\Program Files\Microsoft Visual Studio 8\Common7\Packages\Debugger\autoexp.dat" The following link provides more information on the constructs within the autoexp.dat file. Writing custom visualizers for Visual Studio 2005 Wow, custom debugger visualizers allow you to display custom binary data using your own custom drawing methods. Instead of seeing dec/hex representations of image data, you can actually view it. How cool! Create a Debugger Visualizer in 10 Lines of Code Compile problems relating to C++ code generationWhy is code generation so hard in Visual Studio? Why can't the linker tell me which libraries are mis-matched runtime? Instead Visual Studio chooses to give me all these warnings about things being defined multiple times. And many people simply choose to ignore libraries to get it to build. But this is *NOT* the solution!Use the following command to figure out what version of the C runtime you are using: dumpbin /directives somefile.obj Native code deploymentUntil VS2005, native code deployment was pretty clean. You could compile a small native executable and it didn't require a redistributable package to run. This is a painful additional installation requirement...the same pain as managed code deployment.Download details: Visual C++ 2005 Redistributable Package (x86) Download details: Visual C++ 2008 Redistributable Package (x86) Deployment of your output executables from VS2005 can be a real headache. However, after about 2 weeks of playing I've finally decoded the steps to actually deploy a native C++ binary with /MD code generation. First, you can try doing a "private assembly" deployment by copying the required assembly from "Program Files\Microsoft Visual Studio 8\VC\Redist" to your executable's directory. This is nice because it means your user doesn't have to run (vcredist_x86.exe) which requires windows installer. The other option is to use the vcredist_x86.exe which installs the needed shared side-by-side assemblies into the native assembly cache (WinSxS folder). Microsoft provides a download for vcredist_x86.exe but I've never gotten it to work (likely because my CRT version isn't the same...VS2005 SP1). It is always best to grab your vcredist_x86.exe directly from the "C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\vcredist_x86" folder. Links to more detailed information about using the VC runtime files in VS 2005 SP1 Visual Studio 2005 DLL Hell MSDN Forums/Re: msvcr80.dll not found Run-Time Library Reference Confusion: Libraries, .lib and .DLL Visual C++ Libraries as Shared Side-by-Side Assemblies Troubleshooting C/C++ Isolated Applications and Side-by-side Assemblies Q&A on adapting VS2005 SP1 to build your applications How to perform a silent install of the Visual C++ 8.0 runtime files (vcredist) packages _USE_RTM_VERSION (flag to build native code without SP1 redist) Private deployment of runtime in mixed RTM and SP1 environment Project/solution converters and toolsUsing VS2005 to develop build v1.1 projectsVC++7 to VC++6 project converter vctool - dumps the basic skeleton of either '.dsp' or '.vcproj' project files used by MS Visual Studio PluginsVersioning Controlled BuildBuild Number Automation for Visual Studio .NET Projects Building a Refactoring Plug-in for VS.NET - the Sequel jens-schaller.de: SonicFileFinder - find files within a solution easy. (a vs2005/vs2008 plugin) brunomlopes-visualstudioplugins - Google Code - includes a cullwindows plugin to keep your open tabs under control. MiscThe Road to MSBuildHow to upgrade VS2003 projects to VS2005 VS 2005 - Inferior to VS 2003? Ask The Pros: Keyboard Bashing With The Pros Larry Osterman's WebLog - Building a Project from the Command Line Team FoundationDownload details: Visual Studio Team System 2008 Team ExplorerDownload details: Team Foundation Power Tools patterns & practices: Team Development with Visual Studio Team Foundation Server - Home James Manning's blog : diff/merge configuration in Team Foundation - common Command and Argument values Team Individualism : Team Foundation Server Tools Visual Studio Team Foundation Server MSSCCI Provider - provides team foundataion source control access from VS2003. Download details: Visual Studio Team Foundation Server MSSCCI Provider patterns & practices: Team Development with Visual Studio Team Foundation Server - Release: Team Development with TFS - Final Release - guidance. Rory Primrose | Using WinMerge with TFS Team Foundation Server SDKAaron Hallberg : Team Build API: GetBuildUri and GetBuildDetailsTFS API Examples - TFS API Examples Mohamed Mahmoud (El-Geish) : How to: Diff files using TFS APIs? James Manning's blog : programmatically showing differences between files - you'll need the link below to find Microsoft.TeamFoundation.VersionControl.Common. Buck Hodges : How to add the Team Foundation assemblies to the .NET tab in the VS Add Reference dialog Ed Hintz (MSFT) : How to Write a Team Foundation Version Control Add-in for Visual Studio CodeProject: TFS Event Handler in .NET 3.5 Part 2 - Handling Team Foundation Server Events. AddinsVisual Studio Gallery | PowerCommands for Visual Studio 2008A Custom Action for Deploying Visual Studio 2005 Add-in - The Code Project - Installation How to: Deactivate and Remove an Add-in CoDe Magazine - Article: Creating Visual Studio Add-Ins Update Visual Studio 2005 Add-ins for Visual Studio 2008 - Keyvan Nayyeri Mole v4.1 For Visual Studio « Karl On WPF - .Net Visual Studio for Applications (VSA) is the replacement for the old scripting tech. called VBA. In VBA, the application model was exposed via OLE Automation. In VSA, the application model is exposed via the .NET Framework. VSA can use either VB or C# for scripting. Very nice automation for the managed world. It installs from the Visual Studio SDK. Introducing Visual Studio for Applications MSDN blog - Visual Studio Tools for Applications VS2008Visual studio 2008 has been released! It comes with a lot of great new functionality.Download details: Visual C++ 2008 Feature Pack Visual Studio 2008 and .NET 3.5 Released - ScottGu's Blog - an overview of new things that are available with VS2008 Steps to Uninstall VS 2008 Beta2 before installing the VS 2008 Final Release - ScottGu's Blog MSBuildMSBuild Team BlogMSBuild Community Tasks Project - an open source project for MSBuild tasks. The goal of the project is to provide a collection of open source tasks for MSBuild. MSBuild - What It Does and What You Can Expect in the Future @ .NET DEVELOPER'S JOURNAL Attrice Corporation MSBuild Sidekick v2 ($) Visual Debugger for MSBuild Projects - Home Visual C++ Team Blog : Using different toolsets for vc build XmlLogger for MSBuild automate devenv /upgrade Inside MSBuild: Compile Apps Your Way With Custom Tasks For The Microsoft Build Engine -- MSDN Magazine, June 2006 Jomo Fisher -- C#, LINQ and Whatnot : Hack the Build: Programmatically Converting Older VS .NET Projects to MSBuild Jomo Fisher -- C#, LINQ and Whatnot : Hack the Build: Cracking MSBuild Project Files Synchronize the Currently Open File with Solution ExplorerFor some reason this is not the default, but it really should be. There are many contextual menus possible in the solution explorer(esp. with TFS)...now instead of having to search yourself, VS will update the treeview as you change textfiles. Nice.The option for auto-sync is: Tools|Options|Projects and Solutions|General|Track Active Item in Solution Explorer Changing the look and feel of Visual StudioSometimes it is nice to change the look of the code with which you work. I'm not the most talented in terms of selecting colors, but there are templates available... :)Join the Dark Side of Visual Studio - Infinities Loop Scott Hanselman's Computer Zen - Visual Studio Programmer Themes Gallery Navigating large projects in visual studioTools > Options > Projects and Solutions > Track Active Item in Solution ExplorerI don't know why this option isn't on by default. I find it hard to work in large solutions without it. namespace name 'TeamFoundation' does not exist in the namespace 'Microsoft'This is an interesting problem. I found this while trying to build Scrum Sprint Monitor - Source Code, looks like to make it work you've gotta install the team foundation client.Visual studio hotkeys
Debug mode fill constantsMemory Management and the Debug Heapc++ - When and why will an OS initialise memory to 0xCD, 0xDD, etc. on malloc/free/new/delete? - Stack Overflow
Download: Debug Diagnostic Tool v1.2 - Microsoft Download Center - Download Details _ITERATOR_DEBUG_LEVEL - Advanced STL, Part 3 - Visual C++ Team Blog - Site Home - MSDN Blogs C9 Lectures: Stephan T. Lavavej - Standard Template Library (STL), 1 of n | Going Deep | Channel 9 Win32 Debug CRT Heap Internals The [no_sillywarnings_please.h] file | Alf on programming (mostly C++)
|
|||
| Last Updated on Monday, 03 June 2013 08:50 |

