Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Microsoft.CodeContracts.targets reverts to .NET v3.5 reference assemblies for 4.5.2 #31

Open
jbcutting opened this issue Apr 15, 2015 · 0 comments

Comments

@jbcutting
Copy link

There's no When block for .NET 4.5.2, so the CodeContractsReferenceAssemblyLibPath falls back to v3.5 contracts for projects that target 4.5.2. Consider adding a block for 4.5.2, a StartsWith('4.5') check can work for any 4.5 release, defaulting to 4.5 rather than 3.5, or using Substring() on the TargetFrameworkVersion to avoid hard-coded versions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant