-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
[ASPNETCORE] Add support for central package version management #20401
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
[ASPNETCORE] Add support for central package version management #20401
Conversation
…sion-management-option
…ithub.com/Urganot/openapi-generator into Urganot-central-package-version-management-option
#20403) * Fixed default value for usePackageVersions * Regenerated docs
|
https://github.com/OpenAPITools/openapi-generator/actions/runs/12636467556/job/35208601636?pr=20401 @Urganot can you please review the build errors when you've time? |
|
FYI. Tested with |
|
I know what happens here. |
how do you use it in your non-generated solution? maybe creating a simple HelloWorld C# project/app that depends on or consumes |
modules/openapi-generator/src/main/resources/aspnetcore/3.0/Project.csproj.mustache
Outdated
Show resolved
Hide resolved
You mean as demo or to fix the error? |
|
I created a simple repo showing how it works: https://github.com/Urganot/OpenApi-Centralized-Package-Demo It doesnt matter how I use the generated project. What matters is that there is a |
|
what about manually adding |
|
If that is ok for you, I can do that. |
…APITools#20401) * Added useCentralPackageVersionManagement option for aspnetcore * Removed debug code from template * Added option to opt out of centralized version management * Added sample for centralized version management * Removed changes for .net9 * Updated template file for model project * Code formatting * Corrected sample config for aspnetcore * Regenerated Samples * update samples, docs * Fixed models project mustache file * Regenerated samples and docs * Regenerated smaples and doc * Changed options to enum WIP * fix option * [ASPNETCORE] Add support for central package version management OpenAPITools#20192 (OpenAPITools#20403) * Fixed default value for usePackageVersions * Regenerated docs * update workflow * add props file --------- Co-authored-by: Urganot <[email protected]>
based on #20192
PR checklist
Commit all changed files.
This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
These must match the expectations made by your contribution.
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example
./bin/generate-samples.sh bin/configs/java*.IMPORTANT: Do NOT purge/delete any folders/files (e.g. tests) when regenerating the samples as manually written tests may be removed.
master(upcoming7.x.0minor release - breaking changes with fallbacks),8.0.x(breaking changes without fallbacks)