Closed areriklq closed 2 months ago
The function I generated using the "Azure Functions" extension in VSCode does not compile.
However, running dotnet build in does build the project.
dotnet build
I am getting a lot of errors, see image below:
$ dotnet --version 8.0.103
Azure Functions v1.14.3
csproj
<PropertyGroup> <TargetFramework>net8.0</TargetFramework> <AzureFunctionsVersion>v4</AzureFunctionsVersion> <OutputType>Exe</OutputType> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> <RootNamespace>MyApp</RootNamespace> </PropertyGroup> <ItemGroup> <FrameworkReference Include="Microsoft.AspNetCore.App" /> <PackageReference Include="Microsoft.Azure.Functions.Worker" Version="1.20.1" /> <PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http" Version="3.1.0" /> <PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore" Version="1.2.0" /> <PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="1.16.4" /> <PackageReference Include="Microsoft.ApplicationInsights.WorkerService" Version="2.21.0" /> <PackageReference Include="Microsoft.Azure.Functions.Worker.ApplicationInsights" Version="1.1.0" /> </ItemGroup> <ItemGroup> <None Update="host.json"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Update="local.settings.json"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToPublishDirectory>Never</CopyToPublishDirectory> </None> </ItemGroup> <ItemGroup> <Using Include="System.Threading.ExecutionContext" Alias="ExecutionContext" /> </ItemGroup> </Project>
Closing this one. Restarting Visual Studio Code solved the issue for me.
Might be of interest anyway, but my immediate issue is resolved.
The function I generated using the "Azure Functions" extension in VSCode does not compile.
However, running
dotnet build
in does build the project.I am getting a lot of errors, see image below:![image](https://github.com/Azure/azure-functions-templates/assets/156663890/fe8b3731-01f7-473d-bb75-a80041d4949d)
csproj