Allows to set environment variables in MSBuild scripts. 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.

Install-Package MSBuild.SetEnvVariable -Version
dotnet add package MSBuild.SetEnvVariable --version
<PackageReference Include="MSBuild.SetEnvVariable" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MSBuild.SetEnvVariable --version
The NuGet Team does not provide support for this client. Please contact its maintainers for support.


This package has no dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated 1,194 3/11/2013 491 3/9/2013 453 3/8/2013
1.0.0 508 3/8/2013