Skip to content

Commit 0e3b92e

Browse files
committed
Setting Environment Variable for MyGet build server type
1 parent 76cf3fd commit 0e3b92e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

GitVersionCore/BuildServers/MyGet.cs

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ public override void PerformPreProcessingSteps(string gitDirectory)
3131

3232
public override string[] GenerateSetParameterMessage(string name, string value)
3333
{
34+
Environment.SetEnvironmentVariable(string.Format("GitVersion.{0}", name), value, EnvironmentVariableTarget.Process);
35+
3436
return new[]
3537
{
3638
string.Format("##myget[setParameter name='GitVersion.{0}' value='{1}']", name, EscapeValue(value))

0 commit comments

Comments
 (0)