1313 <PropertyGroup >
1414 <Configuration Condition =" '$(Configuration)'==''" >Release</Configuration >
1515 <BuildDir >$(MSBuildProjectDirectory)\tmp</BuildDir >
16+ <BuildDirSigned >$(MSBuildProjectDirectory)\tmp-signed</BuildDirSigned >
1617 <SolutionFile >$(SrcDir)\Nest.sln</SolutionFile >
1718 </PropertyGroup >
1819
5657 <!-- First copy the nuspec template files to the build dir -->
5758 <Copy SourceFiles =" ..\build\NEST.nuspec" DestinationFolder =" $(BuildDir)" />
5859 <Copy SourceFiles =" ..\build\NEST.Signed.nuspec" DestinationFolder =" $(BuildDir)" />
59- <Copy SourceFiles =" ..\build\Nest.Connection.Thrift.nuspec" DestinationFolder =" $(BuildDir )" />
60- <Copy SourceFiles =" ..\build\Nest.Connection.Thrift.Signed.nuspec" DestinationFolder =" $(BuildDir )" />
60+ <Copy SourceFiles =" ..\build\Nest.Connection.Thrift.nuspec" DestinationFolder =" $(BuildDirSigned )" />
61+ <Copy SourceFiles =" ..\build\Nest.Connection.Thrift.Signed.nuspec" DestinationFolder =" $(BuildDirSigned )" />
6162 <!-- Copy the source files to the package dir -->
6263 <Copy SourceFiles =" @(MainBinaries)" DestinationFolder =" $(BuildDir)\lib\NET4\" />
6364 <Copy SourceFiles =" @(ThriftBinaries)" DestinationFolder =" $(BuildDir)\lib\NET4\" />
65+ <!-- Copy the source files to the package dir for the signed nugets -->
66+ <Copy SourceFiles =" @(MainBinaries)" DestinationFolder =" $(BuildDirSigned)\lib\NET4\" />
67+ <Copy SourceFiles =" @(ThriftBinaries)" DestinationFolder =" $(BuildDirSigned)\lib\NET4\" />
6468
6569 <!-- Get the version number of the main FV assembly to insert into the nuspec files -->
6670 <GetAssemblyIdentity AssemblyFiles =" $(BuildDir)\lib\NET4\Nest.dll" >
6771 <Output TaskParameter =" Assemblies" ItemName =" AsmInfo" />
6872 </GetAssemblyIdentity >
6973
70- <!-- ilmerge.exe Nest.dll /keyfile:PublicKey.snk /out:out\Nest.dll -->
71-
7274 <!-- Create signed copies -->
73-
74- <!-- <Exec WorkingDirectory="$(BuildDir)"
75- Command="$(MSBuildProjectDirectory)\tools\nuget.exe pack $(BuildDir)\NEST.nuspec" />-->
76-
77- <Exec WorkingDirectory =" $(BuildDir)"
78- Command =' $(MSBuildProjectDirectory)\tools\ilmerge.exe $(BuildDir)\lib\NET4\Nest.dll /keyfile:$(MSBuildProjectDirectory)\keys\public.snk /out:$(BuildDir)\lib\NET4\Nest.Signed.dll /targetplatform:v4,"%ProgramFiles(x86)%\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0" /delaysign' />
79-
80-
81- <Exec WorkingDirectory =" $(BuildDir)"
82- Command =' $(MSBuildProjectDirectory)\tools\ilmerge.exe $(BuildDir)\lib\NET4\Nest.Connection.Thrift.dll /keyfile:$(MSBuildProjectDirectory)\keys\public.snk /out:$(BuildDir)\lib\NET4\Nest.Connection.Thrift.Signed.dll /targetplatform:v4,"%ProgramFiles(x86)%\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0" /delaysign' />
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"' />
8379
8480 <!-- insert the version number into the nuspec files -->
8581 <XmlUpdate
9995 XPath =" /n:package/n:metadata/n:version"
10096 Value =" %(AsmInfo.Version)" />
10197
102- <Exec WorkingDirectory =" $(BuildDir )"
103- Command =" $(MSBuildProjectDirectory)\tools\nuget.exe pack $(BuildDir )\NEST.Signed.nuspec" />
98+ <Exec WorkingDirectory =" $(BuildDirSigned )"
99+ Command =" $(MSBuildProjectDirectory)\tools\nuget.exe pack $(BuildDirSigned )\NEST.Signed.nuspec" />
104100
105101 <XmlUpdate
106102 Namespace =" http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"
119115 XPath =" /n:package/n:metadata/n:version"
120116 Value =" %(AsmInfo.Version)" />
121117
122- <Exec WorkingDirectory =" $(BuildDir )"
123- Command =" $(MSBuildProjectDirectory)\tools\nuget.exe pack $(BuildDir )\Nest.Connection.Thrift.Signed.nuspec" />
118+ <Exec WorkingDirectory =" $(BuildDirSigned )"
119+ Command =" $(MSBuildProjectDirectory)\tools\nuget.exe pack $(BuildDirSigned )\Nest.Connection.Thrift.Signed.nuspec" />
124120
125121
126122
127123 <ItemGroup >
128124 <Packages Include =" $(BuildDir)\*.nupkg" />
125+ <PackagesSigned Include =" $(BuildDirSigned)\*.nupkg" />
129126 </ItemGroup >
130127 <Copy SourceFiles =" @(Packages)" DestinationFolder =" $(BuildDir)\..\_out" />
128+ <Copy SourceFiles =" @(PackagesSigned)" DestinationFolder =" $(BuildDirSigned)\..\_out" />
131129
132130 <RemoveDir Directories =" $(BuildDir)" />
131+ <RemoveDir Directories =" $(BuildDirSigned)" />
133132 </Target >
134133</Project >
0 commit comments