Azure-Functions
Azure-Functions copied to clipboard
Adding new function modifies Microsoft.NET.Sdk.Functions reference to old version
Adding a new function to an existing project modifies the existing nuget Microsoft.NET.Sdk.Functions version to 1.0.0.
Repro steps
- Visual Studio 2017 update 3 (15.3.2)
- Add new item on existing project with nuget reference Microsoft.NET.Sdk.Functions 1.0.2
- Select Azure Function (I tried several trigger types)
- Note the Microsoft.NET.Sdk.Functions version revert to 1.0.0
- Bonus step if you have CI configured: commit & push -> deployment error
+1 Updating to 1.0.2 addresses the MSB3677 errors (cannot move file) on deployment, but then adding another function to the project reverts the nuget package to 1.0.0
Workaround is to 'update-package Microsoft.NET.Sdk.Functions' after adding the new function.
+1 I was wonder why the heck this was happening and then I remembered this issue
This is apparently fixed in VS 15.4, as per https://docs.microsoft.com/en-us/azure/azure-functions/functions-develop-vs