dotnet/roslyn

Custom BannedSymbols file name and extension

Open

#78,124 创建于 2025年4月11日

在 GitHub 查看
 (1 评论) (1 反应) (0 负责人)C# (4,257 fork)batch import
Area-IDEhelp wanted

仓库指标

Star
 (20,414 star)
PR 合并指标
 (平均合并 6天 17小时) (30 天内合并 256 个 PR)

描述

I am trying to use the Microsoft.CodeAnalysis.BannedApiAnalyzers package in Unity.

The problem I have is that Unity requires that the name has to have a specific format and the extension is .additionalfile so it will not work correctly because it will not be able to call BannedSymbols.txt.

https://docs.unity3d.com/Manual/roslyn-analyzers-additional-files.html

That is why I would like to configure the format of the name and extension to be discovered by this package so that it can work with Unity and incidentally to be more customizable and not have the restriction that the name and extension has to be a specific one.

贡献者指南