-
Notifications
You must be signed in to change notification settings - Fork 191
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
Updating WorkerExtensions.csproj to net8 #2924
Comments
Concern: .NET 6 is out of support and will not receive security fixes. As such, this is security-relevant: If .NET 6 happens to have a security issue within it that is not purely in the dotnet 6 runtime, the WorkerExtensions would be affected. |
@kescherCode that will not matter here: .net6 runtime is out of support. WorkerExtensions.csproj only uses net6 for a compile time dependency. The runtime is determined by the function host, which with dotnet-isolated is net8. |
@jviau please read my comment again. I specifically pointed out that security issues can not only occur in the runtime. |
Can you give an example of a security issue? |
Our use case is a custom trigger that pushes data from Salesforce and that needs to be updated. The client package has a dependency to net7.0, itself having a dependency to Microsoft.Extensions.Logging.Abstractions targetting net.7.0 When trying to update, I first tried to target net8.0 and WorkerExtensions wouldn't build. I then tried to target 6.0 and it built. But then during runtime on Azure, I got the following error: Are customer triggers simply not going to be supported in the future? Hope that's helpful! |
This was an issue with the host and unrelated to the TFM of the worker extension project.
I understand how this can block custom triggers from taking on dependencies that rely on >net6.0. However, this isn't outright blocked today. It will just take manual effort on your part to hook into MSBuild targets and update |
@jviau so far, I am of course talking about hypotheticals. This has not happened yet. |
Description
Now that the functions host is net8, we should update the WorkerExtensions.csproj to net8.
Important
.NET6 being out of support is not a concern with WorkerExtensions.csproj. This project is purely a compile time mechanism to create an extension bundle for the functions host to load. The actual runtime used is determined by the functions host, which for dotnet isolated is NET8. Additionally, the .NET SDK used is determined by the build environment, not the TFM.
Concern
Some special cases may still load in the net6 in-proc host, such as logic apps. We will need to provide a way to ensure they remain on net6.
The text was updated successfully, but these errors were encountered: