Skip to content

Commit ebc9ead

Browse files
committed
Icon added - SourceLink enabled - MultiTarget supported
1 parent 2b23a70 commit ebc9ead

5 files changed

Lines changed: 68 additions & 24 deletions

File tree

.github/workflows/dotnetcore.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: .NET Core
2+
3+
on:
4+
push:
5+
paths-ignore:
6+
- 'readme.md'
7+
pull_request:
8+
paths-ignore:
9+
- 'readme.md'
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ubuntu-latest
15+
# runs-on: $
16+
# strategy:
17+
# matrix:
18+
# os: [macOS-latest, ubuntu-latest, windows-latest]
19+
20+
steps:
21+
- name: Checkout
22+
- uses: actions/checkout@v2
23+
24+
- name: Setup .NET Core
25+
uses: actions/setup-dotnet@v1
26+
with:
27+
dotnet-version: 3.1.101
28+
# if: matrix.os == 'macOS-latest' || matrix.os == 'ubuntu-latest'
29+
30+
- name: Build (Release)
31+
run: dotnet build --configuration Release
32+
33+
- name: Test (Release)
34+
run: dotnet test --configuration Release
35+
36+
- name: Pack (Release)
37+
run: dotnet pack Raptorious.SharpMt940Lib --configuration Release
38+
39+
- name: Publish
40+
if: github.event_name == 'push'
41+
run: |
42+
if ( "${{github.ref}}" -match "^refs/tags/[0-9]+\.[0-9]+\.[0-9]+$" ) {
43+
dotnet nuget push Raptorious.SharpMt940Lib\bin\Release\*.nupkg -s nuget.org -k ${{secrets.NUGET_TOKEN}} -s https://api.nuget.org/v3/index.json
44+
} else {
45+
echo "publish is only enabled by tagging with a release tag"
46+
}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[![NuGet](https://img.shields.io/nuget/v/NopLocalization.svg)](https://www.nuget.org/packages/SharpMt940Lib.Core/)
22
[![License: MIT](https://img.shields.io/badge/License-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT)
3+
[![Build Status](https://github.com/mjebrahimi/SharpMt940Lib.Core/workflows/.NET%20Core/badge.svg)](https://github.com/mjebrahimi/SharpMt940Lib.Core)
34

45
# SharpMT940Lib.Core #
56
[SharpMt940Lib.Core](https://www.nuget.org/packages/SharpMt940Lib.Core/) is an unofficial port of the [Raptorious.Finance.Swift.Mt940](https://www.nuget.org/packages/Raptorious.Finance.Swift.Mt940/) library to .NET Core.

Raptorious.SharpMt940Lib.Tests/Raptorious.SharpMt940Lib.Tests.csproj

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp2.1</TargetFramework>
4+
<TargetFramework>netcoreapp3.1</TargetFramework>
55

66
<IsPackable>false</IsPackable>
77
</PropertyGroup>
@@ -46,8 +46,11 @@
4646

4747
<ItemGroup>
4848
<PackageReference Include="nunit" Version="3.12.0" />
49-
<PackageReference Include="NUnit3TestAdapter" Version="3.13.0" />
50-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.1.1" />
49+
<PackageReference Include="NUnit3TestAdapter" Version="3.16.1">
50+
<PrivateAssets>all</PrivateAssets>
51+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
52+
</PackageReference>
53+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />
5154
</ItemGroup>
5255

5356
<ItemGroup>

Raptorious.SharpMt940Lib/MT940.jpg

15.4 KB
Loading
Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,37 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netstandard2.0</TargetFramework>
4+
<TargetFrameworks>netstandard2.0;net40;net45;net461;</TargetFrameworks>
55
<LangVersion>7.3</LangVersion>
6-
<GenerateDocumentationFile>true</GenerateDocumentationFile>
76
<AssemblyName>SharpMt940Lib.Core</AssemblyName>
87
<PackageId>SharpMt940Lib.Core</PackageId>
98
<Title>SharpMt940Lib.Core</Title>
109
<Product>SharpMt940Lib.Core</Product>
11-
<Version>1.0.0</Version>
12-
<PackageVersion>1.0.0</PackageVersion>
13-
<AssemblyVersion>1.0.0</AssemblyVersion>
10+
<Version>1.0.1</Version>
11+
<PackageVersion>1.0.1</PackageVersion>
12+
<AssemblyVersion>1.0.1</AssemblyVersion>
1413
<Authors>Mohammad Javad Ebrahimi</Authors>
1514
<Company>Mohammad Javad Ebrahimi</Company>
1615
<Copyright>Copyright © Mohammad Javad Ebrahimi 2019</Copyright>
1716
<Description>SharpMt940Lib.Core is an unofficial port of the 'Raptorious.Finance.Swift.Mt940' to .NET Core. SharpMT940Lib implements the MT940 format in C# and is based on specifications of multiple banks. You can use it as a base for financial software or for conversions to other formats like CSV or OFX.</Description>
1817
<PackageTags>.NETCore MT940 SharpMT940Lib Bank Swift Finance Transaction Parser</PackageTags>
19-
<PackageIconUrl>https://raw.githubusercontent.com/mjebrahimi/SharpMt940Lib.Core/master/Documentation/MT940.jpg</PackageIconUrl>
20-
<PackageLicenseUrl>https://github.com/mjebrahimi/SharpMt940Lib.Core/blob/master/LICENSE</PackageLicenseUrl>
21-
<PackageProjectUrl>https://github.com/mjebrahimi/SharpMt940Lib.Core</PackageProjectUrl>
18+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
2219
<RepositoryUrl>https://github.com/mjebrahimi/SharpMt940Lib.Core</RepositoryUrl>
23-
<PackageReleaseNotes>https://github.com/mjebrahimi/SharpMt940Lib.Core/releases</PackageReleaseNotes>
2420
<RepositoryType>git</RepositoryType>
2521
<PublishRepositoryUrl>true</PublishRepositoryUrl>
2622
<EmbedUntrackedSources>true</EmbedUntrackedSources>
27-
<!--<GeneratePackageOnBuild Condition="'$(Configuration)'=='Release'">true</GeneratePackageOnBuild>-->
28-
<!--<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>-->
29-
<!--<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>-->
30-
<!--<AssemblyOriginatorKeyFile>..\..\AutoMapper.snk</AssemblyOriginatorKeyFile>-->
31-
<!--<SignAssembly>true</SignAssembly>-->
32-
<!--<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>-->
23+
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
24+
<GeneratePackageOnBuild Condition="'$(Configuration)'=='Release'">true</GeneratePackageOnBuild>
25+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
26+
<PackageIcon>MT940.jpg</PackageIcon>
3327
</PropertyGroup>
3428

3529
<ItemGroup>
36-
<!--<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-62925-02" PrivateAssets="All" />-->
37-
<!--<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-63127-02">
38-
<PrivateAssets>all</PrivateAssets>
39-
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
40-
</PackageReference>-->
30+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
4131
</ItemGroup>
42-
32+
33+
<ItemGroup>
34+
<None Include="MT940.jpg" Pack="true" PackagePath=""/>
35+
</ItemGroup>
36+
4337
</Project>

0 commit comments

Comments
 (0)