This repository has been archived by the owner on Dec 12, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use McMaster.NETCore.Plugins for assembly loading (#156)
* Engine uses `McMaster.NETCore.Plugins` package to resolve assemblies and dependencies, enabling generators to reference additional dependencies! 🎉 * Tasks deprecate `GeneratorAssemblySearchPaths` usage * Tasks use `CodeGenerationRoslynPlugin` ItemGroup instead, which contains concrete assembly paths (instead of containing folder paths, as was previously) * Engine targets `netcoreapp2.0` to reference McMaster package * Tests use Amadevus.RecordGenerator NuGet generator for back-compat checks * Tests.Generators use Bogus NuGet for NuGet dependency resolution check * `CodeGeneration.Roslyn.Plugin.Sdk` MSBuild project Sdk created, to help build and package plugins correctly. * Migrate to use VS2019/.NET Core SDK v3.1 * Rewritten Readme with a simpler demo and more advanced scenarios * Change input assemblies check Now the list of plugin assemblies is always read from response file (plugin list), the last modified time is calculated using those assemblies, and the .AssemblyList.txt file is not created. Also separated reading the results into another target, and set Inputs and Outputs so that the MSBuild can fully skip executing the target that invokes CLI tool. * Rename BuildTime targets private items * add comment to BuildTime targets * feature: create Plugin.Sdk project initial idea in #113 * fix GenerateCodeFromAttributesCore condition _CodeGenToolVersionExitCode was compared to zero via != instead of == * fix CGR1002 warning in Tests * refactor and cleanup BuildTime files * refactor Tests project file * docs: readme demo and more for new Plugins.Sdk * don't prefer shared types, use explicit list this will allow different plugins to have conflicting dependencies * refactor: rename dictionary to cachedPlugins * fix: Use OutputItemType in Sample * docs: Add changelog for plugins PR
- Loading branch information
Showing
19 changed files
with
558 additions
and
319 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/CodeGeneration.Roslyn.BuildTime/build/CodeGeneration.Roslyn.BuildTime.props
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
src/CodeGeneration.Roslyn.Engine/CodeGeneration.Roslyn.Engine.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.