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

VisualStudioCredential is supported in .NET Framework container? #403

Open
noh626 opened this issue Sep 15, 2023 · 1 comment
Open

VisualStudioCredential is supported in .NET Framework container? #403

noh626 opened this issue Sep 15, 2023 · 1 comment

Comments

@noh626
Copy link

noh626 commented Sep 15, 2023

Hi, I'm currently trying to incorporate docker tools into my projects.

For my .NET 6 application, everything runs smoothly. However, I'm encountering a challenge with an application built on .NET Framework related to obtaining the DefaultAzureCredential. It looks like both the tokenprovider.json and token proxy are absent within the container.

The error I receive is as follows:
Visual Studio Token provider cannot be accessed at C:\Users\ContainerAdministrator\AppData\Local\.IdentityService\AzureServiceAuth\tokenprovider.json.

From my observations, the token proxy mounted from my local system to the Docker container seems to be for dotnet core.

I'm wondering if the VisualStudioCredential is compatible with the .NET Framework, or if there's something I missed. Any help would be appreciated.

@NCarlsonMSFT
Copy link
Member

@noh626 unfortunately yes, the current support for tokens relies on .NET 6+ being isntalled in the container.

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

No branches or pull requests

2 participants