I'm having trouble with the newly created Azure Functions project (new precompiled version). This is the function TimerTriggerI created from the template in VS2017.
It works great with Visual Studio, but when I try to build it using the .NET Core CLI (msbuild), I get the following error:
C: \ Users \ f00.nuget \ packages \ microsoft.net.sdk.functions \ 1.0.2 \ build \ netstandard1.0 \ Microsoft.NET.Sdk.Functions.Build.targets (31.5): error: Failed upload the file or assembly "Microsoft.Azure.WebJobs.Extensions, Version = 2.1.0.0, Culture = neutral, PublicKeyToken = null". The system cannot find the specified file. [C: \ Repos \ Test \ TestProject \ SRC \ project-functions \ project-functions.csproj]
Version: "Microsoft (R) Build Engine version 15.3.409.57025 for .NET Core"
I assume that when building from VS it uses a different version of msbuild or a different configuration. But I'm not sure how to fix it. The ultimate goal here is the ability to create and deploy using Appveyor, but I get the same error there, of course.
Update
I tried to create a project with new features and TimerTriggerfrom scratch, but to no avail - to get the same error again. I even tried to create HttpTrigger, but that didn't work either :(
source
share