Azure / Azure/azure-functions-core-tools

Can't determine project language from files

Open
#2,050 27 comments 0 reactions 0 assignees View on GitHub
Needs: Attention :wave:
Dominant language
C#
Stars
1.5k
Forks
498
Avg merge
5d 4h
Merged PRs (30d)
15

Description

When F5 debugging in Visual Studio 2019, I get multiple warnings from the CLI tools not being able to determine the project language, but the function is hosted locally with no issues and can be triggered, but the `Hosting Environment` is set to `Production`.

Azure Function Project is `netcoreapp3.1`, in a solution with a class library which is `netstandard2.0`, the Azure Function project is set as the Startup Project.

![image](https://user-images.githubusercontent.com/11563347/85230638-687d1080-b3e9-11ea-881e-6ee5e36562ce.png)

If I use `func start --csharp` from the command line, I don't get any warnings and the `Hosting Environment` is set to `Development`.

Any ideas on where Visual Studio 2019 is getting things wrong?

Contributor guide

Open the contributing guide

Research direction

Reproduce F5 debugging in Visual Studio 2019 with the netcoreapp3.1 Azure Function project and its netstandard2.0 class library, then compare it with `func start --csharp`. Check the CLI warnings and Hosting Environment value in each path; done when Visual Studio starts locally without language warnings and uses Development as the environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp
Domain
cloud, devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.