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

Build fails with .Net version related error #2

Open
animesh371 opened this issue Aug 18, 2021 · 1 comment
Open

Build fails with .Net version related error #2

animesh371 opened this issue Aug 18, 2021 · 1 comment

Comments

@animesh371
Copy link

I used the given sample to setup my function app. However it fails with the below error :-

image

@yaronpri
Copy link

yaronpri commented Sep 12, 2021

Hi @animesh371
I was able to resolve the issue.
The issue is that the deployment center in Azure recognize the project as .NET 4.0 which creating a mistake in the yaml file that created automatically.
If you will go to you github project and fix the build yaml file located under - your project / .github/ workflows/ yaml file
You will notice under 'env' section that the value is 'v4.0' while it should be '3.1.x'
you can look at my fixed file here -
https://github.com/yaronpri/functions-vnet-tutorial/blob/main/.github/workflows/main_yaron-tutorial-func.yml
Hope it will help.

VAO11 added a commit to VAO11/functions-vnet-tutorial that referenced this issue Oct 8, 2021
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