File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,16 @@ void SetRubyGemPushApiKey(string apiKey)
36
36
37
37
GitVersion GetVersion ( BuildParameters parameters )
38
38
{
39
- Build ( parameters . Configuration ) ;
40
- var dllFile = GetFiles ( $ "**/GitVersionExe/bin/{ parameters . Configuration } /{ parameters . CoreFxVersion } /GitVersion.dll") . FirstOrDefault ( ) ;
39
+ var dllFilePath = $ "./artifacts/*/bin/{ parameters . CoreFxVersion } /tools/GitVersion.dll";
40
+ var dllFile = GetFiles ( dllFilePath ) . FirstOrDefault ( ) ;
41
+ if ( dllFile == null )
42
+ {
43
+ Warning ( "Dogfood GitVersion to get information" ) ;
44
+ Build ( parameters . Configuration ) ;
45
+ dllFilePath = $ "./src/GitVersionExe/bin/{ parameters . Configuration } /{ parameters . CoreFxVersion } /GitVersion.dll";
46
+ dllFile = GetFiles ( dllFilePath ) . FirstOrDefault ( ) ;
47
+ }
48
+
41
49
var settings = new GitVersionSettings
42
50
{
43
51
OutputType = GitVersionOutput . Json ,
You can’t perform that action at this time.
0 commit comments