Skip to content
This repository was archived by the owner on Jun 22, 2023. It is now read-only.

Commit 1780281

Browse files
committed
Explicit error when net35-cf is unlikely to work.
Not sure if there's a nicer way to do this.
1 parent e4fec6a commit 1780281

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

GeoAPI/GeoAPI.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147
<None Include="$(SolutionDir)geoapi.snk" />
148148
</ItemGroup>
149149

150-
<Target Name="BeforeBuild">
151-
<Message Text="Building for '$(TargetFramework)'" />
150+
<Target Name="CheckNet35CompactFramework" BeforeTargets="ResolveAssemblyReferences">
151+
<Error Condition=" '$(TargetFramework)' == 'net35-cf' And !Exists('$(FrameworkPathOverride)\mscorlib.dll') " Text=".NET 3.5 Compact Framework reference assemblies must be installed. Expected to see $(FrameworkPathOverride)\mscorlib.dll." />
152152
</Target>
153153
</Project>

0 commit comments

Comments
 (0)