Category Archives: Visual Studio

C# Suppress Compilation Warnings with #pragma or the SuppressMessage Attribute

Although one would hope that you wouldn’t have to do so very often, sometimes it is useful to explicitly disable code analysis warnings within your application. For example, you could suppress warnings around references to obsolete methods that must be … Continue reading

Posted in Attributes, C#, MSBuild, Visual Studio | Leave a comment

VSDBCMD: Create a .dbschema File from an Existing Database

If you have a Visual Studio Database project and want to reference an existing database, you can generate a .dbschema file from the command line. Here’s an example: [cc] vsdbcmd /a:Import /cs:”Server=(local);Database=MyDatabase;Trusted_Connection=True;” /dsp:SQL /ModelFile:MyDatabase.dbschema [/cc] Hope this helps!

Posted in MS SQL Server, Visual Studio | Leave a comment

Visual Studio: Team Foundation Server: Workspace Already Exists Error

Visual Studio: Team Foundation Error: “Workspace Already Exists” Continue reading

Posted in Team Foundation Server, Visual Studio | Leave a comment

Embed Resources into your .Net Projects

Worrying about file paths, locations, availability, and security of your project’s resource can be a real pain.  Fortunately, you can easily embed resources into your project’s DLL and reference them with ease from your code.  Here’s an example of how … Continue reading

Posted in C#, Visual Studio | Leave a comment

Fix FireFox SLOWdown on Vista while Debugging localhost

If you use FireFox to debug on Windows Vista, you most likely have noticed how ridiculously slow it is rendering localhost requests versus Internet Explorer.  No, this isn’t a conspiracy, just an issue with IPv6, FireFox, and Windows Vista. To … Continue reading

Posted in FireFox, Visual Studio | Leave a comment

Format Document – The Quick HTML and Code Organizer

I have encountered a lot of bad HTML formating in my days, and one quick way to organize the HTML files via Visual Studio 2005 is to use the Format Document option from the Edit menu. One thing about the … Continue reading

Posted in Visual Studio | Leave a comment