Skip to content

Commit

Permalink
changed target framework to 4.6.
Browse files Browse the repository at this point in the history
updated build scripts.
  • Loading branch information
lastunicorn committed Jan 7, 2018
1 parent ea79668 commit 8ceaaf3
Show file tree
Hide file tree
Showing 7 changed files with 178 additions and 18 deletions.
13 changes: 13 additions & 0 deletions doc/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
ConsoleTools
============

ver 0.1.0
---------
- Compiled the library against .NET Framework 4.6
- Renamed some controls (removed the "Control" word from their names).
- Added demo for YesNoQuestion control.
- Added demo project for Pause control.
- Renamed some classes and properties in majority of the controls. (Breaking changes)
- ProgressBar - Added ShowValue property - Optional display of the value.
- Spinner - Added ShowLabel property - Optional display of the label.
- Added background color properties for labels in TextInput, TextOutput, ListInput, ListOutput.
- Added static methods to most of the controls to easily use them with default values.
- Added XML documentation comments to some of the controls (not finished yet).

ver 0.0.2
---------
- Updates in MVC framework.
Expand Down
46 changes: 46 additions & 0 deletions doc/release steps.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
ConsoleTools - Release Steps
============================

The release process is semiautomated.
There are a few steps that has to be done manually.

--------------------------------------------------------------------------------
Local
--------------------------------------------------------------------------------

Step 1: Update changelog file.
- File: /doc/changelog.txt
- Add the list of changes.



Step 2: Nuget - Update nuspec file.
- File: /nuget/ConsoleTools.nuspec
- version
- releaseNotes

Step 3: Nuget - Build nuget package
- Run /nuget/build.bat



Step 4: GitHub - Update package version
- File /release/build.bat
- version

Step 5: GitHub - Build zip release package
- Run /release/build.bat

--------------------------------------------------------------------------------
Internet
--------------------------------------------------------------------------------

Step 6: Create GitHub release
www.github.com

Step 7: Upload nuget package to nuget.com
www.nuget.com

--------------------------------------------------------------------------------
Done :)
--------------------------------------------------------------------------------
24 changes: 16 additions & 8 deletions nuget/ConsoleTools.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package>
<metadata>
<id>ConsoleTools</id>
<version>0.0.2</version>
<version>0.1.0</version>
<authors>Dust in the Wind</authors>
<title>ConsoleTools</title>
<owners>Dust in the Wind</owners>
Expand All @@ -12,16 +12,24 @@
<description>A set of tools and "controls" for the .net Console. It contains: List Input/Output Controls, Text Input/Output Controls, Progress Bar, Spinner, Data Table, Prompter, Menus, etc.</description>
<summary>A set of tools and "controls" for the .net Console.</summary>
<releaseNotes>
- Updates in MVC framework.
- Added the ThreeStageFile control that writes data in a temporary file and keeps a backup of the last version of the file.
- Created the Pause control.</releaseNotes>
<copyright>Copyright 2017 Dust in the Wind</copyright>
- Renamed some controls (removed the "Control" word from their names).
- Added demo for YesNoQuestion control.
- Added demo project for Pause control.
- Renamed some classes and properties in majority of the controls. (Breaking changes)
- ProgressBar: Added ShowValue property (Optional display of the value).
- Spinner: Added ShowLabel property (Optional display of the label).
- Added background color properties for labels in TextInput, TextOutput, ListInput, ListOutput.
- Added static methods to most of the controls to easily use them with default values.
- Added XML documentation comments to some of the controls (not finished yet).
</releaseNotes>
<copyright>Copyright 2017-2018 Dust in the Wind</copyright>
<tags>console cli prompter menu progressbar spinner table read write</tags>
</metadata>
<files>
<file src="lib\net461\DustInTheWind.ConsoleTools.dll" target="lib\net461\DustInTheWind.ConsoleTools.dll" />
<file src="lib\net461\DustInTheWind.ConsoleTools.pdb" target="lib\net461\DustInTheWind.ConsoleTools.pdb" />
<file src="lib\net461\DustInTheWind.ConsoleTools.xml" target="lib\net461\DustInTheWind.ConsoleTools.xml" />
<file src="lib\net46\DustInTheWind.ConsoleTools.dll" target="lib\net46\DustInTheWind.ConsoleTools.dll" />
<file src="lib\net46\DustInTheWind.ConsoleTools.pdb" target="lib\net46\DustInTheWind.ConsoleTools.pdb" />
<file src="lib\net46\DustInTheWind.ConsoleTools.xml" target="lib\net46\DustInTheWind.ConsoleTools.xml" />
<file src="changelog.txt" target="changelog.txt" />
<file src="readme.txt" target="readme.txt" />
</files>
</package>
83 changes: 76 additions & 7 deletions nuget/build.bat
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
@echo off

set root_directory=..
set assemblies_directory=lib\net461
set assemblies_directory=lib\net46

rem ----------------------------------------------------------------------------------------------------
rem Clean up existing files.
rem ----------------------------------------------------------------------------------------------------

echo.
echo ---
echo --- Clean up existing files - lib directory.
echo --- Clean up existing files - lib directory
echo ---
echo.
if EXIST "lib" (
Expand All @@ -19,11 +19,37 @@ if EXIST "lib" (

echo.
echo ---
echo --- Clean up existing files - .nupkg files.
echo --- Clean up existing files - .nupkg files
echo ---
echo.
del *.nupkg
if %errorlevel% neq 0 goto :error
if EXIST "*.nupkg" (
del *.nupkg
if %errorlevel% neq 0 goto :error
)

echo.
echo ---
echo --- Clean up existing files - changelog file
echo ---
echo.
if EXIST "changelog.txt" (
del "changelog.txt"
if %errorlevel% neq 0 goto :error
)

echo.
echo ---
echo --- Clean up existing files - readme file
echo ---
echo.
if EXIST "readme.txt" (
del "readme.txt"
if %errorlevel% neq 0 goto :error
)

rem ----------------------------------------------------------------------------------------------------
rem Retrieve all files.
rem ----------------------------------------------------------------------------------------------------

echo.
echo ---
Expand All @@ -38,24 +64,59 @@ echo ---
echo --- Retrieve changelog file
echo ---
echo.
xcopy /R/Y/S/I "%root_directory%\doc\changelog.txt" .
xcopy /Y "%root_directory%\doc\changelog.txt" .
if %errorlevel% neq 0 goto :error

echo.
echo ---
echo --- Retrieve readme file
echo ---
echo.
xcopy /Y "%root_directory%\readme.txt" .
if %errorlevel% neq 0 goto :error

rem ----------------------------------------------------------------------------------------------------
rem Create package
rem ----------------------------------------------------------------------------------------------------

echo.
echo ---
echo --- Create nuget package
echo ---
echo.
nuget pack

rem ----------------------------------------------------------------------------------------------------
rem Clean up files.
rem ----------------------------------------------------------------------------------------------------

echo.
echo ---
echo --- Delete the uncompressed files
echo --- Clean up files - lib directory
echo ---
echo.
rmdir /S/Q "lib"
if %errorlevel% neq 0 goto :error

echo.
echo ---
echo --- Clean up files - changelog file
echo ---
echo.
del "changelog.txt"
if %errorlevel% neq 0 goto :error

echo.
echo ---
echo --- Clean up files - readme file
echo ---
echo.
del "readme.txt"
if %errorlevel% neq 0 goto :error

rem ----------------------------------------------------------------------------------------------------
rem Success
rem ----------------------------------------------------------------------------------------------------

:success
echo.
Expand All @@ -67,6 +128,10 @@ echo ---
echo ---
goto :end

rem ----------------------------------------------------------------------------------------------------
rem Error
rem ----------------------------------------------------------------------------------------------------

:error
echo.
echo.
Expand All @@ -76,4 +141,8 @@ echo --- Error
echo ---
echo ---

rem ----------------------------------------------------------------------------------------------------
rem End
rem ----------------------------------------------------------------------------------------------------

:end
5 changes: 5 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ConsoleTools
============

A set of tools and "controls" for the .net Console.
It contains: List Input/Output Controls, Text Input/Output Controls, Progress Bar, Spinner, Data Table, Prompter, Menus, etc.
20 changes: 18 additions & 2 deletions release/build.bat
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@echo off

set root_directory=..
set version=0.0.2
set version=0.1.0

rem ----------------------------------------------------------------------------------------------------
rem Clean up existing files.
Expand Down Expand Up @@ -58,7 +58,7 @@ echo ---
echo --- Retrieve readme file
echo ---
echo.
xcopy /Y "%root_directory%\README.md" "ConsoleTools\*"
xcopy /Y "%root_directory%\readme.txt" "ConsoleTools\*"
if %errorlevel% neq 0 goto :error

rem ----------------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -103,6 +103,10 @@ echo.
7z t "ConsoleTools-v%version%.7z"
if %errorlevel% neq 0 goto :error

rem ----------------------------------------------------------------------------------------------------
rem Clean up
rem ----------------------------------------------------------------------------------------------------

echo.
echo ---
echo --- Delete the uncompressed files
Expand All @@ -111,6 +115,10 @@ echo.
rmdir /S/Q "ConsoleTools"
if %errorlevel% neq 0 goto :error

rem ----------------------------------------------------------------------------------------------------
rem Success
rem ----------------------------------------------------------------------------------------------------

:success
echo.
echo.
Expand All @@ -121,6 +129,10 @@ echo ---
echo ---
goto :end

rem ----------------------------------------------------------------------------------------------------
rem Error
rem ----------------------------------------------------------------------------------------------------

:error
echo.
echo.
Expand All @@ -130,4 +142,8 @@ echo --- Error
echo ---
echo ---

rem ----------------------------------------------------------------------------------------------------
rem End
rem ----------------------------------------------------------------------------------------------------

:end
5 changes: 4 additions & 1 deletion source/ConsoleTools/ConsoleTools.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>DustInTheWind.ConsoleTools</RootNamespace>
<AssemblyName>DustInTheWind.ConsoleTools</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -22,6 +23,7 @@
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<DocumentationFile>bin\Debug\DustInTheWind.ConsoleTools.XML</DocumentationFile>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
Expand All @@ -31,6 +33,7 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DocumentationFile>bin\Release\DustInTheWind.ConsoleTools.xml</DocumentationFile>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
Expand Down

0 comments on commit 8ceaaf3

Please sign in to comment.