-
Notifications
You must be signed in to change notification settings - Fork 190
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
Bug in Microsoft.Azure.Functions.Worker.Sdk 1.17.0 #2305
Comments
@Anakinn Have you been consistently experiencing this issue? It might be helpful to try running 'dotnet clean' and deleting the obj and bin folders to see if that makes a difference. I also wanted to share that when I tested the scenario using worker.sdk version 1.17.0 in a minimal function app, I couldn't reproduce the problem. If you have the time, could you please check it out yourself in my minimal repro app? |
@kshyju Yes constantly reproducible in our build pipeline. obj and bin folders are not existing before the publish and we are doing clean, so every time all folders and everything is deleted and code is pulled, so we are doing clean every time. You need solution to reproduce this, I did not try csproj. As soon as we downgrade from 1.17.0 everything works fine. One more information, if you repeat publish but you do not remove obj and bin folder it is working. extensions.json file is generated but it is like something is trying to use that file before it is generated in obj folder. |
Might be the same as here: #2284 |
@Anakinn Could you upgrade to Microsoft.Azure.Functions.Worker.Sdk 1.17.2 and see that resolves your issue? |
@kshyju 1.17.2 is working as expected no error during publish. |
Fixed with 1.17.2 |
In my case, when I use the version
See also #2305 (comment) |
I am using V 1.17.4 and getting the same error \dotnet\sdk\8.0.303\Microsoft.Common.CurrentVersion.targets(5270,5): error MSB3030: Could not copy the file ...\obj\Release\net8.0\extensions.json" because it was not found. |
Getting this on 1.18.1 as well! |
Getting this as well with 1.18.1, downgrade to 1.17.2 and it works. |
Getting it on "Microsoft.Azure.Functions.Worker.Sdk" Version="2.0.0" , dotnet\sdk\8.0.403 |
Is there a workaround, please?
|
@kyle69 try -m:1 |
@Anakinn What is -m:1? A version downgrade? |
Had this happen again today:
Tried the rather cryptic
A bit of googling revealed this about the parameter:
But since the default value is 1, specifying it explicitly should not change any behaviour... Long story short workaround seems to work, but it all feels very finnicky and buggy. EDIT 1: |
Description
Try to do the publish of function which is using Microsoft.Azure.Functions.Worker.Sdk 1.17.0 you will get an error: error MSB3030: Could not copy the file "**obj\Release\net8.0\extensions.json"
If you downgrade to previous version it will work.
Also if you do build and publish as separate steps you will not get this error, you will get it only if you are doing publish.
Please fix.
Thank you.
Steps to reproduce
Try to do the publish of function which is using Microsoft.Azure.Functions.Worker.Sdk 1.1.7.0 without running build before.
The text was updated successfully, but these errors were encountered: