Speaking at DevTeach Montreal 2016

DevTeachLogo

I learned last week that I have been accepted as a speaker at DevTeach 2016 in Montreal this July 5-7. This is exciting as Montreal has an active developer community and this conference comes back to the city for the first time in several years.

DevTeach’s mission is “where we see the developers taking control of their future. We see developers forming a strong and organized community, which can influence the future of the product that we use. After all we are the one that are investing time and money in learning how to create solutions. It’s just normal that we should be involved in the design of future products versions.”

While at the conference I will be giving two presentations:

  • Azure App Service to Create Web and Mobile Apps
  • NoSQL, No Problem: use Azure DocumentDB

You can find the abstracts for my talks and all the other speakers on the DevTeach Sessions page.

To learn more about the conference and to receive an early registration discount, visit DevTeach.com.

If you are planning to attend what should be a great conference, then please feel free to introduce yourself in the comments section below or at the conference. I look forward to speaking with you.

Related Articles:

Microsoft Technical Guru – December 2015

The TechNet Guru December 2015 Winners have been announced and for another month I was selected as a Technical Guru in multiple categories.

This month I won Gold medals in the Windows PowerShell and Miscellaneous categories:

2015-12-Guru-PowerShell

2015-12-Guru-Misc

While another article won a Bronze medal in the Microsoft Azure category:

2015-12-Guru-Azure

These wins bring my total number of TechNet Guru medals to:

  • 5 Gold
  • 5 Silver
  • 4 Bronze

for a grand total of 14 medals. You can view this page to see where I rank amongst the winners: TechNet Guru: The Most Frequent Award Winners

Links to my past winning articles and to all my TechNet Wiki activities can be found through my TechNet Wiki User Page.

Thanks to the judges for all their hard work and kind comments. And thank you to everyone at TechNet Wiki who makes this competition possible.

Related Articles:

Create GUID Tool in Visual Studio

This article is also available on the Microsoft TechNet Wiki.

A globally unique identifier or GUID is an id that is exclusive throughout the globe. They are usually 128 bits long and are shown in hexadecimal groups separated by hyphens.

Within Visual Studio there exists a standalone tool (guidgen.exe) that allows developers to create GUIDs in a specific format. Creating GUIDs in code is easy enough but perhaps you need to generate one (for a constant or while unit testing) without running your code. This tool can help with that.

Creating GUIDs

  1. To find the tool, open Visual Studio and click Tools > Create GUID.GUID_01
  2. The Create GUID window will appear.
    GUID_02
  3. There are seven different GUID formats to choose from. As you move through the types, the Result window will display what the GUID value will look like.
  4. If you want a different GUID, click the New GUID button.
  5. Once you are happy with your result, click the Copy button to save it to the Clipboard. You can then paste it to your desired locale.
  6. Click Exit to close the dialog window.

Troubleshooting

If the tool does not appear under the Tools menu, click Tools > External Tools (see top image). It may be that the tool was not registered correctly within the IDE. Using the External Tools window, we can add a reference to guidgen.exe.

  1. Click the Add button. A new tool will be added to the Menu contents.
  2. Fill in the fields like so:
    • Enter a Title of Create &GUID. The ampersand will create a hotkey using the letter G.
    • For the Command field, browse to the Tools folder of your current Visual Studio install and find guidgen.exe. This location will typically be %Installation Path%\Microsoft Visual Studio {Version Number}\Common7\Tools\guidgen.exe. For Visual Studio 2015, the full path will look like this: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools. NOTE: You can also double click the exe here to run it. You will see the same Create GUID UI as above.
    • For the Initial directory, use the guidgen.exe root folder or %Installation Path%\Microsoft Visual Studio {Version Number}\Common7\Tools\
  3. When you are done, your entry should look something like this:GUID_03
  4. Click OK.
  5. Your tool should now appear in the Tools menu.

See Also

Using the Obsolete Attribute in C#

This article is also available on the Microsoft TechNet Wiki.

The Obsolete Attribute marks elements like classes, methods, properties, fields, delegates, and many others within your code as deprecated or obsolete.The attribute is read at compile time and it is used to generate a warning or an error to the developer.

This attribute can help you if you have ever wanted to make sure programmers use newer versions of your methods. It also makes it easier when you are transitioning from older methods to newer ones. Marking an item as obsolete warns users that program elements will be removed in future versions of the code base.

Obsolete Attribute

The attribute is found in the System namespace. The Obsolete attribute decorates a program element by putting the word “Obsolete” above it inside square brackets. Since it is an attribute, you can use either Obsolete or ObsoleteAttribute.

You can use it without arguments and in which case it generates a generic compile-time warning. It can also take one or two optional parameters: Message and IsError.

The Message parameter is a string value with the deprecation message. The message should state that the program element is obsolete and, if possible, point them to the new element to be used.

The IsError parameter is a Boolean value that tells the compiler whether to generate an error or not. An error is generated when IsError is true. If it is set to false, or is not included, then only a warning is generated.

Code Sample

The following code sample shows how to decorate methods with the Obsolete attribute:


using System;

class Program
    {
        // Mark Method1 obsolete without a message.
        [ObsoleteAttribute]
        public static string Method1()
        {
            return "You have called Method1.";
        }

        // Mark Method2 obsolete with a warning message.
        [ObsoleteAttribute("This method will soon be deprecated. Use MethodNew instead.")]
        public static string Method2()
        {
            return "You have called Method2.";
        }

        // Mark Method3 obsolete with an error message.
        [ObsoleteAttribute("This method has been deprecated. Use MethodNew instead.", true)]
        public static string Method3()
        {
            return "You have called Method3.";
        }

        public static string MethodNew()
        {
            return "You have called MethodNew.";
        }

        public static void Main()
        {
            Console.WriteLine(Method1());
            Console.WriteLine();
            Console.WriteLine(Method2());
            Console.WriteLine();
            Console.WriteLine(Method3());
        }
    }

The messages generated in the Error List appear as:

Error List

The two warnings are shown, as is the requested error.

References

Azure Infographics and Visio Templates

This article is also available on the Microsoft TechNet Wiki.

This article won a bronze medal in The Microsoft TechNet Guru Awards! (December 2015).

AzureLogoThis page lists infographics/posters and Microsoft Visio templates related to Microsoft Azure.

These infographics are a great tool for learning Azure. They are PDFs that can be downloaded and printed. They measure 26 x 39 in./66.04 x 99.06 cm.

Azure Infographics

Azure Architecture Infographics

Azure Architecture Visio Templates And Tools

See Also

Follow

Get every new post delivered to your Inbox.

Join 113 other followers