@@ -266,16 +266,16 @@ Task("Copy-Files")
266
266
PublishILRepackedGitVersionExe ( false , parameters . Paths . Directories . ArtifactsBinFullFx , ilMergeDir , cmdlineDir , parameters . Configuration , parameters . FullFxVersion ) ;
267
267
268
268
// Vsix
269
- var tfsPath = new DirectoryPath ( "./src/GitVersionTfsTask/GitVersionTask" ) ;
270
- EnsureDirectoryExists ( tfsPath ) ;
271
- CopyFileToDirectory ( portableDir + "/" + "LibGit2Sharp.dll.config" , tfsPath ) ;
272
- CopyFileToDirectory ( portableDir + "/" + "GitVersion.exe" , tfsPath ) ;
273
- CopyDirectory ( portableDir . Combine ( "lib" ) , tfsPath . Combine ( "lib" ) ) ;
269
+ var vsixPath = new DirectoryPath ( "./src/GitVersionTfsTask/GitVersionTask" ) ;
270
+ EnsureDirectoryExists ( vsixPath ) ;
271
+ CopyFileToDirectory ( portableDir + "/" + "LibGit2Sharp.dll.config" , vsixPath ) ;
272
+ CopyFileToDirectory ( portableDir + "/" + "GitVersion.exe" , vsixPath ) ;
273
+ CopyDirectory ( portableDir . Combine ( "lib" ) , vsixPath . Combine ( "lib" ) ) ;
274
274
275
275
// Vsix dotnet core
276
- var tfsCoreFxPath = new DirectoryPath ( "./src/GitVersionTfsTask/GitVersionNetCoreTask" ) ;
277
- EnsureDirectoryExists ( tfsCoreFxPath ) ;
278
- CopyDirectory ( coreFxDir , tfsCoreFxPath . Combine ( "netcore" ) ) ;
276
+ var vsixCoreFxPath = new DirectoryPath ( "./src/GitVersionTfsTask/GitVersionNetCoreTask" ) ;
277
+ EnsureDirectoryExists ( vsixCoreFxPath ) ;
278
+ CopyDirectory ( coreFxDir , vsixCoreFxPath . Combine ( "netcore" ) ) ;
279
279
280
280
// Ruby Gem
281
281
var gemPath = new DirectoryPath ( "./src/GitVersionRubyGem/bin" ) ;
@@ -285,7 +285,7 @@ Task("Copy-Files")
285
285
CopyDirectory ( portableDir . Combine ( "lib" ) , gemPath . Combine ( "lib" ) ) ;
286
286
} ) ;
287
287
288
- Task( "Pack-Tfs " )
288
+ Task( "Pack-Vsix " )
289
289
. IsDependentOn ( "Copy-Files" )
290
290
. Does < BuildParameters > ( ( parameters ) =>
291
291
{
@@ -304,8 +304,8 @@ Task("Pack-Tfs")
304
304
ReplaceTextInFile ( new FilePath ( workDir + "/vss-extension.netcore.json" ) , "$visibility$" , visibility ) ;
305
305
306
306
// update version number
307
- ReplaceTextInFile ( new FilePath ( workDir + "/vss-extension.mono.json" ) , "$version$" , parameters . Version . TfxVersion ) ;
308
- ReplaceTextInFile ( new FilePath ( workDir + "/vss-extension.netcore.json" ) , "$version$" , parameters . Version . TfxVersion ) ;
307
+ ReplaceTextInFile ( new FilePath ( workDir + "/vss-extension.mono.json" ) , "$version$" , parameters . Version . VsixVersion ) ;
308
+ ReplaceTextInFile ( new FilePath ( workDir + "/vss-extension.netcore.json" ) , "$version$" , parameters . Version . VsixVersion ) ;
309
309
UpdateTaskVersion ( new FilePath ( workDir + "/GitVersionTask/task.json" ) , taskIdFullFx , parameters . Version . GitVersion ) ;
310
310
UpdateTaskVersion ( new FilePath ( workDir + "/GitVersionNetCoreTask/task.json" ) , taskIdCoreFx , parameters . Version . GitVersion ) ;
311
311
@@ -463,7 +463,7 @@ Task("Docker-Test")
463
463
} ) ;
464
464
465
465
Task( "Pack" )
466
- . IsDependentOn ( "Pack-Tfs " )
466
+ . IsDependentOn ( "Pack-Vsix " )
467
467
. IsDependentOn ( "Pack-Gem" )
468
468
. IsDependentOn ( "Pack-Nuget" )
469
469
. IsDependentOn ( "Pack-Chocolatey" )
@@ -602,12 +602,12 @@ Task("Publish-AzurePipeline")
602
602
publishingError = true ;
603
603
} ) ;
604
604
605
- Task ( "Publish-Tfs " )
606
- . WithCriteria < BuildParameters > ( ( context , parameters ) => parameters . EnabledPublishTfs , "Publish-Tfs was disabled." )
607
- . WithCriteria < BuildParameters > ( ( context , parameters ) => parameters . IsRunningOnWindows , "Publish-Tfs works only on Windows agents." )
608
- . WithCriteria < BuildParameters > ( ( context , parameters ) => parameters . IsRunningOnAzurePipeline , "Publish-Tfs works only on AzurePipeline." )
609
- . WithCriteria < BuildParameters > ( ( context , parameters ) => parameters . IsStableRelease ( ) || parameters . IsPreRelease ( ) , "Publish-Tfs works only for releases." )
610
- . IsDependentOn ( "Pack-Tfs " )
605
+ Task ( "Publish-Vsix " )
606
+ . WithCriteria < BuildParameters > ( ( context , parameters ) => parameters . EnabledPublishVsix , "Publish-Vsix was disabled." )
607
+ . WithCriteria < BuildParameters > ( ( context , parameters ) => parameters . IsRunningOnWindows , "Publish-Vsix works only on Windows agents." )
608
+ . WithCriteria < BuildParameters > ( ( context , parameters ) => parameters . IsRunningOnAzurePipeline , "Publish-Vsix works only on AzurePipeline." )
609
+ . WithCriteria < BuildParameters > ( ( context , parameters ) => parameters . IsStableRelease ( ) || parameters . IsPreRelease ( ) , "Publish-Vsix works only for releases." )
610
+ . IsDependentOn ( "Pack-Vsix " )
611
611
. Does < BuildParameters > ( ( parameters ) =>
612
612
{
613
613
var token = parameters . Credentials . Tfx . Token ;
@@ -628,7 +628,7 @@ Task("Publish-Tfs")
628
628
} )
629
629
. OnError ( exception =>
630
630
{
631
- Information ( "Publish-Tfs Task failed, but continuing with next Task..." ) ;
631
+ Information ( "Publish-Vsix Task failed, but continuing with next Task..." ) ;
632
632
Error ( exception . Dump ( ) ) ;
633
633
publishingError = true ;
634
634
} ) ;
@@ -779,7 +779,7 @@ Task("Publish")
779
779
. IsDependentOn ( "Publish-Coverage" )
780
780
. IsDependentOn ( "Publish-NuGet" )
781
781
. IsDependentOn ( "Publish-Chocolatey" )
782
- . IsDependentOn ( "Publish-Tfs " )
782
+ . IsDependentOn ( "Publish-Vsix " )
783
783
. IsDependentOn ( "Publish-Gem" )
784
784
. IsDependentOn ( "Publish-DockerHub" )
785
785
. Finally ( ( ) =>
0 commit comments