Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Remove the unused `Microsoft.AspNet.WebApi.Client` package

オープン 初心者向け
#19 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
84/100
issue の種類
リファクタリング
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
csharp

調査の方向性

QuickbaseNet/QuickbaseNet.csprojと、QuickbaseNet/Services/QuickbaseClient.csの2行目にあるusingから始め、net48の参照要件を理解します。パッケージ参照を削除し、指定された条件付きのSystem.Net.Http参照を追加してから、dotnet build、dotnet test、dotnet pack QuickbaseNet -o outを実行します。列挙されたすべてのターゲットフレームワークでビルドが成功し、テストが通り、パッケージ化されたnuspecにそのパッケージが記載されなくなれば完了です。

索引モデルが issue の本文から書いたものです。

説明

good first issue

QuickbaseNet.csproj references Microsoft.AspNet.WebApi.Client 6.0.0, but the library never uses it: there's no System.Net.Http.Formatting, ReadAsAsync or PostAsJsonAsync anywhere. Every project that installs QuickbaseNet still pulls it in. ROADMAP.md plans its removal for 1.1.

What to do

  • Delete the PackageReference on line 10 of QuickbaseNet/QuickbaseNet.csproj.
  • That breaks the net48 build with CS0234: The type or namespace name 'Http' does not exist in the namespace 'System.Net', because the package was what referenced the framework's System.Net.Http assembly. Add the reference back for net48 only:
<Reference Include="System.Net.Http" Condition="'$(TargetFramework)' == 'net48'" />
  • No code changes should be needed.

Where to look

  • QuickbaseNet/QuickbaseNet.csproj
  • QuickbaseNet/Services/QuickbaseClient.cs, line 2 (the using that breaks)

Done when

  • The package reference is gone
  • dotnet build succeeds for netstandard2.0, netstandard2.1, net5.0, net6.0 and net48
  • dotnet test passes
  • QuickbaseNet.nuspec inside the package from dotnet pack no longer lists Microsoft.AspNet.WebApi.Client (a .nupkg is a zip file)

Testing it

dotnet build
dotnet test
dotnet pack QuickbaseNet -o out

net48 builds on Linux and macOS too. CI builds it on Ubuntu.

主要言語
C#
スター
3
フォーク
2
平均マージ
3時間 14分
マージ済み PR(30日)
2

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

hazeliscoding/quickbase-net のほかの issue

hazeliscoding/quickbase-net の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。