-
Notifications
You must be signed in to change notification settings - Fork 195
Microsoft.Azure.Functions.Worker.Sdk
2.0.3
causes MSBuild to fail to load Functions project
#3066
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
Comments
Same |
Same thing happening here after an upgrade to version 2.0.3. |
Same thing happening here. I can also confirm that downgrading back to 2.0.2 avoids the error as described. |
Same thing for me. |
same |
same |
The fix is available in 2.0.4 |
Unfortunately for me, it dredges up another error "The project file "obj\Debug\net8.0\WorkerExtensions\WorkerExtensions.csproj" was not found.", which is why I downgraded in the first place. Nightmare. |
Description
When we migrated to
Microsoft.Azure.Functions.Worker.Sdk
version2.0.3
earlier today, I started noticing that my project appeared completely broken: when navigating toProgram.cs
, it would show red squiggles all over the place, nothing was resolved properly. Yet, the project would actually build just fine, which is extremely unusual.I then noticed an error in the Errors window, coming from the
.targets
that is part of theMicrosoft.Azure.Functions.Worker.Sdk
package:When clicking on the error, I'm directed to this line:
azure-functions-dotnet-worker/sdk/Sdk/Targets/Microsoft.Azure.Functions.Worker.Sdk.targets
Line 165 in d0024ba
I initially tried clearing caches, deleting
bin/obj
folders, closing Visual Studio and deleting the.vs
folder, the usual. However, the same issue would always happen when I opened and built the solution.Downgrading to version
2.0.2
avoids this error completely and the project looks clean again, so I'm suspecting it is a bug in the library side.Steps to reproduce
Install version
2.0.3
ofMicrosoft.Azure.Functions.Worker.Sdk
and build a Functions v4 project.The text was updated successfully, but these errors were encountered: