Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

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

未关闭 适合新手
#19 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
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
平均合并
5 小时 53 分钟
30 天内合并 PR
1

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

hazeliscoding/quickbase-net 的其他 Issue

查看 hazeliscoding/quickbase-net 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。