31
31
AssemblyVersion =" $(Version)"
32
32
AssemblyFileVersion =" $(Version)" />
33
33
<AssemblyInfo CodeLanguage =" CS"
34
- OutputFile =" $(SrcDir)\Nest.Connection.Thrift\Properties\AssemblyInfo.cs"
35
- AssemblyTitle =" Nest.Connection.Thrift"
36
- AssemblyDescription =" Thrift connection support for NEST Elasticsearch client"
37
- AssemblyCompany =" "
38
- AssemblyProduct =" Nest.Connection.Thrift"
39
- AssemblyCopyright =" Martijn Laarman MIT LICENSED"
40
- ComVisible =" false"
41
- CLSCompliant =" true"
42
- Guid =" 4d165338-2060-4641-8be6-b7aacbdee52d"
43
-
34
+ OutputFile =" $(SrcDir)\Nest.Connection.Thrift\Properties\AssemblyInfo.cs"
35
+ AssemblyTitle =" Nest.Connection.Thrift"
36
+ AssemblyDescription =" Thrift connection support for NEST Elasticsearch client"
37
+ AssemblyCompany =" "
38
+ AssemblyProduct =" Nest.Connection.Thrift"
39
+ AssemblyCopyright =" Martijn Laarman MIT LICENSED"
40
+ ComVisible =" false"
41
+ CLSCompliant =" true"
42
+ Guid =" 4d165338-2060-4641-8be6-b7aacbdee52d"
43
+
44
44
AssemblyVersion =" $(Version)"
45
45
AssemblyFileVersion =" $(Version)" />
46
- <AssemblyInfo CodeLanguage =" CS"
47
- OutputFile =" $(SrcDir)\Nest.Dsl.Factory\Properties\AssemblyInfo.cs"
48
- AssemblyTitle =" Nest.Dsl.Factory"
49
- AssemblyDescription =" Nest already has a complete lambda DSL, this package introduces a second DSL that's a port of the Java DSL"
50
- AssemblyCompany =" "
51
- AssemblyProduct =" Nest.Dsl.Factory"
52
- AssemblyCopyright =" Martijn Laarman MIT LICENSED"
53
- ComVisible =" false"
54
- CLSCompliant =" true"
55
- Guid =" 665cc582-c91f-4f6c-924a-614289fa9449"
56
-
57
- AssemblyVersion =" $(Version)"
58
- AssemblyFileVersion =" $(Version)" />
59
46
60
47
<MSBuild Projects =" $(SolutionFile)" Properties =" Configuration=$(Configuration)" />
61
48
</Target >
64
51
<ItemGroup >
65
52
<MainBinaries Include =" $(SrcDir)\**\Nest\bin\$(Configuration)\**\*.*" />
66
53
<ThriftBinaries Include =" $(SrcDir)\**\Nest.Connection.Thrift\bin\$(Configuration)\**\*.*" />
67
- <FactoryDslBinaries Include =" $(SrcDir)\**\Nest.Dsl.Factory\bin\$(Configuration)\**\*.*" />
68
54
</ItemGroup >
69
55
70
56
<!-- First copy the nuspec template files to the build dir -->
71
57
<Copy SourceFiles =" ..\build\NEST.nuspec" DestinationFolder =" $(BuildDir)" />
58
+ <Copy SourceFiles =" ..\build\NEST.Signed.nuspec" DestinationFolder =" $(BuildDir)" />
72
59
<Copy SourceFiles =" ..\build\Nest.Connection.Thrift.nuspec" DestinationFolder =" $(BuildDir)" />
73
- <Copy SourceFiles =" ..\build\Nest.Dsl.Factory.nuspec" DestinationFolder =" $(BuildDir)" />
74
-
60
+ <Copy SourceFiles =" ..\build\Nest.Connection.Thrift.Signed.nuspec" DestinationFolder =" $(BuildDir)" />
75
61
<!-- Copy the source files to the package dir -->
76
62
<Copy SourceFiles =" @(MainBinaries)" DestinationFolder =" $(BuildDir)\lib\NET4\" />
77
63
<Copy SourceFiles =" @(ThriftBinaries)" DestinationFolder =" $(BuildDir)\lib\NET4\" />
78
- <Copy SourceFiles =" @(FactoryDslBinaries)" DestinationFolder =" $(BuildDir)\lib\NET4\" />
79
64
80
65
<!-- Get the version number of the main FV assembly to insert into the nuspec files -->
81
66
<GetAssemblyIdentity AssemblyFiles =" $(BuildDir)\lib\NET4\Nest.dll" >
82
67
<Output TaskParameter =" Assemblies" ItemName =" AsmInfo" />
83
68
</GetAssemblyIdentity >
84
69
70
+ <!-- ilmerge.exe Nest.dll /keyfile:PublicKey.snk /out:out\Nest.dll -->
71
+
72
+ <!-- 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' />
83
+
85
84
<!-- insert the version number into the nuspec files -->
86
85
<XmlUpdate
87
86
Namespace =" http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"
91
90
Value =" %(AsmInfo.Version)" />
92
91
93
92
<Exec WorkingDirectory =" $(BuildDir)"
94
- Command =" $(MSBuildProjectDirectory)\nuget.exe pack $(BuildDir)\NEST.nuspec" />
95
-
96
- <XmlUpdate
97
- Namespace =" http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"
98
- Prefix =" n"
99
- XmlFileName =" $(BuildDir)\Nest.Connection.Thrift.nuspec"
100
- XPath =" /n:package/n:metadata/n:version"
101
- Value =" %(AsmInfo.Version)" />
102
-
103
- <Exec WorkingDirectory =" $(BuildDir)"
104
- Command =" $(MSBuildProjectDirectory)\nuget.exe pack $(BuildDir)\Nest.Connection.Thrift.nuspec" />
93
+ Command =" $(MSBuildProjectDirectory)\tools\nuget.exe pack $(BuildDir)\NEST.nuspec" />
105
94
106
95
<XmlUpdate
107
96
Namespace =" http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"
108
97
Prefix =" n"
109
- XmlFileName =" $(BuildDir)\Nest.Dsl.Factory .nuspec"
98
+ XmlFileName =" $(BuildDir)\NEST.Signed .nuspec"
110
99
XPath =" /n:package/n:metadata/n:version"
111
100
Value =" %(AsmInfo.Version)" />
112
101
113
102
<Exec WorkingDirectory =" $(BuildDir)"
114
- Command =" $(MSBuildProjectDirectory)\nuget.exe pack $(BuildDir)\Nest.Dsl.Factory.nuspec" />
103
+ Command =" $(MSBuildProjectDirectory)\tools\nuget.exe pack $(BuildDir)\NEST.Signed.nuspec" />
104
+
105
+ <XmlUpdate
106
+ Namespace =" http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"
107
+ Prefix =" n"
108
+ XmlFileName =" $(BuildDir)\Nest.Connection.Thrift.nuspec"
109
+ XPath =" /n:package/n:metadata/n:version"
110
+ Value =" %(AsmInfo.Version)" />
111
+
112
+ <Exec WorkingDirectory =" $(BuildDir)"
113
+ Command =" $(MSBuildProjectDirectory)\tools\nuget.exe pack $(BuildDir)\Nest.Connection.Thrift.nuspec" />
114
+
115
+ <XmlUpdate
116
+ Namespace =" http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"
117
+ Prefix =" n"
118
+ XmlFileName =" $(BuildDir)\Nest.Connection.Thrift.Signed.nuspec"
119
+ XPath =" /n:package/n:metadata/n:version"
120
+ Value =" %(AsmInfo.Version)" />
121
+
122
+ <Exec WorkingDirectory =" $(BuildDir)"
123
+ Command =" $(MSBuildProjectDirectory)\tools\nuget.exe pack $(BuildDir)\Nest.Connection.Thrift.Signed.nuspec" />
124
+
125
+
115
126
116
127
<ItemGroup >
117
128
<Packages Include =" $(BuildDir)\*.nupkg" />
118
129
</ItemGroup >
119
- <Copy SourceFiles =" @(Packages)" DestinationFolder =" $(BuildDir)\..\" />
120
-
130
+ <Copy SourceFiles =" @(Packages)" DestinationFolder =" $(BuildDir)\..\_out " />
131
+
121
132
<RemoveDir Directories =" $(BuildDir)" />
122
133
</Target >
123
134
</Project >
0 commit comments