Directory.Packages.props with more complex PackageReference does not execute regex replace
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start with the regex in src/DotNetOutdated.Core/Services/CentralPackageVersionManagementService.cs (around line 47), which matches the version inside a GlobalPackageReference element. Reproduce with a Directory.Packages.props where that element spans several lines with nested PrivateAssets and IncludeAssets children, then compare it with the single-line workaround in the issue. Done when the multi-line form is updated to the latest version and the single-line form still works.
索引モデルが issue の本文から書いたものです。
説明
When using (global) Central Package Management via Directory.Packages.props and the <GlobalPackageReference line in question is not a simple single line with self-closing tag /> (such as when specifying controlling assets use-case) the dotnet outdated -u command does correctly recognize the nugets to update, and runs through the process to completion, however does not actually update the Directory.Packages.props file contents.
Without digging to much into this codebase, I am assuming the issue is with Regex here perhaps
Edit: after playing around with the regex, seems a potentially temporary workaround is to put everything on the same line and mark end of line with comment of closing tag it is looking for, such as:
<GlobalPackageReference Include="coverlet.collector" Version="6.0.0"><PrivateAssets>all</PrivateAssets><IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets></GlobalPackageReference><!-- /> -->
then the update completes successfully, changing to latest version 6.0.2 properly
- 主要言語
- C#
- スター
- 1.7k
- フォーク
- 172
- 平均マージ
- 1日 19時間
- マージ済み PR(30日)
- 39
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
dotnet-outdated/dotnet-outdated のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
dotnet-outdated/dotnet-outdated#871 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
dotnet-outdated/dotnet-outdated#844 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
dotnet-outdated/dotnet-outdated#677 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
dotnet-outdated/dotnet-outdated#354 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 38/100
dotnet-outdated/dotnet-outdated#845 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
dotnet-outdated/dotnet-outdated の issue をすべて見る
似ている issue
-
triage/untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
unoplatform/uno#26676 ·
メンテナーはふだん 1 日以内に返信
-
.NET bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
jhaizhou-ops/S2Arm#2177 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
area-CodeGen-coreclr untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
dotnet/runtime#138181 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
S: Untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 2 日以内に返信