Skip to content

Adding latest package under configuration condition #10432

Description

@dotMorten

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

    <ItemGroup Condition="'$(Configuration)' == 'Debug'">
        <PackageReference Include="Microsoft.UI.Reactor.Devtools" Version="MS_UI_REACTOR_VERSION" />
    </ItemGroup>

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions