.NET
Topics related to .NET technologies.
In a previous post I reported an InvalidProgramException that occurs in a certain circumstance with unit tests involving accessors on a private generic method. It turns out that Bug #635093 reported through Microsoft Connect will not be fixed. The reason cited is that private accessors have been discontinued. And why have private accessors been discontinued? They don't have time is the reason listed in the blog post titled "Generation of Private Accessors (Publicize) and Code Generation for Visual...
There is a bug in the unit testing framework in Visual Studio 2010 with unit testing. The bug appears in a very special circumstance involving an internal generic type. The bug causes the following exception to be thrown: System.InvalidProgramExcept... JIT Compiler encountered an internal limitation. This occurs under the following circumstances: Type being tested is internal or private Method being tested is generic Method being tested has an out parameter Type accessor functionality used to access...
NDepend is a Visual Studio add-in designed for intense code analysis with the goal of high code quality. NDepend uses a number of metrics and aggregates the data in pleasing static and active visual reports. My evaluation of NDepend will be broken up into several different parts. The first part of my evaluation of NDepend is in the installation. The second part will cover my first impressions including the initial profiling for the solution that I will use throughout my evaluation. I used version...
The Smart Client Software Factory (SCSF) for Visual Studio 2010 was uploaded tonight. You can get it, the source code, and the documentation on the patterns & practices page. Note: Do not forget to "unblock" the documentation (CHM) file after you download it. To unblock it right click the file, choose Properties, and click the Unblock button
The Smart Client Software Factory (SCSF) version for Visual Studio 2010 is supposed to be released sometime this week. The updated (final?) source code is available on the patterns & practices site already, but I'm guessing it could be updated again due to changes found during the final testing. You'll need the Visual Studio 2010 SDK as well as the new versions of the Guidance Automation Extensions (GAX) and the Guidance Automation Toolkit (GAT) for the SCSF. Here are the direct links for those...
The Entity Framework has been valuable to me since it came out, because it provided a convenient and powerful way to model against my data source in a consistent way. The first versions had some deficiencies that for me mostly fell in the category of the tight coupling between the model and its resulting object classes (entities). Version 4 of the Entity Framework pretty much solves this with the support of T4 templates that allow you to implement your entities as self-tracking entities, plain old...
Every once in awhile I get the opportunity to write an application that is important enough to do, but not important enough to do the right way -- meaning standards, best practices, good architecture, et al. I call it lazy coding. The industry calls it RAD (rapid application development). I started on the conversion tool at the end of last week. It will convert our legacy data to a completely new system which I'm working on piece by piece. It will be used in the future, but only the new parts because...
When you add SQLCMD statements to a pre-deployment or post-deployment file in a database project in Visual Studio 2010. You might see the error "SQL80001: Incorrect syntax near ':'". This is not a real error assuming you have the correct SQLCMD syntax. To clear the errors temporarily right click on the document and select SQLCMD mode
Whew! It's been a busy week. Earlier in the week I put together an internal demo to illustrate some of the system architecture for an ungoing project. And the purpose of this post is to document a couple of gotchas that may not be clear and didn't seem to be well documented. This post is purposely terse, because I don't have a lot of time to be detailed due to some upcoming deadlines. The architecture involves WCF Services that are hosted in a Windows Service and that will be consumed by both Windows...
You may have a need to perform an action way off in the future based on a specific date and time. The future date could be a day, week, month, etc. The timers provided within the .NET Framework do not support this scenario; however, they do provide the core mechanism. The first step is choosing a timer. There is the System.Timers.Timer, System.Threading.Timer, and of course the System.Windows.Forms timer which is designed for Windows Forms applications. I chose the System.Threading.Timer, because...
Full .NET Archive