forked from fo-dicom/fo-dicom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fo-dicom.targets
31 lines (31 loc) · 1.18 KB
/
fo-dicom.targets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="Warn-FO-DICOM-Platform">
<Message Importance="high" Text="FO-DICOM native libraries require the target platform to be explicitely specified." />
<Message Importance="high" Text="Change '$(MSBuildProjectName)' Platform Target Build Project Property from '$(PlatformTarget)' to either x86 or x64 to remove this message." />
</Target>
<Choose>
<When Condition="'$(PlatformTarget)' == 'x64'">
<ItemGroup>
<Reference Include="Dicom.Native64">
<HintPath>$(MSBuildThisFileDirectory)\net40\Dicom.Native64.dll</HintPath>
</Reference>
</ItemGroup>
</When>
<When Condition="'$(PlatformTarget)' == 'x86'">
<ItemGroup>
<Reference Include="Dicom.Native">
<HintPath>$(MSBuildThisFileDirectory)\net40\Dicom.Native.dll</HintPath>
</Reference>
</ItemGroup>
</When>
<Otherwise>
<PropertyGroup>
<BuildDependsOn>
$(BuildDependsOn);
Warn-FO-DICOM-Platform
</BuildDependsOn>
</PropertyGroup>
</Otherwise>
</Choose>
</Project>