Skip to content

Commit

Permalink
Merge pull request #3 from nutdotnet/cicd
Browse files Browse the repository at this point in the history
NuGet Package and first (pre)release.
  • Loading branch information
gbakeman authored Feb 10, 2023
2 parents e5da625 + a9d36ec commit 7fa5d28
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 54 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: build-release
# name: build-release-$(git rev-parse --short "$GITHUB_SHA")
run-name: Build-Release Num. ${{ github.run_number }}

on:
workflow_dispatch:
Expand All @@ -18,8 +19,8 @@ on:

env:
DOTNET_VERSION: '4.7.2' # The .NET SDK version to use
SLN_FILE: AGauge.sln
DEBUG_OUTPUT: AGauge/AGauge/bin/Debug
SLN_FILE: AGauge/AGauge.sln
OUTPUT: AGauge/bin/Release
CONFIG: Release

jobs:
Expand Down Expand Up @@ -48,12 +49,12 @@ jobs:
id: getversion
uses: berglie/assembly-version/get@v1
with:
directory: ${{ env.DEBUG_OUTPUT }}
directory: ${{ env.OUTPUT }}

- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: ${{ format('AGauge-v{0}', steps.getversion.outputs.version) }}
if-no-files-found: error
path: ${{ env.DEBUG_OUTPUT }}
path: ${{ env.OUTPUT }}

6 changes: 3 additions & 3 deletions AGauge/AGauge.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>System.Windows.Forms</RootNamespace>
<AssemblyName>AGauge</AssemblyName>
<AssemblyName>AGauge.Classic</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
Expand Down Expand Up @@ -73,8 +73,8 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>del *.nupkg
nuget pack ..\..\AGauge.csproj -Prop Configuration=Release</PostBuildEvent>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
<!-- 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
24 changes: 16 additions & 8 deletions AGauge/AGauge.nuspec
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<package >
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<!-- Required elements-->
<id>$id$</id>
<version>$version$</version>
<title>$title$</title>
<version>2.0.5-prerelease.1</version>
<description>$description$</description>
<authors>$author$</authors>
<readme>docs\README.md</readme>

<!-- Optional elements -->
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<license type="expression">MIT</license>
<!-- <icon>icon.png</icon> -->
<projectUrl>http://codearteng.blogspot.com</projectUrl>
<description>$description$</description>
<releaseNotes></releaseNotes>
<!-- <icon>AGauge.bmp</icon> -->
<projectUrl>https://github.com/nutdotnet/AGauge</projectUrl>
<releaseNotes>https://github.com/nutdotnet/AGauge/releases</releaseNotes>
<copyright>$copyright$</copyright>
<tags></tags>
<tags>gauge, winforms, control</tags>
<title>$title$</title>
</metadata>

<files>
<file src="..\README.md" target="docs\" />
</files>
</package>
25 changes: 0 additions & 25 deletions AGauge/AGauge.sln

This file was deleted.

14 changes: 7 additions & 7 deletions AGauge/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
// 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("AGauge")]
[assembly: AssemblyDescription("AGauge Compoent by A.J.Bauer")]
[assembly: AssemblyTitle("AGauge Classic")]
[assembly: AssemblyDescription("Customizable WinForms gauge control - maintained by the NUTDotNet organization. Originally by A. J. Bauer, with further work by Code Artist and others.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Code Art Engineering")]
[assembly: AssemblyProduct("AGauge")]
[assembly: AssemblyCopyright("Copyright © CodeArtEng 2012")]
[assembly: AssemblyCompany("NUTDotNet Organization")]
[assembly: AssemblyProduct("AGauge.Classic")]
[assembly: AssemblyCopyright("Copyright © NUTDotNet 2023")]
[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("2.0.4.6")]
[assembly: AssemblyFileVersion("2.0.4.6")]
[assembly: AssemblyVersion("2.0.5")]
[assembly: AssemblyFileVersion("2.0.5")]
19 changes: 13 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
# AGauge
.NET Winforms Gauge Control created based on original work by A.J.Bauer with various improvment.
List of improvement done on top of the original works is described in my page below:<br/>
http://www.codearteng.com/2012/08/agauge-winforms-gauge-control.html
# AGauge Classic
![Screenshot of the original AGauge demo form by A. J. Bauer](https://raw.githubusercontent.com/nutdotnet/AGauge/main/AGaugeApp/screenshot.bmp)

The latest binary package had been published to NuGet Package Gallery named "AGauge V2".<br/>
https://www.nuget.org/packages/AGauge_V2/2.0.2
A customizable, inheritable .Net Framework WinForms Control based on the [initial tutorial](https://www.codeproject.com/Articles/17559/A-fast-and-performing-gauge) by A.J.Bauer, and additional enhancements by [Code Artist](http://www.codearteng.com/2012/08/agauge-winforms-gauge-control.html) and others. This project is being further maintained by the NUTDotNet organization to support [WinNUT](https://github.com/nutdotnet/WinNUT-Client/) and hopefully others who wish to continue using this control. This project is intended to be kept going with bug fixes and no major changes are planned. For a newer iteration of AGauge, take a look at Code Artist's [WinForm Gauge](https://winformgauge.codearteng.com/).

## Enhancements
- Dynamic Gauge Label and Gauge Range
- NeedleType Enumeration
- ValueChangedEvent

#Package and Download
- NuGet: [AGauge.Classic](https://www.nuget.org/packages/AGauge.Classic)

See the Releases page for additional distributions.

0 comments on commit 7fa5d28

Please sign in to comment.