Robert McLaws: FunWithCoding.NET

Public Shared Function BrainDump(ByVal dotNet As String) As [Value]

News

<script type="text/javascript"><!-- google_ad_client = "pub-4330602465258980"; google_hints = "ASP.NET, VB.NET, C#, C#.NET, WindowsForms, .NET Framework, VS2005, Visual Studio, XAML, WinFX, Windows Workflow, WPF, WCF, Atlas, NetFX3, Visual Studio Orcas"; google_ad_width = 120; google_ad_height = 240; google_ad_format = "120x240_as"; google_ad_type = "text_image"; google_ad_channel ="4997399242"; google_color_border = "B6C9E7"; google_color_bg = "EFEFEF"; google_color_link = "0000FF"; google_color_text = "000000"; google_color_url = "002C99"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
<!--
-->

You should feel free to challenge me, disagree with me, or tell me I'm completely nuts in the comments section of each blog entry, but I reserve the right to delete any comment for any reason whatsoever. That said, I will most likely only delete abusive, profane, rude, or annonymous comments, so keep it polite, please.

Blogroll

Cool .NET Articles

My .NET Tools

My Builder.com Articles

My MSKB Articles

Builder.com Article #6

Woo hoo. Here is my sixth article on Builder.com. Basically, it's how to idiot-proof your assembly versioning when you target different versions of the Framework.

Ok, they didn't make all the changes I wanted to, but oh well. I'll include the biggest one here. They left out a paragraph and a figure. This paragraph, along with the accompanying code, goes right after Figure B:

Building off my “single codebase” methodology I introduced in my last article, I’ve included a complete sample AssemblyInfo.vb file, as shown in Figure C. This is the preferred way to organize your code. Make sure to follow the instructions in my last article to ensure that this system is used properly.

<Assembly: AssemblyDescription("DTS Engine for the .NET Framework. Features 100% ADO.NET Integration and 100% Extensibility.")>
<
Assembly
: AssemblyCompany("Interscape Technologies, Inc.")>
<
Assembly
: AssemblyProduct("GenX.NET 3.0")>
<
Assembly
: AssemblyCopyright("Copyright (C) 2002-2003 Interscape Technologies, Inc. All Rights Reserved.")>
<Assembly
: AssemblyTrademark("Simple. Affordable. Solutions.")>
<
Assembly: CLSCompliant(True
)>
<
Assembly: ComVisible(True
)>

#If NET11 Then
<Assembly
: AssemblyTitle("GenX.NET 3.0 for .NET 1.1")>
<
Assembly
: AssemblyVersion("3.0.5000.1143")>
<
Assembly
: AssemblyFileVersion("3.0.1143.0")>
#
Else
<Assembly
: AssemblyTitle("GenX.NET 3.0 for .NET 1.0")>
<
Assembly
: AssemblyVersion("3.0.4322.1142")>
<
Assembly
: AssemblyFileVersion("3.0.1142.0")>
#
End If

Figure C: Complete Sample AssemblyInfo.vb File

On the 24th, my article on code organization comes out. It ties in directly with the techniques in the past two articles. You're in for a real treat. I would like nothing better then for you guys to start using this system. Not for my sake, but for the sake if your customers. It really is the smart way to go.
Posted: Sep 12 2003, 04:41 PM by interscape | with no comments
Filed under:

Comments

No Comments