Azure-Functions icon indicating copy to clipboard operation
Azure-Functions copied to clipboard

Adding new function modifies Microsoft.NET.Sdk.Functions reference to old version

Open frli opened this issue 9 years ago • 3 comments

Adding a new function to an existing project modifies the existing nuget Microsoft.NET.Sdk.Functions version to 1.0.0.

Repro steps

  1. Visual Studio 2017 update 3 (15.3.2)
  2. Add new item on existing project with nuget reference Microsoft.NET.Sdk.Functions 1.0.2
  3. Select Azure Function (I tried several trigger types)
  4. Note the Microsoft.NET.Sdk.Functions version revert to 1.0.0
  5. Bonus step if you have CI configured: commit & push -> deployment error

frli avatar Aug 25 '17 11:08 frli

+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.

TheIDCo-directid-eng-ci avatar Aug 29 '17 12:08 TheIDCo-directid-eng-ci

+1 I was wonder why the heck this was happening and then I remembered this issue

sharpcoder28 avatar Sep 01 '17 19:09 sharpcoder28

This is apparently fixed in VS 15.4, as per https://docs.microsoft.com/en-us/azure/azure-functions/functions-develop-vs

skotl avatar Nov 01 '17 20:11 skotl