Skip to content

Debug startup fails "no Function runtime available" #5145

Closed
@zpittmansf

Description

@zpittmansf

Investigative information

Please provide the following:

  • Timestamp:
  • Function App version (1.0 or 2.0): 3.0
    Visual Studio 2019 16.3.6

Repro steps

Provide the steps required to reproduce the problem:

Start project in debug mode locally.
Immediately a Microsoft Visual Studio Error appears - "There is no Functions runtime available that matches the version specified in the project."

Here is the csproj properties, as far as I know this has not changed since it was working last.

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>netcoreapp3.0</TargetFramework>
    <AzureFunctionsVersion>v3-preview</AzureFunctionsVersion>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Microsoft.Azure.Functions.Extensions" Version="1.0.0" />
    <PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Kafka" Version="1.0.0-alpha" />
    <PackageReference Include="Microsoft.Extensions.Http" Version="3.0.0" />
    <PackageReference Include="Microsoft.NET.Sdk.Functions" Version="1.0.30-beta2" />
  </ItemGroup>
  <ItemGroup>
    <None Update="host.json">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </None>
    <None Update="local.settings.json">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
      <CopyToPublishDirectory>Never</CopyToPublishDirectory>
    </None>
  </ItemGroup>
</Project>

Expected behavior

It builds fine, it should startup at least.

Actual behavior

Fails to startup or even enter the azure function prompt.

Known workarounds

None

Related information

Provide any related information

  • Programming language used - C#
  • Links to source - N/A simple project on local

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions