Remove the unused `Microsoft.AspNet.WebApi.Client` package
還沒有人認領這個 Issue。
評估
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 新手友好度
- 84/100
- Issue 類型
- 重構
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 技術堆疊
- csharp
- 領域
- backend, build-system
研究方向
從 QuickbaseNet/QuickbaseNet.csproj 和 QuickbaseNet/Services/QuickbaseClient.cs 第 2 行的 using 開始,了解 net48 的參考需求。移除套件參考並新增指定的條件式 System.Net.Http 參考,接著執行 dotnet build、dotnet test 和 dotnet pack QuickbaseNet -o out。當所有列出的目標架構都能建置、測試通過,且打包後的 nuspec 不再列出該套件時,工作即告完成。
由索引模型根據 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
PackageReferenceon line 10 ofQuickbaseNet/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'sSystem.Net.Httpassembly. 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.csprojQuickbaseNet/Services/QuickbaseClient.cs, line 2 (theusingthat breaks)
Done when
- The package reference is gone
-
dotnet buildsucceeds for netstandard2.0, netstandard2.1, net5.0, net6.0 and net48 -
dotnet testpasses -
QuickbaseNet.nuspecinside the package fromdotnet packno longer listsMicrosoft.AspNet.WebApi.Client(a.nupkgis 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 分鐘
- 30 天內合併 PR
- 2
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
hazeliscoding/quickbase-net 的其他 Issue
-
good first issue
難度 2/5 1-3 小時 新手友好度 88/100
-
Add `Skip()` and `Top()` to `QuickbaseQueryBuilder`可能已有人在做 @bercedev 於 2 天前認領。 未關閉enhancement good first issue
難度 2/5 1-3 小時 新手友好度 88/100
hazeliscoding/quickbase-net#16 · 1 則留言 ·
-
Update the package metadata that still points at ducksoop可能已有人在做 @hazeliscoding 於 4 天前認領。 未關閉
hazeliscoding/quickbase-net#15 · 已指派 1 人 ·
查看 hazeliscoding/quickbase-net 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 76/100
Nimblesite/SharpLsp#468 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 88/100
elastic/ecs-dotnet#575 ·
-
alerts bug effort:S P2
難度 2/5 1-3 小時 新手友好度 76/100
nightscout/nocturne#2511 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 2 天內回覆
-
Crash in v3.00未關閉
難度 2/5 1-3 小時 新手友好度 62/100
arkane-systems/mousejiggler#140 ·