How could I select to which ItemGroup
the Content
entries get added. I am using the .csproj extension in VS Code.
E.g. if I have the following:
<ItemGroup>
</ItemGroup>
<ItemGroup>
</ItemGroup>
Then there are two options:
<ItemGroup>
<Content Include="folder\foo.extension" />
</ItemGroup>
<ItemGroup>
</ItemGroup>
and
<ItemGroup>
</ItemGroup>
<ItemGroup>
<Content Include="folder\foo.extension" />
</ItemGroup>
I would like to control which option is used. My ultimate goal is to have the same behavior in VS Code
as it is in VS 2022
.
It doesn't matter which ItemGroup you select, neither does the order.
Usage of Item, ItemGroup elemtens
Posible values for Content
Works fine with dotnet cli (VS Code)
<ItemGroup>
<Content Include="folder/foo.extension">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>