summaryrefslogtreecommitdiffstats
path: root/tools/DotNetOpenAuth.targets
diff options
context:
space:
mode:
Diffstat (limited to 'tools/DotNetOpenAuth.targets')
-rw-r--r--tools/DotNetOpenAuth.targets3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/DotNetOpenAuth.targets b/tools/DotNetOpenAuth.targets
index 235cf4b..6203c18 100644
--- a/tools/DotNetOpenAuth.targets
+++ b/tools/DotNetOpenAuth.targets
@@ -5,6 +5,7 @@
<PropertyGroup>
<DefineConstants Condition=" '$(SignAssembly)' == 'true' ">$(DefineConstants);StrongNameSigned</DefineConstants>
+ <DefineConstants Condition=" '$(ClrVersion)' == '4' ">$(DefineConstants);CLR4</DefineConstants>
</PropertyGroup>
<!-- This forces a build break when Code Contracts are not installed. -->
@@ -27,7 +28,7 @@
<Target Name="CreatePublicAccessors">
<PropertyGroup>
<VSVersionForTargetFramework>v10.0</VSVersionForTargetFramework>
- <VSVersionForTargetFramework Condition=" '$(TargetFrameworkVersion)' != 'v4.0' ">v9.0</VSVersionForTargetFramework>
+ <VSVersionForTargetFramework Condition=" '$(ClrVersion)' != '4' ">v9.0</VSVersionForTargetFramework>
</PropertyGroup>
<Publicize
Condition=" '%(ReferencePath.Shadow)' == 'true' "