|
9 | 9 | <Platform Condition="'$(Platform)' == ''">x86</Platform>
|
10 | 10 | <Configuration Condition="'$(Configuration)' == ''">Debug</Configuration>
|
11 | 11 | <MSpecOptions Condition="'$(MSpecOptions)' == ''"></MSpecOptions>
|
12 |
| - <KeyFileProperty Condition="'$(SignAssembly)' == 'true'">KeyOriginatorFile=Shared\clrzmq.snk</KeyFileProperty> |
| 12 | + <KeyFile>Shared\clrzmq.snk</KeyFile> |
| 13 | + <KeyFileProperty Condition="'$(SignAssembly)' == 'true'">KeyOriginatorFile=$(KeyFile)</KeyFileProperty> |
13 | 14 | <OperatingPlatform Condition="'$(OperatingPlatform)' == ''">Windows</OperatingPlatform>
|
| 15 | + <NetFramework Condition="'$(NetFramework)' == ''">NET</NetFramework> |
14 | 16 | <SolutionSuffix Condition="'$(OperatingPlatform)' == 'Unix'">.Mono</SolutionSuffix>
|
15 | 17 | </PropertyGroup>
|
16 | 18 |
|
|
22 | 24 | <Optimize Condition="'$(Configuration)' != 'Debug'">true</Optimize>
|
23 | 25 |
|
24 | 26 | <Constants Condition="'$(OperatingPlatform)' == 'Windows'"></Constants>
|
25 |
| - <Constants Condition="'$(OperatingPlatform)' == 'Unix'">UNIX</Constants> |
| 27 | + <Constants Condition="'$(OperatingPlatform)' == 'Unix'">UNIX;MONO</Constants> |
26 | 28 | </PropertyGroup>
|
27 | 29 |
|
28 | 30 | <ItemGroup>
|
|
46 | 48 | </ItemGroup>
|
47 | 49 |
|
48 | 50 | <ItemGroup>
|
49 |
| - <BuildOutput Include="$(BuildDir)\*.*" /> |
50 |
| - |
51 | 51 | <ZeroMQSources Include="ZeroMQ\**\*.cs;Shared\*.cs" Exclude="ZeroMQ\**\Platform.*.cs" />
|
52 | 52 | <ZeroMQSources Include="ZeroMQ\**\Platform.$(OperatingPlatform).cs" />
|
| 53 | + <ZeroMQSources Include="ZeroMQ\**\Platform.$(NetFramework).cs" /> |
53 | 54 |
|
54 | 55 | <Resources Include="$(LibDir)\x64\libzmq.dll">
|
55 | 56 | <Platform>x64</Platform>
|
|
90 | 91 | </Target>
|
91 | 92 |
|
92 | 93 | <Target Name="Package">
|
| 94 | + <RemoveDir Directories="$(BuildDir)" /> |
| 95 | + <MakeDir Directories="$(BuildDir)" /> |
| 96 | + |
93 | 97 | <Csc Sources="@(ZeroMQSources)"
|
94 | 98 | DocumentationFile="$(BuildDir)\clrzmq.xml"
|
95 | 99 | OutputAssembly="$(BuildDir)\clrzmq.dll"
|
|
98 | 102 | DebugType="$(DebugType)"
|
99 | 103 | PdbFile="$(BuildDir)\clrzmq.pdb"
|
100 | 104 | Optimize="$(Optimize)"
|
101 |
| - KeyFile="Shared\clrzmq.snk" |
| 105 | + KeyFile="$(KeyFile)" |
102 | 106 | DefineConstants="$(Constants)"
|
103 | 107 | />
|
104 | 108 |
|
| 109 | + <ItemGroup> |
| 110 | + <BuildOutput Include="$(BuildDir)\*.*;$(SolutionDir)\*.txt" /> |
| 111 | + </ItemGroup> |
| 112 | + |
105 | 113 | <RemoveDir Directories="$(PackageDir)" />
|
106 | 114 | <MakeDir Directories="$(PackageDir)" />
|
107 | 115 | <Copy SourceFiles="@(BuildOutput)" DestinationFolder="$(PackageDir)" ContinueOnError="false" />
|
|
0 commit comments