Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration Binder source generator creates namespace ambiguity and not found error #109759

Open
ciaozhang opened this issue Nov 13, 2024 · 3 comments
Labels
area-Extensions-Configuration source-generator Indicates an issue with a source generator feature
Milestone

Comments

@ciaozhang
Copy link

ciaozhang commented Nov 13, 2024

Description
When trying to use the Configuration Binder source generator in Microsoft.IdentityModel.S2S.DstsExtensions project, I'm getting compile errors.
Branch: https://identitydivision.visualstudio.com/DevEx/_git/Microsoft-IdentityModel-S2S/commit/57acb8a13628371366f73cb0730d3f7abe8a712a?refName=refs%2Fheads%2FXiao%2FTrimDsts

Reproduction Steps
build Microsoft.IdentityModel.S2S.DstsExtensions project with VS

Expected behavior
The project should build successfully.

Actual behavior
There are 3build errors:

Image

Here is the generated code:

https://microsoft-my.sharepoint-df.com/:w:/p/zhangxia/EQOQ4EWvfOdLoTSeUkg552wBEdsfceiutcTixc-Sg_xVgA?e=pOfPuJ

@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Nov 13, 2024
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-extensions-configuration
See info in area-owners.md if you want to be subscribed.

@tarekgh tarekgh added this to the 10.0.0 milestone Nov 13, 2024
@tarekgh tarekgh added source-generator Indicates an issue with a source generator feature and removed untriaged New issue has not been triaged by the area owner labels Nov 13, 2024
@tarekgh
Copy link
Member

tarekgh commented Nov 13, 2024

@ciaozhang I didn't try it yet but maybe it is worth trying the configuration package v9.0.0. We have fixed some issues like https://github.com/dotnet/runtime/issues?q=is%3Aissue%20label%3Aarea-Extensions-Configuration%20label%3Asource-generator%20CredentialDescription.

@tarekgh
Copy link
Member

tarekgh commented Nov 13, 2024

CC @ericstj @eerhardt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Extensions-Configuration source-generator Indicates an issue with a source generator feature
Projects
None yet
Development

No branches or pull requests

2 participants