.NET Framework 4.0
dotnet add package MSBuild.SetEnvVariable --version
NuGet\Install-Package MSBuild.SetEnvVariable -Version
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<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
#r "nuget: MSBuild.SetEnvVariable,"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MSBuild.SetEnvVariable as a Cake Addin
#addin nuget:?package=MSBuild.SetEnvVariable&version=

// Install MSBuild.SetEnvVariable as a Cake Tool
#tool nuget:?package=MSBuild.SetEnvVariable&version=

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.

Product Versions
.NET Framework net40 net403 net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48 net481
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated 2,036 3/11/2013 1,094 3/9/2013 1,069 3/8/2013
1.0.0 1,103 3/8/2013