Skip to content

Commit 4b1e8ec

Browse files
committed
1.1.2 - Upgrade to Commons.GetOptions.1.1.1
1 parent 4c29fd6 commit 4b1e8ec

File tree

6 files changed

+19
-16
lines changed

6 files changed

+19
-16
lines changed

App.config

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<?xml version="1.0" encoding="utf-8" ?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<configuration>
33
<startup>
4-
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/>
55
</startup>
6-
</configuration>
6+
</configuration>

CopyDeployerOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public bool IsOk
5959
[Option("Summary mode - Only the summary line", "summary", ShortForm = 's')]
6060
public bool Summary { get; set; }
6161

62-
public string To { get { return FirstArgument; } }
62+
public string To { get { return this.RemainingArguments.FirstOrDefault(s => !s.StartsWith("-")); } }
6363

6464
[Option("Verbose output", "verbose", ShortForm = 'v')]
6565
public bool Verbose { get; set; }

Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,16 @@ internal class Program
3030
{
3131
private static int Execute(CopyDeployerOptions options)
3232
{
33+
if (!options.IsOk)
34+
return 1;
3335
if (!(options.Quiet || options.Summary))
3436
options.ShowBanner();
3537
return new CopyDeployer(options).Execute();
3638
}
3739

3840
private static void Main(string[] args)
3941
{
40-
var options = new CopyDeployerOptions(args);
41-
var exitCode = options.IsOk ? Execute(options) : 1;
42-
Environment.Exit(exitCode);
42+
Environment.Exit(Execute(new CopyDeployerOptions(args)));
4343
}
4444
}
4545
}

Properties/AssemblyInfo.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,9 @@
3333
[assembly: AssemblyTrademark("")]
3434
[assembly: AssemblyCulture("")]
3535
[assembly: ComVisible(false)]
36-
[assembly: AssemblyVersion("1.1.1")]
37-
[assembly: AssemblyFileVersion("1.1.1")]
38-
[assembly: AssemblyInformationalVersion("1.1.1")]
39-
[assembly: Author("Rafael Teixeira")]
40-
[assembly: Author("Managed Commons Team")]
36+
[assembly: AssemblyVersion("1.1.2")]
37+
[assembly: AssemblyFileVersion("1.1.2")]
38+
[assembly: AssemblyInformationalVersion("1.1.2")]
4139
[assembly: UsageComplement("<path of directory to deploy into>")]
42-
[assembly: ReportBugsTo("https://github.com/managed-commons/cpdeploy/issues")]
40+
[assembly: ReportBugsTo("https://github.com/managed-commons/cpdeploy/issues")]
41+
[assembly: License(LicenseType.MIT)]

cpdeploy.csproj

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<AssemblyName>cpdeploy</AssemblyName>
1212
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
1313
<FileAlignment>512</FileAlignment>
14+
<TargetFrameworkProfile />
1415
</PropertyGroup>
1516
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1617
<PlatformTarget>AnyCPU</PlatformTarget>
@@ -22,6 +23,7 @@
2223
<ErrorReport>prompt</ErrorReport>
2324
<WarningLevel>4</WarningLevel>
2425
<StartArguments>--clean --verbose ..\..\tmp</StartArguments>
26+
<Prefer32Bit>false</Prefer32Bit>
2527
</PropertyGroup>
2628
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2729
<PlatformTarget>AnyCPU</PlatformTarget>
@@ -31,10 +33,12 @@
3133
<DefineConstants>TRACE</DefineConstants>
3234
<ErrorReport>prompt</ErrorReport>
3335
<WarningLevel>4</WarningLevel>
36+
<Prefer32Bit>false</Prefer32Bit>
3437
</PropertyGroup>
3538
<ItemGroup>
36-
<Reference Include="Commons.GetOptions">
37-
<HintPath>packages\Commons.GetOptions.1.0.1\lib\net20\Commons.GetOptions.dll</HintPath>
39+
<Reference Include="Commons.GetOptions, Version=1.1.2015.3, Culture=neutral, processorArchitecture=MSIL">
40+
<SpecificVersion>False</SpecificVersion>
41+
<HintPath>packages\Commons.GetOptions.1.1.1\lib\net45\Commons.GetOptions.dll</HintPath>
3842
</Reference>
3943
<Reference Include="System" />
4044
<Reference Include="System.Core" />

packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Commons.GetOptions" version="1.0.1" targetFramework="net45" />
3+
<package id="Commons.GetOptions" version="1.1.1" targetFramework="net45" />
44
</packages>

0 commit comments

Comments
 (0)