RicoSuter/DNT

dnt switch-to-packages doesn't restore recursive

オープン

#42 opened on 2019/05/10

 (7 件のコメント) (0 件のリアクション) (0 人の担当者)C# (75 件のフォーク)github user discovery
help wanted

Repository metrics

Stars
 (472 個のスター)
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)

コントリビューターガイド