diff --git a/.gitignore b/.gitignore index f6c2564..670d891 100644 --- a/.gitignore +++ b/.gitignore @@ -10,4 +10,5 @@ _bin/ _ReSharper*/ *.*.user -!tools/ \ No newline at end of file +!tools/ +.vs/ diff --git a/MSBuild.SetEnvVariable.csproj b/MSBuild.SetEnvVariable.csproj index 6c78fa5..24cd916 100644 --- a/MSBuild.SetEnvVariable.csproj +++ b/MSBuild.SetEnvVariable.csproj @@ -1,37 +1,14 @@ - - - + + - Debug - AnyCPU - 8.0.30703 - 2.0 - {8A1C9A7F-4B99-49A9-92BE-495ECB61E500} - Library - Properties - MSBuild.SetEnvVariable - MSBuild.SetEnvVariable - v4.0 - 512 + netstandard2.0;net40;net45;net46 + true + + + Copyright © 2011 Andrei Faber - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - + + @@ -42,16 +19,11 @@ - - - + + + + 16.0.461 + - - - \ No newline at end of file + + diff --git a/MSBuild.SetEnvVariable.sln b/MSBuild.SetEnvVariable.sln index b107c08..df68e2a 100644 --- a/MSBuild.SetEnvVariable.sln +++ b/MSBuild.SetEnvVariable.sln @@ -1,6 +1,8 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2012 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.28803.352 +MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MSBuild.SetEnvVariable", "MSBuild.SetEnvVariable.csproj", "{8A1C9A7F-4B99-49A9-92BE-495ECB61E500}" EndProject Global diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index e61744a..f34f458 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -5,13 +5,6 @@ // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. -[assembly: AssemblyTitle("MSBuild.SetEnvVariable")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("MSBuild.SetEnvVariable")] -[assembly: AssemblyCopyright("Copyright © 2011 Andrei Faber")] -[assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible @@ -32,5 +25,4 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] + diff --git a/SetEnvVariable.cs b/SetEnvVariable.cs index f793ae9..10f9cb5 100644 --- a/SetEnvVariable.cs +++ b/SetEnvVariable.cs @@ -8,36 +8,36 @@ namespace MSBuild.SetEnvVariable { - public class SetEnvVariable : Task - { - private string _name; - private string _value; + public class SetEnvVariable : Task + { + private string _name; + private string _value; - [Required] - public string Name - { - get { return _name; } - set { _name = value; } - } + [Required] + public string Name + { + get { return _name; } + set { _name = value; } + } - public string Value - { - get { return _value; } - set { _value = value; } - } + public string Value + { + get { return _value; } + set { _value = value; } + } - public override bool Execute() - { - try - { - Environment.SetEnvironmentVariable(_name, _value); - return true; - } - catch (Exception exc) - { - Console.WriteLine(exc); - return false; - } - } - } + public override bool Execute() + { + try + { + Environment.SetEnvironmentVariable(_name, _value); + return true; + } + catch (Exception exc) + { + Console.WriteLine(exc); + return false; + } + } + } }