@@ -812,7 +812,7 @@ bool TryPopulateBuildConfigurations(
812812 ] ;
813813
814814 var artifactRules = string . Join ( "\\ n" , rules ) ;
815-
815+
816816 nuGetDependencies . Add (
817817 new (
818818 buildConfiguration . BuildConfigurationId ,
@@ -998,7 +998,7 @@ bool TryPopulateBuildConfigurations(
998998 TeamCitySourceDependency CreateSourceDependency ( string vcsProjectRootId , string projectName )
999999 => new ( vcsProjectRootId , true , $ "+:. => { context . Product . SourceDependenciesDirectory } /{ projectName } " ) ;
10001000
1001- TeamCitySourceDependency CreateSourceDependencyFromDefintion ( DependencyDefinition dependencyDefinition )
1001+ TeamCitySourceDependency CreateSourceDependencyFromDefinition ( DependencyDefinition dependencyDefinition )
10021002 => CreateSourceDependency ( GetVcsRootId ( dependencyDefinition ) , dependencyDefinition . Name ) ;
10031003
10041004 foreach ( var buildConfiguration in buildConfigurationsByKind [ publicBuildObjectName ] )
@@ -1033,7 +1033,7 @@ TeamCitySourceDependency CreateSourceDependencyFromDefintion( DependencyDefiniti
10331033 $ "Bump version of { bumpedProjectName } ",
10341034 "bump" ) { WorkingDirectory = $ "source-dependencies/{ bumpedProjectName } " } ) ;
10351035
1036- consolidatedVersionBumpSourceDependencies . Add ( CreateSourceDependencyFromDefintion ( dependencyDefinition ) ) ;
1036+ consolidatedVersionBumpSourceDependencies . Add ( CreateSourceDependencyFromDefinition ( dependencyDefinition ) ) ;
10371037
10381038 if ( dependencyDefinition . VcsRepository . DefaultBranchParameter != VcsRepository . DefaultDefaultBranchParameter )
10391039 {
@@ -1104,7 +1104,7 @@ bool TryAddPreOrPostDeploymentBuildConfiguration(
11041104 continue ;
11051105 }
11061106
1107- sourceDependencies . Add ( CreateSourceDependencyFromDefintion ( projectDependencyDefinition ) ) ;
1107+ sourceDependencies . Add ( CreateSourceDependencyFromDefinition ( projectDependencyDefinition ) ) ;
11081108
11091109 if ( projectDependencyDefinition . VcsRepository . DefaultBranchParameter != VcsRepository . DefaultDefaultBranchParameter )
11101110 {
@@ -1173,7 +1173,7 @@ bool TryAddPreOrPostDeploymentBuildConfiguration(
11731173 }
11741174 }
11751175
1176- sourceDependencies . Add ( CreateSourceDependencyFromDefintion ( context . Product . DependencyDefinition ) ) ;
1176+ sourceDependencies . Add ( CreateSourceDependencyFromDefinition ( context . Product . DependencyDefinition ) ) ;
11771177
11781178 steps . Add (
11791179 new TeamCityEngineeringCommandBuildStep (
@@ -1234,13 +1234,16 @@ bool TryAddPreOrPostDeploymentBuildConfiguration(
12341234 var publicNuGetDeploymentCiId = $ "{ consolidatedProjectIdPrefix } { MarkNuGetObjectId ( publicDeploymentObjectName ) } ";
12351235
12361236 var nuGetPublicDeploymentSteps = new TeamCityBuildStep [ ] { new TeamCityEngineeringPublishBuildStep ( publicConfiguration ) } ;
1237-
1237+
1238+ // TODO: Only Public builds of dependencies that define version need to be included.
1239+ // Here we include all Public builds which will cause download of all artifacts.
12381240 var nuGetPublicDeploymentDependencies =
12391241 nuGetPublicBuildDependencies
12401242 . Select (
12411243 d => new TeamCitySnapshotDependency (
12421244 d . ObjectId . Replace ( $ "_{ publicBuildObjectName } ", $ "_{ publicDeploymentObjectName } ", StringComparison . Ordinal ) ,
1243- true ) )
1245+ true ) )
1246+ . Concat ( nuGetPublicBuildDependencies )
12441247 . Append ( new ( publicNuGetBuildCiId , true , nuGetBuildArtifactRules ) ) ;
12451248
12461249 nuGetConfigurations . Add (
0 commit comments