microsoft / vscode-azurefunctions

Azure Functions extension for VS Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions
MIT License
290 stars 133 forks source link

Fix containerized project creation for .NET projects #3988

Closed motm32 closed 8 months ago

motm32 commented 8 months ago

For some reason the func cli created .csproj and the .csproj we create don't have the same versions so we need to initialize the project for vscode after calling the func cli command instead of the other way around. This is only the case for .NET projects. We also are skipping the overwrite confirm as we always want the files to be overwritten in this case.

.NET 6.0 LTS also need to use the dotnet --worker-runtime instead of dotnet-isolated.