dotnet / dotnet/arcade

genfacades fails on file-scoped namespaces

Open
#11,441 0 comments 0 reactions 0 assignees View on GitHub
area-Infrastructure-libraries
Dominant language
C#
Stars
729
Forks
397
Avg merge
3d 15m
Merged PRs (30d)
149

Description

If genfacades encounters a file-scoped namespace, it fails:
```
C:\Users\stoub\.nuget\packages\microsoft.dotnet.genfacades\8.0.0-beta.22524.5\build\Microsoft.DotNet.GenPartialFacadeSource.targets(28,5): error : Unable to cast object of type 'Microsoft.CodeAnaly
sis.CSharp.Syntax.FileScopedNamespaceDeclarationSyntax' to type 'Microsoft.CodeAnalysis.CSharp.Syntax.BaseTypeDeclarationSyntax'.
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.