Skip to content

Add namespace warning suppression to KernelPlanningExtensions.cs#320

Merged
lemillermicrosoft merged 1 commit intomicrosoft:mainfrom
lemillermicrosoft:plan_build_fix
Apr 4, 2023
Merged

Add namespace warning suppression to KernelPlanningExtensions.cs#320
lemillermicrosoft merged 1 commit intomicrosoft:mainfrom
lemillermicrosoft:plan_build_fix

Conversation

@lemillermicrosoft
Copy link
Member

Motivation and Context

Fix the build

Description

This commit adds a pragma directive to suppress the IDE0130 warning that suggests using the file name as the namespace for the KernelPlanningExtensions.cs file. This warning is not applicable for extension methods, as they need to be in the same namespace as the type they are extending. The commit also adds a using directive for the Microsoft.SemanticKernel.Planning namespace, which is needed for the extension methods.

Contribution Checklist

      Summary: This commit adds a pragma directive to suppress the IDE0130 warning that suggests using the file name as the namespace for the KernelPlanningExtensions.cs file. This warning is not applicable for extension methods, as they need to be in the same namespace as the type they are extending. The commit also adds a using directive for the Microsoft.SemanticKernel.Planning namespace, which is needed for the extension methods.
@lemillermicrosoft lemillermicrosoft merged commit b106689 into microsoft:main Apr 4, 2023
dehoward pushed a commit to lemillermicrosoft/semantic-kernel that referenced this pull request Jun 1, 2023
…rosoft#320)

### Motivation and Context
Fix the build

### Description
This commit adds a pragma directive to suppress the IDE0130 warning that
suggests using the file name as the namespace for the
KernelPlanningExtensions.cs file. This warning is not applicable for
extension methods, as they need to be in the same namespace as the type
they are extending. The commit also adds a using directive for the
Microsoft.SemanticKernel.Planning namespace, which is needed for the
extension methods.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants