Repository metrics
- Stars
- (470 stars)
- PR merge metrics
- (30d に merged PR はありません)
説明
Following setup:
- CommonA -- CommonA.sln -- CommonA --- CommonA.csproj
- CommonB -- CommonB.sln -- CommonB --- CommonB.csproj
- ConsumcerC -- ConsumerC.sln (includes currently only ConsumerC.csproj) -- ConsumerC --- ConsumerC.csproj
CommonB references CommonA via nuget ConsumerC references CommonA and CommonB via nuget
Created switcher.json for ConsumerC to replace CommonA and CommonB
{
"solution": ConsumerC.sln,
"mappings": {
"CommonA": "../CommonA/CommonA.csproj",
"CommonB": "../CommonB/CommonB.csproj"
}
}
dnt switch-to-project switcher.json
nuget References get switched recursively to project references. CommonB references CommonA as a project reference! ConsumerC.csproj references CommonA and CommonB as a project reference! ConsumerC.sln contains CommonA and CommonB + ConsumerC
dnt switch-to-packages switcher.json
Package references get switched back for ConsumerC.csproj, ConsumerC.sln contains only ConsumerC.csproj. Correct so far. But CommonB.csproj still contains the project reference to CommonA.csproj.
DNT (DotNetTools, https://github.com/RSuter/DNT, v1.2.2.0)