Navigation

Showing posts with label documentation. Show all posts
Showing posts with label documentation. Show all posts

Thursday, May 13, 2010

Dot Net Assembly Naming Guidelines

Sometime getting good guidance on certain basic topics seems harder then it should be.  Conventions and best practices for assembly names is an area that seems so simple you feel foolish asking the question.  However, what seems like a simple issue really deserves to be well thought out and grounded on sound principles and good information.

In addition to the naming of assemblies, the folder structure in which we house or development solutions and projects requires some thought and structure.

Below are some recommendations on the two topics.

Define a Common Root Folder

Define a common root folder—for example, C:\development on your file system. This acts as a container for all of your development systems and matches your toot namespace.

Beneath the common root folder, create sub folders for each sub namespace such as c:\development\Data.  Within each namespace folder create folders to house your solutions such as c:\development\Data\myCompanyData_Solution.

 

Use Common Names for Projects and Assemblies

Your output assembly name should always match the project name from which it is generated. For example, you should be able to assume that an assembly called MyCompany.Utilities.Data.dll is generated by a project called MyCompany.Utilities.Data.

If you change the name of an output assembly, consider changing the project name to match, and vice-versa.

 

Use a Common Root Namespace Name

The root namespace into which you place your types (structures, classes, interfaces, and so on) should match the project and assembly name.

For example, use MyCompany.Utilities.Data as the root namespace within the MyCompany.Utilities.Data.dll assembly.

While .NET does not require this alignment, it makes sense to synchronize names because it then becomes easy to tell which types live in which assemblies.

Use a dot separated naming convention

Microsoft.Windows.Forms.dll

<Company>.<Major sub system>.dll

<Company>.<Major sub system>.<minor sub system>dll

 

 

References
  1. http://msdn.microsoft.com/en-us/library/Ee817674(pandp.10).aspx
  2. http://blogs.msdn.com/brada/archive/2003/04/19/49992.aspx

Tuesday, May 11, 2010

IfixIt

This is a great website that provides free repair manuals for electronic devices. 

image

http://www.ifixit.com/

If you ever need to repair one of your devices this can be a great resource.

Thursday, April 22, 2010

GhostDOC

Simplify your XML Comments!

GhostDoc is a free Visual Studio extension that automatically generates XML documentation comments for methods and properties based on their type, parameters, name, and other contextual information.

When generating documentation for class derived from a base class or for interface implementation (e.g. .NET Framework or your custom framework), GhostDoc will use the documentation that Microsoft or the framework vendor has already written for the base class or interface.

It supports VS2005, VS2008 and VS2010!

http://submain.com/products/ghostdoc.aspx

Getting Started with Visual Studio 2010 Application Lifecycle Features

This is a good webpage on “Getting Started with Visual Studio 2010 Application Lifecycle Features”.

UI Spy (UISpy.exe)

Another good development tool is UI Spy.  This enables developers to view and interact with the US of an application and see the element interactions.

http://msdn.microsoft.com/en-us/library/ms727247(v=VS.85).aspx

Getting Started with FxCop

While there is some administrative overhead in using FxCop and some of the constraints are questionable (many Microsoft assemblies fail all the checks) there is a lot of merit to using this tool.

http://msdn.microsoft.com/en-us/library/bb429473(VS.80).aspx

Dot NET Coding Guidelines

This is a great document on Dot Net coding guidelines.

http://dl.dropbox.com/u/5429585/Submain_DotNET_Coding_Guidelines.pdf