@@ -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 ] )
@@ -1031,9 +1031,13 @@ TeamCitySourceDependency CreateSourceDependencyFromDefintion( DependencyDefiniti
10311031 new TeamCityEngineeringCommandBuildStep (
10321032 $ "Bump{ bumpedProjectId . Split ( '_' ) . Last ( ) } ",
10331033 $ "Bump version of { bumpedProjectName } ",
1034- "bump" ) { WorkingDirectory = $ "source-dependencies/{ bumpedProjectName } " } ) ;
1034+ "bump" ,
1035+ areCustomArgumentsAllowed : true )
1036+ {
1037+ WorkingDirectory = $ "source-dependencies/{ bumpedProjectName } "
1038+ } ) ;
10351039
1036- consolidatedVersionBumpSourceDependencies . Add ( CreateSourceDependencyFromDefintion ( dependencyDefinition ) ) ;
1040+ consolidatedVersionBumpSourceDependencies . Add ( CreateSourceDependencyFromDefinition ( dependencyDefinition ) ) ;
10371041
10381042 if ( dependencyDefinition . VcsRepository . DefaultBranchParameter != VcsRepository . DefaultDefaultBranchParameter )
10391043 {
@@ -1104,7 +1108,7 @@ bool TryAddPreOrPostDeploymentBuildConfiguration(
11041108 continue ;
11051109 }
11061110
1107- sourceDependencies . Add ( CreateSourceDependencyFromDefintion ( projectDependencyDefinition ) ) ;
1111+ sourceDependencies . Add ( CreateSourceDependencyFromDefinition ( projectDependencyDefinition ) ) ;
11081112
11091113 if ( projectDependencyDefinition . VcsRepository . DefaultBranchParameter != VcsRepository . DefaultDefaultBranchParameter )
11101114 {
@@ -1132,7 +1136,8 @@ bool TryAddPreOrPostDeploymentBuildConfiguration(
11321136 $ "{ objectName } _{ projectRelativeId } ",
11331137 $ "{ commandName } deployment of { project . Name } ",
11341138 command ,
1135- "--configuration Public --buildNumber %build.number% --buildType %system.teamcity.buildType.id% --use-local-dependencies" )
1139+ "--configuration Public --buildNumber %build.number% --buildType %system.teamcity.buildType.id% --use-local-dependencies" ,
1140+ areCustomArgumentsAllowed : true )
11361141 {
11371142 WorkingDirectory = $ "source-dependencies/{ project . Name } "
11381143 } ) ;
@@ -1173,7 +1178,7 @@ bool TryAddPreOrPostDeploymentBuildConfiguration(
11731178 }
11741179 }
11751180
1176- sourceDependencies . Add ( CreateSourceDependencyFromDefintion ( context . Product . DependencyDefinition ) ) ;
1181+ sourceDependencies . Add ( CreateSourceDependencyFromDefinition ( context . Product . DependencyDefinition ) ) ;
11771182
11781183 steps . Add (
11791184 new TeamCityEngineeringCommandBuildStep (
@@ -1234,13 +1239,16 @@ bool TryAddPreOrPostDeploymentBuildConfiguration(
12341239 var publicNuGetDeploymentCiId = $ "{ consolidatedProjectIdPrefix } { MarkNuGetObjectId ( publicDeploymentObjectName ) } ";
12351240
12361241 var nuGetPublicDeploymentSteps = new TeamCityBuildStep [ ] { new TeamCityEngineeringPublishBuildStep ( publicConfiguration ) } ;
1237-
1242+
1243+ // TODO: Only Public builds of dependencies that define version need to be included.
1244+ // Here we include all Public builds which will cause download of all artifacts.
12381245 var nuGetPublicDeploymentDependencies =
12391246 nuGetPublicBuildDependencies
12401247 . Select (
12411248 d => new TeamCitySnapshotDependency (
12421249 d . ObjectId . Replace ( $ "_{ publicBuildObjectName } ", $ "_{ publicDeploymentObjectName } ", StringComparison . Ordinal ) ,
1243- true ) )
1250+ true ) )
1251+ . Concat ( nuGetPublicBuildDependencies )
12441252 . Append ( new ( publicNuGetBuildCiId , true , nuGetBuildArtifactRules ) ) ;
12451253
12461254 nuGetConfigurations . Add (
0 commit comments