Adding latest package under configuration condition
- Dominant language
- C#
- Stars
- 3.2k
- Forks
- 1.3k
- PR merge metrics
- PR metrics pending
Description
I'm trying to move the following package reference section:
https://github.com/microsoft/microsoft-ui-reactor/blob/22b8650b27ecc0e13f0945bf005a706f57ab760f/tools/Templates/templates/WinUIApp-CSharp/Company.ReactorApp1.csproj#L65-L68
```xml
```
to use the add reference action (ID `B17581D1-C5C9-4489-8F0A-004BE667B814`) as described here: https://github.com/dotnet/templating/wiki/Post-Action-Registry#add-a-reference-to-a-project-file
However there doesn't appear to do it in a way that it goes into a conditional section.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with tools/Templates/templates/WinUIApp-CSharp/Company.ReactorApp1.csproj and the referenced Add a reference post-action documentation. Check how action ID B17581D1-C5C9-4489-8F0A-004BE667B814 handles project references and whether it supports a conditional section. Done means the Microsoft.UI.Reactor.Devtools reference is added through that action only for Debug configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 62/100