10
10
BuildCiSign;
11
11
BuildMsBuildTask;
12
12
CategorizeProjects;
13
- GetScopedProjects;
13
+ <!-- GetScopedProjects;-->
14
14
<!-- GetProjectReferences; -->
15
15
</PreBuildStaticAnalysisTargets >
16
16
</PropertyGroup >
20
20
GetScopedProjects;
21
21
</PreBuildCategorizePrjectTargets >
22
22
</PropertyGroup >
23
+
23
24
<PropertyGroup >
24
25
<BuildTraversedProjectsDependsOn >
25
26
PreBuildStaticAnalysis;
26
27
RestoreLatestProjects;
27
28
BuildLatestProjects;
28
- PreSign ;
29
+ Package ;
29
30
</BuildTraversedProjectsDependsOn >
30
31
<RestoreTraversedProjectsDependsOn >
32
+ CategorizeProjects;
31
33
RestoreLatestProjects;
32
34
</RestoreTraversedProjectsDependsOn >
33
35
<CleanTraversedProjectsDependsOn >
36
+ CategorizeProjects;
34
37
CleanLatestProjects;
35
38
CleanSDKPackageFiles
36
39
</CleanTraversedProjectsDependsOn >
37
40
</PropertyGroup >
38
41
<PropertyGroup >
39
42
<RunTestProjectsDependsOn >
43
+ PreBuildStaticAnalysis;
44
+ RestoreLatestProjects;
45
+ BuildLatestProjects;
40
46
Test
41
47
</RunTestProjectsDependsOn >
42
- <RunSignDependsOn >
43
- PreSign
44
- </RunSignDependsOn >
48
+
49
+ <SignNugetDependsOn >
50
+ PreBuildStaticAnalysis;
51
+ RestoreLatestProjects;
52
+ BuildLatestProjects;
53
+ Test;
54
+ PreSign;
55
+ Package;
56
+ </SignNugetDependsOn >
57
+
58
+ <PublishNugetDependsOn >
59
+ PreBuildStaticAnalysis;
60
+ RestoreLatestProjects;
61
+ BuildLatestProjects;
62
+ Test;
63
+ PreSign;
64
+ Package;
65
+ PublishingNuget
66
+ </PublishNugetDependsOn >
67
+
45
68
</PropertyGroup >
46
69
47
- <Target Name =" CleanLatestProjects" DependsOnTargets = " $(PreBuildCategorizePrjectTargets) " >
70
+ <Target Name =" CleanLatestProjects" >
48
71
<PropertyGroup >
49
72
<LatestProjectDefaultCleanTarget Condition =" '$(LatestProjectDefaultCleanTarget)' == '' " >Clean</LatestProjectDefaultCleanTarget >
50
73
</PropertyGroup >
116
139
117
140
<Target Name =" Test" >
118
141
<Message Text =" Executing Tests......" />
142
+
143
+
119
144
<ItemGroup >
120
145
<FinalTestsToRun Include =" @(SDKTestProject)" />
121
146
<FinalTestsToRun Remove =" @(DoNotRunTests)" />
142
167
<Message Text =" Built Nugets @(SdkNuGetPackages)" />
143
168
</Target >
144
169
145
- <Target Name =" PublishNuget " >
170
+ <Target Name =" PublishingNuget " >
146
171
<Error Condition =" ('$(NugetPackageName)' == '') " Text =" Please Provide Package Name that has to be published" />
147
172
<Error Condition =" ('$(NugetPackageName)' == '') AND ('$(Scope)' == '' OR '$(Scope)' == 'all') " Text =" Publishing nuget package without specifying scope or packageName has now been disabled" />
148
173
<Error Condition =" '$(NuGetKey)' == '' " Text =" You must provide the NuGetKey parameter to the build: /p:NuGetKey=YOUR_PUBLISHING_KEY" />
176
201
<ItemGroup >
177
202
<KVSamples Include =" $(LibrarySourceFolder)\SDKs\KeyVault\dataPlane\Microsoft.Azure.KeyVault.Samples\**\*.*csproj" />
178
203
</ItemGroup >
204
+
205
+
179
206
<ItemGroup Condition =" '$(Scope)' != 'All'" >
180
207
<ScopedProjects Include =" $(LibrarySourceFolder)\$(Scope)\**\*.csproj" Exclude =" $(LibrarySourceFolder)\$(Scope)\*Tests*\*.Test*.csproj" />
181
208
<ScopedTestProjects Include =" $(LibrarySourceFolder)\$(Scope)\*Test*\*.Test*.csproj" />
182
209
</ItemGroup >
183
- <ItemGroup >
184
- <SDKProject Include =" %(ScopedProjects.Identity)" Condition = " '%(ScopedProjects.ProjectType)' != 'Test' and '%(ScopedProjects.ExcludeFromBuild)' != 'true' " />
185
- <ScopedTestProjects Include =" %(ScopedTestProjects.Identity)" Condition = " ('%(ScopedTestProjects.ProjectType)' == 'Test' and '%(ScopedTestProjects.ExcludeFromBuild)' != 'true') " />
210
+ <ItemGroup Condition = " '$(Scope)' != 'All' " >
211
+ <SDKProject Include =" %(ScopedProjects.Identity)" />
212
+ <SDKTestProject Include =" %(ScopedTestProjects.Identity)" />
186
213
</ItemGroup >
187
214
<Message Text =" Categorized SDK Scoped Projects ..... @(ScopedProjects)" Condition =" '$(Scope)' != 'All'" />
188
215
<Message Text =" Categorized Test Scoped Projects ..... @(ScopedTestProjects)" Condition =" '$(Scope)' != 'All'" />
204
231
<!-- Do not delete-->
205
232
<Target Name =" PreBuildStaticAnalysis" DependsOnTargets =" $(PreBuildStaticAnalysisTargets)" />
206
233
</Project >
234
+
235
+ <!--
236
+ <SDKProject Include="%(ScopedProjects.Identity)" Condition=" '%(ScopedProjects.ProjectType)' != 'Test' and '%(ScopedProjects.ExcludeFromBuild)' != 'true' "/>
237
+ <ScopedTestProjects Include="%(ScopedTestProjects.Identity)" Condition=" ('%(ScopedTestProjects.ProjectType)' == 'Test' and '%(ScopedTestProjects.ExcludeFromBuild)' != 'true') "/>
238
+ -->
0 commit comments