I just updated visual studio 2010 and installed msi code contracts. When I try to use it, I get a compiler error that the dll system.diagnostics.contracts.contract exists in both v3.5 and v4. Does anyone know what I have to do to solve this? Thank.
If you are updating a .NET 3.5 project that uses contracts for .NET 4.0, be sure to remove the assembly reference Microsoft.Contracts.
Microsoft.Contracts
Microsoft.Contracts .NET 2.0 3.5, .NET 4.0 mscorlib, . System.Diagnostics.Contracts, , , , .
mscorlib
System.Diagnostics.Contracts
, , . , 4.5 .
Source: https://habr.com/ru/post/1759999/More articles:Assigning a Gettext String to a Class - phpVisiting all Sparse Matrix entries in org.apache.commons.math.linear - javaUsing cURL for Amazon Associates reports ... maybe? - phpBitten by rounding rounding? - c #CruiseControl.NET source control provider not detecting modifications when using Mercurial - mercurialОтображать информацию о файле журнала на веб-странице с помощью ASP.NET MVC paging - c#Service Reporting - sqlDate format with all uppercase letters - phpCreate a git branch from the selected commits to another branch - gitIs this a "big" GraphViz chart and how to fix it? - optimizationAll Articles