-
Notifications
You must be signed in to change notification settings - Fork 373
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
Add support for easier CentralPackageManagement options #6187
Comments
Can be related to the topic: |
related to dotnet/aspnetcore#48569 |
related to dotnet/aspnetcore#48569 |
@YuliiaKovalova Is there any recommended way to fix that at the moment? Given that we are less advanced on test-template side, I'd like to simply copy/follow recommendations. |
@Evangelink , we are investigating the possibility of PostAction usage for resolving this issue. |
Hi @dansiegel , @Evangelink , Sorry for the long reply. template.json:
Company.TestProject1.csproj
Directory.Packages.props
Please let me know if it helps you. |
Close due to the existing workaround described in #6187 (comment). |
I'm going to reopen this because while a workaround is useful, a proper, baked in postaction or first-class extension to the templating schema for .Net projects for managing packages would be a boon for template authors. |
Specific teams that want an improved experience here:
|
Speculating here but...here's more:
|
My company is trying to establish consistent use of CPM in all of our open-source projects and encourage our developer community to use it. This recommendation/guidance requires additional explanations of why/how It would be really nice to have the templating for templates we don't control (e.g. |
My company (DevExpress) would also like to see improvements in this area. We're increasingly adopting central package management in our products, and want to allow it as an option for project templates as well. But the lack of built-in support for CPM is making it difficult to implement, and the suggested workarounds are too complex to maintain. |
Is your feature request related to a problem? Please describe.
As CentralPacakgeManagement becomes more mainstream it is something we would like to offer as an option in our templates like:
Currently we would need to have dependencies in our template like:
Describe the solution you'd like.
Add a post action that can work from any host (VS/CLI/etc) which can remove versions on PackageReferences. This could be purpose build to strip out any PackageReference Version. Or to make this the most useful for a variety of situations perhaps a Regex Replace Post Action could be more useful.
Additional context
No response
The text was updated successfully, but these errors were encountered: