Releases clear the dev VersionSuffix in Directory.Build.props
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 48/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- csharp, github
- 領域
- build-system, release
調査の方向性
Start with Directory.Build.props and compare how the VersionSuffix condition is written with the behavior described for Craft's setMsBuildVersion in src/utils/versionPatterns.ts and readXmlTag in src/targets/nuget.ts. Check the proposed conditional element against Craft's version bump and version reading behavior, including the alternative of changing Craft. Done means non-Release builds retain the dev suffix after releases while Release builds and CI package versions remain unaffected.
索引モデルが issue の本文から書いたものです。
説明
Every release now clears the dev version suffix that non-Release builds get. The 6.13.0 release commit (e80b26ecc) did this on main:
<PropertyGroup Condition="'$(Configuration)' != 'Release' And '$(VersionSuffix)' == ''">
- <VersionSuffix>dev</VersionSuffix>
+ <VersionSuffix></VersionSuffix>
</PropertyGroup>
Since then, Debug builds of main are versioned 6.13.0 instead of 6.13.0-dev, so they look the same as the published release. Release builds aren't affected, and neither is anything CI packs or publishes.
Cause
Craft's MSBuild version bump clears every <VersionSuffix> in a file that has a <VersionPrefix>, so that MSBuild can't append it to the new version. See setMsBuildVersion in src/utils/versionPatterns.ts, added in getsentry/craft#955 on 2 November. It doesn't see that ours only applies outside Release builds. 7.0.0-rc.3 was cut before that change, which is why it kept the suffix. It will happen on every release from now on, including 7.0.0.
version7 still has dev. It was restored when main was merged into it in #5920. But the 7.0.0 release will clear it there, and craft then merges that into main.
Possible fix
Craft's regexes only match a bare <VersionSuffix> tag, both when it clears the suffix and when it reads the current version (readXmlTag in src/targets/nuget.ts). Moving the condition onto the element itself takes it out of craft's reach:
<VersionSuffix Condition="'$(Configuration)' != 'Release' And '$(VersionSuffix)' == ''">dev</VersionSuffix>
This depends on craft's regex rather than on documented behaviour. The alternative is asking craft to leave conditional suffixes alone.
#skip-changelog
- 主要言語
- C#
- スター
- 775
- フォーク
- 262
- 平均マージ
- 1日 16時間
- マージ済み PR(30日)
- 118
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
getsentry/sentry-dotnet のほかの issue
-
chore: remove stale IL3050/IL3053 workaround from the iOS sample対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンState: Needs Discussion
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
getsentry/sentry-dotnet#6071 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Heap dumps: every SDK shutdown logs "Error waiting for GarbageCollectionMonitor task to complete"対応中かも @pcbeingused33 が今日担当しました。 オープンState: Needs Discussion
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
getsentry/sentry-dotnet#6039 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
.NET Platform: Android Task
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
getsentry/sentry-dotnet#6020 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
Move the Blazor WebAssembly sample off the deprecated DevServer対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン.NET Framework: Blazor
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
getsentry/sentry-dotnet#5906 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Docs MSBuild Needs Docs Update
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
getsentry/sentry-dotnet#5691 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
getsentry/sentry-dotnet の issue をすべて見る
似ている issue
-
In-car displays show 0 km/h and P while the AV drives対応中かも @bazilinskyy が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
bazilinskyy/coupled-sim#366 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
BaryoDev/umbraco-pwa#196 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
microsoft/fluentui-blazor#5688 ·
メンテナーはふだん 1 日以内に返信
-
bug flaky lsp-transport small
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信