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

Use PackageLicenseExpression (MIT) in the NuGet package metadata

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1 小时以内
新手友好度
84/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
csharp
领域
build-system

调研方向

从 src/Microsoft.Graph/Microsoft.Graph.csproj 开始,检查 PackageLicenseFile 周围的 NuGet 许可证元数据。将包声明更改为 issue 中所述的 MIT SPDX 表达式,然后构建或打包项目,并确认生成的 NuGet 元数据报告 MIT。

由索引模型根据 Issue 内容生成。

描述

status:waiting-for-triage type:bug
Describe the bug

Hi,

you declare license as a file inside the package:
This comes from LICENSE.txt in src/Microsoft.Graph/Microsoft.Graph.csproj. The README states that the library is licensed under the MIT license, but tools that read NuGet metadata, such as license scanners and dependency update bots, only see the file reference. They report the license as unknown, and we have to check it by hand each time we update the package.

Would you consider declaring the license as an SPDX expression instead?

Thank you for considering this! 😊

Expected behavior

Expected: the NuGet Gallery and tooling show the license as MIT without opening the file.

How to reproduce
SDK Version

No response

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output
Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_
主要语言
C#
星标
791
派生
263
平均合并
58 分钟
30 天内合并 PR
3

环境准备

从这里开始

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

microsoftgraph/msgraph-sdk-dotnet 的其他 Issue

查看 microsoftgraph/msgraph-sdk-dotnet 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

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