Svcutil.exe for .NET 4.0?

I had the same issue. If your project is set to use the .NET 4.0 Framework, you must choose the right version of SvcUtil.exe, or it will throw an error: “Could not load…” If you look in “Microsoft SDKs\Windows\v6.0A\Bin”, you will see that the version of that exe is “3.0.4506.2152”. The version of SvcUtil.exe in … Read more

Best ORM to use with C# 4.0 [closed]

UPDATE 2016 Six years later things are VERY different. NHibernate is all but abandoned, other alternatives were abandoned (eg Subsonic), Entity Framework is perhaps the most common full-featured ORM, and people have been moving to micro ORMs like Dapper for years, to map from queries to objects with a minimum of overhead. The application scenarios … Read more

Building .NET 4 projects with Nant

2010 April 15, … Update to above correct answer from Eugene, after .net 4 and vs2010 was released. I downloaded vs2010 and .net 4 runtime. The production version seems to be v4.30319 ie (C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319) After reviewing http://paigecsharp.blogspot.com/2009/08/nant-net-framework-40-configuration.html, … I pasted in the text and changed all text from v4.0.20506 to v4.30319 an added text to … Read more

FxCop for .NET 4.0

The latest version of FXCop (v10) is bundled with the install of the latest Windows SDK for Windows 7 and .Net 4, released on 5/19/2010. From Microsoft – Full ISOs Once the SDK is installed you can find the FXCop installer EXE under %programfiles%\Microsoft SDKs\Windows\v7.1\Bin\FXCop (This assumes you kept the default install directory when installing … Read more

What is a practical usage of Code Contracts in .NET 4.0?

From The Code Contracts User Manual: Contracts allow you to express preconditions, postconditions and object invariants in your code for runtime checking, static analysis, and documentation. Code Contracts are used for static verification; imagine if – at compile time – you caught not only syntax errors but also logic errors. This is the vision of … Read more

Why is the binary output not equal when compiling again?

ANOTHER UPDATE: Since 2015 the compiler team has been making an effort to get sources of non-determinism out of the compiler toolchain, so that identical inputs really do produce identical outputs. See the “Concept-determinism” tag on the Roslyn github for more details. UPDATE: This question was the subject of my blog in May 2012. Thanks … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)