|
56 | 56 |
|
57 | 57 | <!-- First copy the nuspec template files to the build dir --> |
58 | 58 | <Copy SourceFiles="..\build\NEST.nuspec" DestinationFolder="$(BuildDir)" /> |
59 | | - <Copy SourceFiles="..\build\NEST.Signed.nuspec" DestinationFolder="$(BuildDir)" /> |
60 | | - <Copy SourceFiles="..\build\Nest.Connection.Thrift.nuspec" DestinationFolder="$(BuildDirSigned)" /> |
| 59 | + <Copy SourceFiles="..\build\NEST.Signed.nuspec" DestinationFolder="$(BuildDirSigned)" /> |
| 60 | + <Copy SourceFiles="..\build\Nest.Connection.Thrift.nuspec" DestinationFolder="$(BuildDir)" /> |
61 | 61 | <Copy SourceFiles="..\build\Nest.Connection.Thrift.Signed.nuspec" DestinationFolder="$(BuildDirSigned)" /> |
62 | 62 | <!-- Copy the source files to the package dir --> |
63 | 63 | <Copy SourceFiles="@(MainBinaries)" DestinationFolder="$(BuildDir)\lib\NET4\" /> |
|
73 | 73 |
|
74 | 74 | <!-- Create signed copies --> |
75 | 75 | <Exec WorkingDirectory="$(BuildDirSigned)" |
76 | | - Command='$(MSBuildProjectDirectory)\tools\ilmerge.exe $(<BuildDirSigned>)\lib\NET4\Nest.dll /keyfile:$(MSBuildProjectDirectory)\keys\keypair.snk /out:$(<BuildDirSigned>)\lib\NET4\Nest.dll /targetplatform:v4,"%ProgramFiles(x86)%\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0"' /> |
77 | | - <Exec WorkingDirectory="$(BuildDirSigned)" |
78 | | - Command='$(MSBuildProjectDirectory)\tools\ilmerge.exe $(<BuildDirSigned>)\lib\NET4\Nest.Connection.Thrift.dll /keyfile:$(MSBuildProjectDirectory)\keys\keypair.snk /out:$(<BuildDirSigned>)\lib\NET4\Nest.Connection.Thrift.dll /targetplatform:v4,"%ProgramFiles(x86)%\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0"' /> |
| 76 | + Command='$(MSBuildProjectDirectory)\tools\ilmerge.exe $(BuildDirSigned)\lib\NET4\Nest.dll /keyfile:$(MSBuildProjectDirectory)\keys\keypair.snk /out:$(BuildDirSigned)\lib\Nest.dll /targetplatform:v4,"%ProgramFiles(x86)%\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0"' /> |
| 77 | + <ItemGroup> |
| 78 | + <TmpSignedNestBinary Include="$(BuildDirSigned)\lib\Nest.*" /> |
| 79 | + </ItemGroup> |
| 80 | + <Copy SourceFiles="@(TmpSignedNestBinary)" DestinationFolder="$(BuildDirSigned)\lib\NET4\" /> |
| 81 | + <Delete Files="@(TmpSignedNestBinary)" /> |
79 | 82 |
|
| 83 | + <Exec WorkingDirectory="$(BuildDirSigned)" |
| 84 | + Command='$(MSBuildProjectDirectory)\tools\ilmerge.exe $(BuildDirSigned)\lib\NET4\Nest.Connection.Thrift.dll /keyfile:$(MSBuildProjectDirectory)\keys\keypair.snk /out:$(BuildDirSigned)\lib\Nest.Connection.Thrift.dll /targetplatform:v4,"%ProgramFiles(x86)%\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0"' /> |
| 85 | + <ItemGroup> |
| 86 | + <TmpSignedNestThriftBinary Include="$(BuildDirSigned)\lib\Nest.*" /> |
| 87 | + </ItemGroup> |
| 88 | + <Copy SourceFiles="@(TmpSignedNestThriftBinary)" DestinationFolder="$(BuildDirSigned)\lib\NET4\" /> |
| 89 | + <Delete Files="@(TmpSignedNestThriftBinary)" /> |
| 90 | + |
80 | 91 | <!-- insert the version number into the nuspec files --> |
81 | 92 | <XmlUpdate |
82 | 93 | Namespace="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd" |
|
91 | 102 | <XmlUpdate |
92 | 103 | Namespace="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd" |
93 | 104 | Prefix="n" |
94 | | - XmlFileName="$(BuildDir)\NEST.Signed.nuspec" |
| 105 | + XmlFileName="$(BuildDirSigned)\NEST.Signed.nuspec" |
95 | 106 | XPath="/n:package/n:metadata/n:version" |
96 | 107 | Value="%(AsmInfo.Version)" /> |
97 | 108 |
|
|
111 | 122 | <XmlUpdate |
112 | 123 | Namespace="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd" |
113 | 124 | Prefix="n" |
114 | | - XmlFileName="$(BuildDir)\Nest.Connection.Thrift.Signed.nuspec" |
| 125 | + XmlFileName="$(BuildDirSigned)\Nest.Connection.Thrift.Signed.nuspec" |
115 | 126 | XPath="/n:package/n:metadata/n:version" |
116 | 127 | Value="%(AsmInfo.Version)" /> |
117 | 128 |
|
|
0 commit comments