Archive for the ‘.Net’ Category
I ran across the Gilded Rose kata and had to try it. I cloned the repo and recorded the result. I hope you enjoy it.
I have use psake a few times, and I wanted to see what I extract to be more productive. With the rate at which I spin off OSS and side projects, I need something that just works out of the box and is fast to set up. Borne of this need, I created Toji, and it is available as a NuGet package.
I must have my build set up with compiling, testing, packaging, and deployment. I have some xunit, nunit, nuget, msbuild helpers in the project to get projects up quickly. The lack of a xunit NuGet package, [...]
read more
With Windows 8 Microsoft ushers in a new set of technologies designed to challenge Apple’s market share while maintaining the full productivity of the PC. In this session we discuss what they are offering and what technologies they are introducing to successfully compete – both from a users perspective and a developers perspective. Don’t miss this session to understand a new breed of applications from Microsoft and the development technology and architecture that makes it all possible.
Sponsored by the Spokane .Net Programming User Group and Presented by Mark Michaelis
Although the installation of the Async CTP (SP1 Refresh) appeared to be successful, the final web page titled “Microsoft Visual Studio Async CTP” did not appear and the “My Documents > Microsoft Visual Studio Async CTP” directory was not successfully created. Furthermore, when I attempt to open an Async project (such as a sample), Visual Studio reports this project type is not supported.
I tried the following but none of them was successful:
Running a repair on Visual Studio SP1
Uninstalling Visual Studio SP1
Installing SP1
Installing Async CTP
Uninstalling Visual Studio 2010
(Visual Studio SP1 stays installed and won’t uninstall at this point)
Installing SP1
Installing [...]
read more
Finally, there will be a search everything in Visual Studio vNext. Here are a couple screen shots:


Notice from the second image that there is a “standard” search syntax allowing you to search specific fields within the work item.
During my talk at TechEd, DEV318 – Upgrading Your C# Programming Skills to Be a More Effective Developer (video) (Slides), I did a full review of all the most significant C# changes since C# 1.0 as shown in the following MindMap:

My SMTP mail server requires that email be sent with TLS encryption and on port 587. This makes it problematic for Team Foundation Server (TFS) to send emails directly. To work around the problem, I installed the Windows 2008 SMTP Server service and configured it for relaying to my real SMTP mail server.
Install SMTP Server
To begin, launch Server Manager and add the SMTP Server feature.

This includes a dialog to add some additional items.
read more
A problem was recent posed that I hadn’t thought to do using Parallel.For in C#. How do you parallelize a for loop variable increased by something other than i++? Typically, I would simply iterate over a enumerable collection and run against the data in parallel using Parallel.For and Parallel.ForEach.
It turns out that there is no support for this in the PFX API. Parallel.For does not support incrementing other than one and it does not support reverse iteration. Also, Enumerable is a static class – which means we can’t do extension methods on Enumerable. However, we can use a custom iterator to generate the sequence for us. By using a Func<int, int> allows us to use our familiar i+= syntax for the increment function. We can quickly create a very simple iterator that will help us out.
read more
In this edition, I am going to wrap up a few loose ends with a selection of miscellaneous keyboard shortcuts and links to a summary keyboard shortcut poster.
Debugging:
I realize that none of you would write bugs, but in case you meet someone that does or perhaps on occasion you need to debug some code in order to explain a complex algorithm, here are some invaluable debugging keyboard shortcuts.
F9 and CTRL+F9
F9 creates or removes a breakpoint based on the cursor’s current location. CTRL+F9 toggles whether a breakpoint is enabled or not.
F5, CTRL+F5 and SHIFT+F5
CTRL+F5 launches the application or begins running the [...]
read more
Knowing all the keyboard shortcuts for editing shows off our programming prowess, just like it would it did for programmers that could use VI. Rather than describing the well known ones like CTRL+F and CTRL+H, I am going to review some that are more unique to Visual Studio Programming:
Find
CTRL+I/CTRL+Shift+I
Incremental Search: Turns on incremental search so that characters typed next will be search for in sequence within the file. Use CTRL+Shift+I to search up and ESC to cancel.
CTRL+Shift+F and Ctrl+Shift+H
Find in Files: Displays the find dialog with Look in: set to [...]
read more