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

After configuring Blob in Azure Function (.NET framework isolated v4), an error message "Feature 'using declarations' is not available in C# 7.3. Please use language version 8.0 or greater" appeared. #1559

Open
phenning opened this issue Sep 4, 2024 · 2 comments

Comments

@phenning
Copy link

phenning commented Sep 4, 2024

REPRO STEPS

  1. File > New > Project > Azure Functions > .NET Framework lsolated v4 ~ select "Blob trigger" and set the connection string setting name with "AzuriteStorage" > Create.
  2. Select "Storage Azurite emulator (Local)" > Next, Keep the connection string name and value default> Next > Finish.

image
image

Internal bug: https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1874704/

Introduced here:
daf6b58

@phenning
Copy link
Author

phenning commented Sep 4, 2024

This is happening because net48 uses LangVersion 7.3 by default.

Possible fixes:
Update just net48 project template to use LangVersion 8.0 explictly.
Update all project templates to use 'latest'
Update project templates to pick a particular known good langversion.

@phenning
Copy link
Author

phenning commented Sep 4, 2024

@mattchenderson @fabiocav FYI, this is an older issue, but I've been going through the internal backlog and am going to resolve the internal issue as external to this issue.

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

1 participant