Info
Version: | 1.0.0.3 |
Author(s): | CityIndex Ltd, Andrei Faber |
Last Update: | Monday, March 11, 2013 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://github.com/fandrei/MSBuild.SetEnvVariable |
NuGet Url: | https://www.nuget.org/packages/MSBuild.SetEnvVariable |
Install
Install-Package MSBuild.SetEnvVariable
dotnet add package MSBuild.SetEnvVariable
paket add MSBuild.SetEnvVariable
MSBuild.SetEnvVariable Download (Unzip the "nupkg" after downloading)
Use it like this:
<UsingTask TaskName="SetEnvVariable" AssemblyFile="$(YourPath)\MSBuild.SetEnvVariable.dll"/>
<SetEnvVariable Name="VariableName" Value="YourValue"/>
Environment variables persist only within the same Target element.