@@ -78,7 +78,7 @@ void Build(string configuration)
78
78
} ) ;
79
79
}
80
80
81
- void ILRepackGitVersionExe ( bool includeLibGit2Sharp , DirectoryPath target , DirectoryPath ilMerge )
81
+ void ILRepackGitVersionExe ( bool includeLibGit2Sharp , DirectoryPath target , DirectoryPath ilMerge , string configuration , string dotnetVersion )
82
82
{
83
83
var exeName = "GitVersion.exe" ;
84
84
var keyFilePath = "./src/key.snk" ;
@@ -100,6 +100,13 @@ void ILRepackGitVersionExe(bool includeLibGit2Sharp, DirectoryPath target, Direc
100
100
sourceFiles = sourceFiles - GetFiles ( excludePattern ) ;
101
101
}
102
102
var settings = new ILRepackSettings { AllowDup = "" , Keyfile = keyFilePath , Internalize = true , NDebug = true , TargetKind = TargetKind . Exe , TargetPlatform = TargetPlatformVersion . v4 , XmlDocs = false } ;
103
+
104
+ if ( IsRunningOnUnix ( ) )
105
+ {
106
+ var libFolder = GetDirectories ( $ "**/GitVersionExe/bin/{ configuration } /{ dotnetVersion } ") . FirstOrDefault ( ) ;
107
+ settings . Libs = new List < DirectoryPath > { libFolder } ;
108
+ }
109
+
103
110
FixForMono ( settings , "ILRepack.exe" ) ;
104
111
ILRepack ( outFilePath , targetPath , sourceFiles , settings ) ;
105
112
@@ -117,7 +124,7 @@ void ILRepackGitVersionExe(bool includeLibGit2Sharp, DirectoryPath target, Direc
117
124
118
125
void PublishILRepackedGitVersionExe ( bool includeLibGit2Sharp , DirectoryPath targetDir , DirectoryPath ilMergDir , DirectoryPath outputDir , string configuration , string dotnetVersion )
119
126
{
120
- ILRepackGitVersionExe ( includeLibGit2Sharp , targetDir , ilMergDir ) ;
127
+ ILRepackGitVersionExe ( includeLibGit2Sharp , targetDir , ilMergDir , configuration , dotnetVersion ) ;
121
128
CopyDirectory ( ilMergDir , outputDir ) ;
122
129
123
130
if ( includeLibGit2Sharp ) {
0 commit comments