Skip to content

Commit

Permalink
Upgrade to .net 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aimenux committed Aug 11, 2024
1 parent 73bb366 commit 0a46fcb
Show file tree
Hide file tree
Showing 26 changed files with 19 additions and 23 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

# PluginArchitectureDemo
```
Using various ways to illustrate plugin architecture
```
Using various ways to illustrate plugin architecture
```

> In this demo, i m using various ways in order to illustrate the use of plugin architecture.
>
Expand All @@ -18,4 +18,4 @@ Using various ways to illustrate plugin architecture
> :bulb: Plugins are copied on `plugins` folder on post build events and loaded at startup by the application.
>
**`Tools`** : vs22, net 6.0, autofac, simple-injector, scrutor, fluent-validation
**`Tools`** : net 8.0, autofac, simple-injector, scrutor, fluent-validation
Binary file modified plugins/Example01.Plugin.Slack.dll
Binary file not shown.
Binary file modified plugins/Example01.Plugin.Teams.dll
Binary file not shown.
Binary file modified plugins/Example02.Plugin.Slack.dll
Binary file not shown.
Binary file modified plugins/Example02.Plugin.Teams.dll
Binary file not shown.
Binary file modified plugins/Example03.Plugin.Slack.dll
Binary file not shown.
Binary file modified plugins/Example03.Plugin.Teams.dll
Binary file not shown.
Binary file modified plugins/Example04.Plugin.Slack.dll
Binary file not shown.
Binary file modified plugins/Example04.Plugin.Teams.dll
Binary file not shown.
1 change: 0 additions & 1 deletion src/Example01/Example01.App/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using Microsoft.Extensions.DependencyInjection;

var configuration = new ConfigurationBuilder()
.SetBasePath(Directory.GetCurrentDirectory())
.AddJsonFile("appsettings.json", optional: false, reloadOnChange: true)
.Build();

Expand Down
2 changes: 1 addition & 1 deletion src/Example01/Example01.App/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}
},
"Settings": {
"PluginsPath": "..\\..\\..\\..\\..\\..\\plugins",
"PluginsPath": "plugins",
"PluginsPattern": "Example01.Plugin.*.dll"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<ProjectReference Include="..\Example01.Core\Example01.Core.csproj" />
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(Configuration)' == 'Debug'">
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="copy /Y $(TargetDir)$(TargetName).dll $(SolutionDir)plugins" />
</Target>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<ProjectReference Include="..\Example01.Core\Example01.Core.csproj" />
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(Configuration)' == 'Debug'">
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="copy /Y $(TargetDir)$(TargetName).dll $(SolutionDir)plugins" />
</Target>

Expand Down
1 change: 0 additions & 1 deletion src/Example02/Example02.App/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using Microsoft.Extensions.DependencyInjection;

var configuration = new ConfigurationBuilder()
.SetBasePath(Directory.GetCurrentDirectory())
.AddJsonFile("appsettings.json", optional: false, reloadOnChange: true)
.Build();

Expand Down
2 changes: 1 addition & 1 deletion src/Example02/Example02.App/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}
},
"Settings": {
"PluginsPath": "..\\..\\..\\..\\..\\..\\plugins",
"PluginsPath": "plugins",
"PluginsPattern": "Example02.Plugin.*.dll"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<ProjectReference Include="..\Example02.Core\Example02.Core.csproj" />
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(Configuration)' == 'Debug'">
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="copy /Y $(TargetDir)$(TargetName).dll $(SolutionDir)plugins" />
</Target>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<ProjectReference Include="..\Example02.Core\Example02.Core.csproj" />
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(Configuration)' == 'Debug'">
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="copy /Y $(TargetDir)$(TargetName).dll $(SolutionDir)plugins" />
</Target>

Expand Down
1 change: 0 additions & 1 deletion src/Example03/Example03.App/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using Microsoft.Extensions.Configuration;

var configuration = new ConfigurationBuilder()
.SetBasePath(Directory.GetCurrentDirectory())
.AddJsonFile("appsettings.json", optional: false, reloadOnChange: true)
.Build();

Expand Down
2 changes: 1 addition & 1 deletion src/Example03/Example03.App/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}
},
"Settings": {
"PluginsPath": "..\\..\\..\\..\\..\\..\\plugins",
"PluginsPath": "plugins",
"PluginsPattern": "Example03.Plugin.*.dll"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<ProjectReference Include="..\Example03.Core\Example03.Core.csproj" />
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(Configuration)' == 'Debug'">
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="copy /Y $(TargetDir)$(TargetName).dll $(SolutionDir)plugins" />
</Target>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<ProjectReference Include="..\Example03.Core\Example03.Core.csproj" />
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(Configuration)' == 'Debug'">
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="copy /Y $(TargetDir)$(TargetName).dll $(SolutionDir)plugins" />
</Target>

Expand Down
1 change: 0 additions & 1 deletion src/Example04/Example04.App/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using Microsoft.Extensions.Configuration;

var configuration = new ConfigurationBuilder()
.SetBasePath(Directory.GetCurrentDirectory())
.AddJsonFile("appsettings.json", optional: false, reloadOnChange: true)
.Build();

Expand Down
2 changes: 1 addition & 1 deletion src/Example04/Example04.App/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}
},
"Settings": {
"PluginsPath": "..\\..\\..\\..\\..\\..\\plugins",
"PluginsPath": "plugins",
"PluginsPattern": "Example04.Plugin.*.dll"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<ProjectReference Include="..\Example04.Core\Example04.Core.csproj" />
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(Configuration)' == 'Debug'">
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="copy /Y $(TargetDir)$(TargetName).dll $(SolutionDir)plugins" />
</Target>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<ProjectReference Include="..\Example04.Core\Example04.Core.csproj" />
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(Configuration)' == 'Debug'">
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="copy /Y $(TargetDir)$(TargetName).dll $(SolutionDir)plugins" />
</Target>

Expand Down

0 comments on commit 0a46fcb

Please sign in to comment.