dotnet / dotnet/sdk

Adding latest package under configuration condition

Open
#55,927 0 comments 0 reactions 0 assignees View on GitHub
untriaged
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.