Skip to content

Commit

Permalink
Added new "hidden" output line
Browse files Browse the repository at this point in the history
Shows a differently formatted line if an i or in is passed in.  Doubt anyone will ever need it but me which is why it's "hidden".
  • Loading branch information
randyrants committed Feb 18, 2021
1 parent 474e0ac commit 55dcd98
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
6 changes: 3 additions & 3 deletions WinVerEx/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("RandyRants LLC")]
[assembly: AssemblyProduct("WinVerEx")]
[assembly: AssemblyCopyright("Copyright © 2019 RandyRants.com")]
[assembly: AssemblyCopyright("Copyright © 2019-2021 RandyRants.com")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -32,5 +32,5 @@
// 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.1.0.0")]
[assembly: AssemblyFileVersion("1.1.0.0")]
[assembly: AssemblyVersion("1.2.0.0")]
[assembly: AssemblyFileVersion("1.2.0.0")]
14 changes: 14 additions & 0 deletions WinVerEx/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,20 @@ static void Main(string[] args)

if (args.Length > 0)
{
// Display a one off format if i or inline is passed in
switch (args[0]) {
case "i":
case "inline":
// Write out a streamlined version number
string[] versionParts = buildLabEx.Split('.');
if (versionParts.Length == 5)
{
Console.WriteLine(String.Format("{0} {1}.{2}.{3} {4}", versionParts[3], versionParts[0], versionParts[1], versionParts[4], versionParts[2]));
}
break;
}

// Output message no matter what extra information came in
Console.WriteLine();
Console.WriteLine("Visit http://www.github.com/randyrants/winverex for more information or source code.");
}
Expand Down
5 changes: 4 additions & 1 deletion WinVerEx/WinVerEx.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,15 @@
<Reference Include="Microsoft.CSharp" />
</ItemGroup>
<ItemGroup>
<Compile Include="AssemblyInfo.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down

0 comments on commit 55dcd98

Please sign in to comment.