Skip to content

Commit

Permalink
Rename plugins folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Aymen TROUDI authored and Aymen TROUDI committed Aug 10, 2023
1 parent ce18018 commit b220598
Show file tree
Hide file tree
Showing 16 changed files with 14 additions and 14 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[![.NET](https://github.com/aimenux/PluginArchitectureDemo/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/aimenux/PluginArchitectureDemo/actions/workflows/ci.yml)

# 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 @@ -13,7 +13,7 @@ Using various ways to illustrate plugin architecture
>
> :three: `Example03` use [autofac](https://github.com/autofac/Autofac) in order to load plugins
>
> :bulb: Plugins are copied on `files` folder on post build events and loaded at startup by the application.
> :bulb: Plugins are copied on `plugins` folder on post build events and loaded at startup by the application.
>
**`Tools`** : vs22, net 6.0, autofac, scrutor
**`Tools`** : vs22, net 6.0, autofac, scrutor
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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": "..\\..\\..\\..\\..\\..\\files",
"PluginsPath": "..\\..\\..\\..\\..\\..\\plugins",
"PluginsPattern": "Example01.Plugin.*.dll"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</ItemGroup>

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

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</ItemGroup>

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

</Project>
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": "..\\..\\..\\..\\..\\..\\files",
"PluginsPath": "..\\..\\..\\..\\..\\..\\plugins",
"PluginsPattern": "Example02.Plugin.*.dll"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</ItemGroup>

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

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</ItemGroup>

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

</Project>
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": "..\\..\\..\\..\\..\\..\\files",
"PluginsPath": "..\\..\\..\\..\\..\\..\\plugins",
"PluginsPattern": "Example03.Plugin.*.dll"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</ItemGroup>

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

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</ItemGroup>

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

</Project>

0 comments on commit b220598

Please sign in to comment.