Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating a new project for building a strongly named version #11

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: libc.eventbus-ci

on:
pull_request:
branches:
- master

jobs:
build:
name: Build and run tests
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x

- name: Install dependencies
run: dotnet restore

- name: Build solution
run: dotnet build --configuration Release --no-restore

- name: Run tests
run: dotnet test --configuration Release --no-restore --verbosity normal --logger "trx;logfilename=TestResults.trx" --collect:"XPlat Code Coverage" --results-directory TestResults

- name: Publish test results
uses: bibipkins/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
comment-title: Unit Test Results
results-path: ./TestResults/*.trx
coverage-path: ./TestResults/**/coverage.cobertura.xml
coverage-type: cobertura
23 changes: 23 additions & 0 deletions Common.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<Project>

<PropertyGroup>
<Version>7.1.3</Version>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>Saeed Farahi Mohassel, bothzoli</Authors>
<Product>An in-memory event bus for services to communicate in-process</Product>
<RepositoryUrl>https://github.com/sfmohassel/libc.eventbus</RepositoryUrl>
<LangVersion>8.0</LangVersion>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<TargetFrameworks>netstandard2.0;net6.0;net8.0</TargetFrameworks>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

<ItemGroup>
<None Include="$(ProjectDir)..\README.md" Pack="true" PackagePath="\"/>
</ItemGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<OutputPath>..\out\</OutputPath>
</PropertyGroup>

</Project>
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 Saeid Farahi
Copyright 2025 Saeid Farahi, bothzoli

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
16 changes: 16 additions & 0 deletions libc.eventbus.sln
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "libc.eventbus", "libc.event
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "libc.eventbus.tests", "libc.eventbus.tests\libc.eventbus.tests.csproj", "{59D5F92A-958A-45BE-B17C-838795E0612B}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SolutionFolder", "SolutionFolder", "{4304BBBD-F309-4FC8-B961-3303436AC9F5}"
ProjectSection(SolutionItems) = preProject
libc.eventbus.snk = libc.eventbus.snk
.gitattributes = .gitattributes
.gitignore = .gitignore
LICENSE = LICENSE
README.md = README.md
Common.Build.props = Common.Build.props
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "libc.eventbus.strongname", "libc.eventbus.strongname\libc.eventbus.strongname.csproj", "{D8E31BBD-B4EC-49D4-839A-A244855E4857}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -21,6 +33,10 @@ Global
{59D5F92A-958A-45BE-B17C-838795E0612B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{59D5F92A-958A-45BE-B17C-838795E0612B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{59D5F92A-958A-45BE-B17C-838795E0612B}.Release|Any CPU.Build.0 = Release|Any CPU
{D8E31BBD-B4EC-49D4-839A-A244855E4857}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D8E31BBD-B4EC-49D4-839A-A244855E4857}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D8E31BBD-B4EC-49D4-839A-A244855E4857}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D8E31BBD-B4EC-49D4-839A-A244855E4857}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
Binary file added libc.eventbus.snk
Binary file not shown.
18 changes: 18 additions & 0 deletions libc.eventbus.strongname/libc.eventbus.strongname.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="../Common.Build.props"/>

<PropertyGroup>
<AssemblyOriginatorKeyFile>$(ProjectDir)..\libc.eventbus.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>

<PropertyGroup>
<SignAssembly Condition="'$(Configuration)'=='Release'">true</SignAssembly>
</PropertyGroup>

<ItemGroup>
<Compile Include="..\libc.eventbus\**\*.cs"
Exclude="..\libc.eventbus\obj\**\*.cs"/>
</ItemGroup>

</Project>
160 changes: 0 additions & 160 deletions libc.eventbus/README.md

This file was deleted.

20 changes: 1 addition & 19 deletions libc.eventbus/libc.eventbus.csproj
Original file line number Diff line number Diff line change
@@ -1,23 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>7.1.2</Version>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>Saeed Farahi Mohassel</Authors>
<Product>An in-memory event bus for services to communicate in-process</Product>
<RepositoryUrl>https://github.com/sfmohassel/libc.eventbus</RepositoryUrl>
<LangVersion>8.0</LangVersion>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<TargetFrameworks>netstandard2.0;net6.0;net8.0</TargetFrameworks>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

<ItemGroup>
<None Include="README.md" Pack="true" PackagePath="\"/>
</ItemGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<OutputPath>..\out\</OutputPath>
</PropertyGroup>
<Import Project="../Common.Build.props"/>

</Project>