Closed Zachwiany closed 5 months ago
thanks for reporting pls share the funct app name.
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.
Recently I updated my functions dependency
Microsoft.NET.Sdk.Functions
from version 4.1.1 to 4.2.0, but it cause my publishing script to fail - I'm calling MSBuild command as follows:%MSBUILD% %PROJECT% /t:restore;rebuild /v:m /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% /p:DeployOnBuild=true /p:PublishProfile=%PUBLISH_PROFILE_NAME% /p:Password=%PUBLISH__PROFILE_PASSWORD%
It fails at ZipDeployTask (works fine when run from VS, I guess it uses different task at some point, doesn't work both from CMD and VS command prompt):
Each line of call stack started with
USER\.nuget\packages\microsoft.net.sdk.functions\4.2.0\build\Microsoft.NET.Sdk.Functions.Publish.ZipDeploy.targets(46,5):
- removed it for clarity and replaced user directory name.I found that in![image](https://github.com/Azure/azure-functions-vs-build-sdk/assets/43302152/43d89e33-8497-4f42-b881-7441398ce640)
tools
directory of the package there is Newtonsoft.Json.dll (version 11. for4.1.1
, 13. for4.1.2
and later on) and three other dll's. The first one references Newtonsoft.Json.dll using proper version included in the package:The second one, which contains failing ZipDeployTask, refers to old version that is no longer there:![image](https://github.com/Azure/azure-functions-vs-build-sdk/assets/43302152/80fdce01-02c9-4f45-821a-55db96bf18d4)
Any fix or workaround?