Skip to content
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

Port runtime to .NET Core #98

Closed
3 tasks done
fabiocav opened this issue Dec 9, 2016 · 59 comments
Closed
3 tasks done

Port runtime to .NET Core #98

fabiocav opened this issue Dec 9, 2016 · 59 comments
Assignees

Comments

@fabiocav
Copy link
Member

fabiocav commented Dec 9, 2016

This issue will track the .NET Core port activities for porting the runtime to .NET core. Note that netstandard 1.3 assemblies can be used on Azure Functions and this is fully supported.

We'll continue to update this list and details as we move along.

Have opened the following issues to track migration:
WebJobs SDK - Azure/azure-webjobs-sdk#1177
WebJobs SDK Extensions - Azure/azure-webjobs-sdk-extensions#233
WebJobs Script (Functions Runtime) - Azure/azure-functions-host#1576

Activities

  • Identify external dependencies (for Core SDK, extensions, and runtime) and potential issues (e.g. Edge, NCronTab, etc.)
  • Identified issues, particularly with Edge and after considering other factors, the path forward will be to move away from Edge and run Node out of process.
  • Identify Netstandard version we'll be targetting (for each project)
  • Runtime will be ported to target Netstandard 2.0.
  • Extensions and other dependencies may target lower versions (details to be added to each dependency repository)
  • Create issues on each repo (Core SDK, Extensions, Script Runtime) to track the following activities:
    • Address external library dependencies and find suitable replacements if needed
    • Run analysis to identify APIs we'll need to migrate from (API Port?)
    • Resolve API issues and port project
    • Build and CI updates (Setup CI on Linux? Travis?)
    • Document dev requirements
    • Update and publish packages

Issues

@imsam67
Copy link

imsam67 commented Apr 8, 2017

Do we have an availability date for WebJobs SDK in .NET Core?

@agnauck
Copy link

agnauck commented May 4, 2017

Is there a public repo where we can contribute and monitor the netcore port?

@fabiocav
Copy link
Member Author

fabiocav commented Jun 6, 2017

Have opened the following issues to track migration:
WebJobs SDK - Azure/azure-webjobs-sdk#1177
WebJobs SDK Extensions - Azure/azure-webjobs-sdk-extensions#233
WebJobs Script (Functions Runtime) - Azure/azure-functions-host#1576

PRs to follow (starting with WebJobs SDK)

@VenkateshSrini
Copy link

Hi,
Any update on where we are on this. I would like to run Azure web on Azure Linux box and host my work load here. Also I will be happy if we can containerize the same and also deploy them on cloud foundry as now Microsoft is a Gold Member in Cloud Foundry. Also now since .NET core 2.0 with .NET standard 2.0 supports most of the API, the transition is going to be lot more easier.
Regards

@lindydonna
Copy link
Contributor

@VenkateshSrini This work is in progress. You can see the detailed status by watching the issues that @fabiocav listed above: #98 (comment)

@lindydonna lindydonna marked this as a duplicate of #365 Jul 18, 2017
@fabiocav
Copy link
Member Author

The WebJobs SDK port has been completed and merged.

The basic extensions work has been done to enable work on the Script Runtime (Functions Runtime) to begin and that is currently in progress, tracked by Azure/azure-functions-host#1576

@atrauzzi
Copy link

Will this open up improved local development options at all?

@nelak
Copy link

nelak commented Sep 25, 2017

@ahmelsayed Just checked and I was on node v8.0.0, not with v8.5.0, upgrading fixed the issue.
I'm sending the requested info for v8.0.0 just in case it's useful:
Trying to do npm i -g azure-functions-core-tools@2.0.1-beta1.15 would still resolve to azure-functions-core-tools@1.0.0-beta.100

npm --version
5.3.0

npm view azure-functions-core-tools

{ name: 'azure-functions-core-tools',
  description: 'Azure Functions Core Tools',
  'dist-tags': { latest: '1.0.4', core: '2.0.1-beta1.15' },
  versions:
   [ '1.0.0-beta.95',
     '1.0.0-beta.96',
     '1.0.0-beta.97',
     '1.0.0-beta.98',
     '1.0.0-beta.99',
     '1.0.0-beta.100',
     '1.0.0',
     '1.0.1',
     '1.0.2',
     '1.0.3',
     '1.0.4',
     '2.0.0',
     '2.0.1-beta.1',
     '2.0.1-beta.2',
     '2.0.1-beta.3',
     '2.0.1-beta.4',
     '2.0.1-beta.5',
     '2.0.1-beta.6',
     '2.0.1-beta.7',
     '2.0.1-beta.8',
     '2.0.1-beta.9',
     '2.0.1-beta.10',
     '2.0.1-beta.11',
     '2.0.1-beta.12',
     '2.0.1-beta.13',
     '2.0.1-beta.14',
     '2.0.1-beta1.15' ],
  maintainers:
   [ 'ahmelsayed <ahmelsayed@outlook.com>',
     'mattmason03 <mamaso@microsoft.com>',
     'windowsazure <azuresdk@outlook.com>' ],
  time:
   { modified: '2017-09-24T01:21:58.149Z',
     created: '2017-05-03T01:21:59.910Z',
     '1.0.0-beta.95': '2017-05-03T01:21:59.910Z',
     '1.0.0-beta.96': '2017-05-06T00:28:12.344Z',
     '1.0.0-beta.97': '2017-05-16T00:36:46.444Z',
     '1.0.0-beta.98': '2017-06-05T22:49:20.702Z',
     '1.0.0-beta.99': '2017-06-06T17:44:30.500Z',
     '1.0.0-beta.100': '2017-06-30T01:11:17.967Z',
     '1.0.0': '2017-08-11T20:16:18.849Z',
     '1.0.1': '2017-08-11T20:26:41.323Z',
     '2.0.0': '2017-08-24T00:42:42.553Z',
     '2.0.1-beta.1': '2017-08-24T00:52:25.874Z',
     '2.0.1-beta.2': '2017-08-24T01:39:42.781Z',
     '2.0.1-beta.3': '2017-08-24T03:59:28.009Z',
     '2.0.1-beta.4': '2017-08-24T19:53:37.771Z',
     '1.0.2': '2017-08-24T20:00:32.643Z',
     '2.0.1-beta.5': '2017-08-24T20:48:29.592Z',
     '2.0.1-beta.6': '2017-08-24T20:50:42.136Z',
     '2.0.1-beta.7': '2017-08-24T22:34:29.823Z',
     '2.0.1-beta.8': '2017-08-25T21:17:18.102Z',
     '2.0.1-beta.9': '2017-08-28T23:39:47.614Z',
     '2.0.1-beta.10': '2017-08-31T05:39:11.901Z',
     '2.0.1-beta.11': '2017-08-31T23:24:58.043Z',
     '1.0.3': '2017-09-08T20:24:56.964Z',
     '2.0.1-beta.12': '2017-09-12T00:06:54.866Z',
     '1.0.4': '2017-09-15T20:42:16.101Z',
     '2.0.1-beta.13': '2017-09-23T01:13:19.707Z',
     '2.0.1-beta.14': '2017-09-24T00:45:29.946Z',
     '2.0.1-beta1.15': '2017-09-24T01:21:58.149Z' },
  homepage: 'https://github.com/Azure/azure-functions-cli#readme',
  repository:
   { type: 'git',
     url: 'git+https://github.com/Azure/azure-functions-cli.git' },
  author: 'Microsoft',
  bugs: { url: 'https://github.com/Azure/azure-functions-cli/issues' },
  license: 'MIT',
  readmeFilename: '',
  users: { lastexile: true, 'ivan.marquez': true },
  version: '1.0.4',
  scripts: { postinstall: 'node lib/install.js' },
  preferGlobal: true,
  bin:
   { func: 'lib/main.js',
     azfun: 'lib/main.js',
     azurefunctions: 'lib/main.js' },
  os: [ 'win32' ],
  dependencies:
   { chalk: '^2.1.0',
     'command-exists': '^1.2.2',
     tmp: '^0.0.33',
     unzipper: '^0.8.9' },
  dist:
   { integrity: 'sha512-I2MpcThfchxX6o6k8ndDcvY2zTgYO6xs619R+7RWUbYnUsJRqh40VYUjmColsg6yVf5Erqb8kdsrLJ9DF2OyUw==',
     shasum: '0752a0b5b048f55fd955aa8b40874822b5a4d7cc',
     tarball: 'https://registry.npmjs.org/azure-functions-core-tools/-/azure-functions-core-tools-1.0.4.tgz' },
  directories: {} }

@imsam67
Copy link

imsam67 commented Sep 25, 2017

I installed the latest version of VS tools by running npm install -g azure-functions-core-tools. I also created a new profile under Properties > Debug and pointed it to the func.exe under the node_modules/azure-functions-core-tools. What else do I need to do to create a new Azure Function targeting .NET Core? When I created a new function in VS 2017, it still seems to be targeting .NET Framework 4.6.1.

@paulbatum
Copy link
Member

@imsam67 these bits are in preview so you won't get them as a normal update. See this blog post for more details.

@ahmelsayed
Copy link

@nelak you're right it looks like @mamaso added node >=8.4.0 and I didn't notice that.

@mamaso
Copy link

mamaso commented Sep 26, 2017

Interesting - iirc npm removed the explicit errors around invalid engines / node versions. I added the engines field as documentation / a guideline, but if it's causing these strange resolution failures we should pull it out.

@mattwoberts
Copy link

@fabiocav Apologies if I'm posting in the wrong issue... Does this issue cover the work required to get an asp.net core 2 web app with webjobs deployed to azure? In ASP.NET, we'd use Microsoft.Web.WebJobs.Publish and deployment was fairly automated. In core - this doesn't seem to be the case, it looks like something we need to do manually. Could you confirm that getting this working in core is part of the plan?

@davidebbo
Copy link

@mattwoberts that's definitely a different topic, and is not directly related to Azure Functions. See https://stackoverflow.com/questions/38919723/how-do-i-deploy-an-azure-webjob-alongside-a-net-core-web-app-via-git#comment79729644_38919723 which discusses this.

@piizei
Copy link

piizei commented Sep 28, 2017

Nuget dependencies fail with OSX. Does not help to install nuget mono version.

NuGet restore failed with message: 'Operation not permitted'
[09/28/2017 08:31:51] Function directory: xx
[09/28/2017 08:31:51] Project path: xx
[09/28/2017 08:31:51] Packages path: /Users/pj/data\Functions\packages\nuget
[09/28/2017 08:31:51] Nuget client path: nuget.exe
[09/28/2017 08:31:51] Lock file hash:
[09/28/2017 08:31:51]
[09/28/2017 08:31:51] Package restore failed:
[09/28/2017 08:31:51]
[09/28/2017 08:31:51] System.ComponentModel.Win32Exception : Operation not permitted
[09/28/2017 08:31:51] at Interop.Sys.ForkAndExecProcess(String filename,String[] argv,String[] envp,String cwd,Boolean redirectStdin,Boolean redirectStdout,Boolean redirectStderr,Int32& lpChildPid,Int32& stdinFd,Int32& stdoutFd,Int32& stderrFd)
[09/28/2017 08:31:51] at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
[09/28/2017 08:31:51] at System.Diagnostics.Process.Start()

@ahmelsayed
Copy link

what version of the cli do you have? can you run func help it should print the version, this is the current one

Azure Functions Core Tools (2.0.0)
Function Runtime Version: 2.0.11280.0

@fabiocav
Copy link
Member Author

There are known issues (we're documenting relevant issues here) with package restore that will be addressed with the next update, likely to occur by the end of next week.

@fabiocav
Copy link
Member Author

Closing this as the initial port has been completed. New tasks tracking gaps, improvements and bug fixes will be open with the appropriate labels.

@galvesribeiro
Copy link

@fabiocav did everything got ported and out of preview?

@christopheranderson
Copy link
Contributor

There are some gaps and it is still in preview, but we now have tracking issues for them/etc. so we've closed the main issue.

@galvesribeiro
Copy link

@christopheranderson yeah... I found out that dotnet build on projects don't work. However, if we func host start it does.

Also, we can't use VSTS to build/deploy it. We need to manually publish from our dev machines.

Besides that, it work-ish.

@fabiocav
Copy link
Member Author

@galvesribeiro can you expand on what you mean by dotnet build on projects not working (perhaps with a different issue for better tracking)? Are you referring to functions projects (based on the Azure Functions VS Tooling), or the projects out of the repo?

@galvesribeiro
Copy link

@fabiocav from the solution directory:

dotnet build
/Users/guto/dev/repos/GiroPlatform/src/GP.Infrastructure/GP.Infrastructure.csproj : warning NU1701: Package 'Microsoft.AspNet.WebApi.Client 5.2.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. [/Users/guto/dev/repos/GiroPlatform/GiroPlatform.sln]
/Users/guto/dev/repos/GiroPlatform/src/GP.Stone/GP.Stone.csproj : warning NU1701: Package 'Microsoft.AspNet.WebApi.Client 5.2.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. [/Users/guto/dev/repos/GiroPlatform/GiroPlatform.sln]
/Users/guto/dev/repos/GiroPlatform/src/GP.Calculator/GP.Calculator.csproj : warning NU1701: Package 'Microsoft.AspNet.WebApi.Client 5.2.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. [/Users/guto/dev/repos/GiroPlatform/GiroPlatform.sln]
/Users/guto/dev/repos/GiroPlatform/src/GP.Merchants/GP.Merchants.csproj : warning NU1701: Package 'Microsoft.AspNet.WebApi.Client 5.2.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. [/Users/guto/dev/repos/GiroPlatform/GiroPlatform.sln]
/Users/guto/dev/repos/GiroPlatform/src/GP.Accounting/GP.Accounting.csproj : warning NU1701: Package 'Microsoft.AspNet.WebApi.Client 5.2.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. [/Users/guto/dev/repos/GiroPlatform/GiroPlatform.sln]
/Users/guto/dev/repos/GiroPlatform/test/InfrastructureTests/InfrastructureTests.csproj : warning NU1701: Package 'Microsoft.AspNet.WebApi.Client 5.2.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project. [/Users/guto/dev/repos/GiroPlatform/GiroPlatform.sln]
/Users/guto/dev/repos/GiroPlatform/test/AccountingTests/AccountingTests.csproj : warning NU1701: Package 'Microsoft.AspNet.WebApi.Client 5.2.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project. [/Users/guto/dev/repos/GiroPlatform/GiroPlatform.sln]
/Users/guto/dev/repos/GiroPlatform/test/StoneTests/StoneTests.csproj : warning NU1701: Package 'Microsoft.AspNet.WebApi.Client 5.2.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project. [/Users/guto/dev/repos/GiroPlatform/GiroPlatform.sln]
/Users/guto/dev/repos/GiroPlatform/test/CalculatorTests/CalculatorTests.csproj : warning NU1701: Package 'Microsoft.AspNet.WebApi.Client 5.2.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project. [/Users/guto/dev/repos/GiroPlatform/GiroPlatform.sln]
/Users/guto/dev/repos/GiroPlatform/test/MerchantsTests/MerchantsTests.csproj : warning NU1701: Package 'Microsoft.AspNet.WebApi.Client 5.2.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project. [/Users/guto/dev/repos/GiroPlatform/GiroPlatform.sln]
Microsoft (R) Build Engine version 15.3.409.57025 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

  GP.Models -> /Users/guto/dev/repos/GiroPlatform/src/GP.Models/bin/Debug/netstandard2.0/GP.Models.dll
/Users/guto/dev/repos/GiroPlatform/test/InfrastructureTests/InfrastructureTests.csproj : warning NU1701: Package 'Microsoft.AspNet.WebApi.Client 5.2.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project.
/Users/guto/dev/repos/GiroPlatform/src/GP.Accounting/GP.Accounting.csproj : warning NU1701: Package 'Microsoft.AspNet.WebApi.Client 5.2.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
/Users/guto/dev/repos/GiroPlatform/src/GP.Infrastructure/GP.Infrastructure.csproj : warning NU1701: Package 'Microsoft.AspNet.WebApi.Client 5.2.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
/Users/guto/dev/repos/GiroPlatform/test/AccountingTests/AccountingTests.csproj : warning NU1701: Package 'Microsoft.AspNet.WebApi.Client 5.2.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project.
/Users/guto/dev/repos/GiroPlatform/src/GP.Calculator/GP.Calculator.csproj : warning NU1701: Package 'Microsoft.AspNet.WebApi.Client 5.2.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
/Users/guto/dev/repos/GiroPlatform/src/GP.Stone/GP.Stone.csproj : warning NU1701: Package 'Microsoft.AspNet.WebApi.Client 5.2.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
/Users/guto/dev/repos/GiroPlatform/test/CalculatorTests/CalculatorTests.csproj : warning NU1701: Package 'Microsoft.AspNet.WebApi.Client 5.2.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project.
/Users/guto/dev/repos/GiroPlatform/test/StoneTests/StoneTests.csproj : warning NU1701: Package 'Microsoft.AspNet.WebApi.Client 5.2.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project.
/Users/guto/dev/repos/GiroPlatform/src/GP.Merchants/GP.Merchants.csproj : warning NU1701: Package 'Microsoft.AspNet.WebApi.Client 5.2.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
/Users/guto/dev/repos/GiroPlatform/test/MerchantsTests/MerchantsTests.csproj : warning NU1701: Package 'Microsoft.AspNet.WebApi.Client 5.2.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project.
  TestUtils -> /Users/guto/dev/repos/GiroPlatform/test/TestUtils/bin/Debug/netstandard2.0/TestUtils.dll
  GP.Messages -> /Users/guto/dev/repos/GiroPlatform/src/GP.Messages/bin/Debug/netstandard2.0/GP.Messages.dll
  GP.Infrastructure -> /Users/guto/dev/repos/GiroPlatform/src/GP.Infrastructure/bin/Debug/netstandard2.0/bin/GP.Infrastructure.dll
  GP.Stone -> /Users/guto/dev/repos/GiroPlatform/src/GP.Stone/bin/Debug/netstandard2.0/bin/GP.Stone.dll
/Users/guto/.nuget/packages/microsoft.net.sdk.functions/1.0.4/build/netstandard1.0/Microsoft.NET.Sdk.Functions.Build.targets(31,5): error : Could not load file or assembly 'GP.Messages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified. [/Users/guto/dev/repos/GiroPlatform/src/GP.Infrastructure/GP.Infrastructure.csproj]
/Users/guto/.nuget/packages/microsoft.net.sdk.functions/1.0.4/build/netstandard1.0/Microsoft.NET.Sdk.Functions.Build.targets(31,5): error :  [/Users/guto/dev/repos/GiroPlatform/src/GP.Infrastructure/GP.Infrastructure.csproj]
/Users/guto/.nuget/packages/microsoft.net.sdk.functions/1.0.4/build/netstandard1.0/Microsoft.NET.Sdk.Functions.Build.targets(31,5): error : Could not load file or assembly 'Microsoft.AspNetCore.Mvc.Abstractions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified. [/Users/guto/dev/repos/GiroPlatform/src/GP.Stone/GP.Stone.csproj]
/Users/guto/.nuget/packages/microsoft.net.sdk.functions/1.0.4/build/netstandard1.0/Microsoft.NET.Sdk.Functions.Build.targets(31,5): error :  [/Users/guto/dev/repos/GiroPlatform/src/GP.Stone/GP.Stone.csproj]
  GP.Accounting -> /Users/guto/dev/repos/GiroPlatform/src/GP.Accounting/bin/Debug/netstandard2.0/bin/GP.Accounting.dll
/Users/guto/.nuget/packages/microsoft.net.sdk.functions/1.0.4/build/netstandard1.0/Microsoft.NET.Sdk.Functions.Build.targets(31,5): error : Could not load file or assembly 'GP.Messages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified. [/Users/guto/dev/repos/GiroPlatform/src/GP.Accounting/GP.Accounting.csproj]
/Users/guto/.nuget/packages/microsoft.net.sdk.functions/1.0.4/build/netstandard1.0/Microsoft.NET.Sdk.Functions.Build.targets(31,5): error :  [/Users/guto/dev/repos/GiroPlatform/src/GP.Accounting/GP.Accounting.csproj]
  GP.Calculator -> /Users/guto/dev/repos/GiroPlatform/src/GP.Calculator/bin/Debug/netstandard2.0/bin/GP.Calculator.dll
/Users/guto/.nuget/packages/microsoft.net.sdk.functions/1.0.4/build/netstandard1.0/Microsoft.NET.Sdk.Functions.Build.targets(31,5): error : Could not load file or assembly 'Microsoft.AspNetCore.Mvc.Abstractions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified. [/Users/guto/dev/repos/GiroPlatform/src/GP.Calculator/GP.Calculator.csproj]
/Users/guto/.nuget/packages/microsoft.net.sdk.functions/1.0.4/build/netstandard1.0/Microsoft.NET.Sdk.Functions.Build.targets(31,5): error :  [/Users/guto/dev/repos/GiroPlatform/src/GP.Calculator/GP.Calculator.csproj]
  InfrastructureTests -> /Users/guto/dev/repos/GiroPlatform/test/InfrastructureTests/bin/Debug/netcoreapp2.0/InfrastructureTests.dll
  GP.Merchants -> /Users/guto/dev/repos/GiroPlatform/src/GP.Merchants/bin/Debug/netstandard2.0/bin/GP.Merchants.dll
/Users/guto/.nuget/packages/microsoft.net.sdk.functions/1.0.4/build/netstandard1.0/Microsoft.NET.Sdk.Functions.Build.targets(31,5): error : Could not load file or assembly 'Microsoft.AspNetCore.Mvc.Abstractions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified. [/Users/guto/dev/repos/GiroPlatform/src/GP.Merchants/GP.Merchants.csproj]
/Users/guto/.nuget/packages/microsoft.net.sdk.functions/1.0.4/build/netstandard1.0/Microsoft.NET.Sdk.Functions.Build.targets(31,5): error :  [/Users/guto/dev/repos/GiroPlatform/src/GP.Merchants/GP.Merchants.csproj]
  CalculatorTests -> /Users/guto/dev/repos/GiroPlatform/test/CalculatorTests/bin/Debug/netcoreapp2.0/CalculatorTests.dll
  MerchantsTests -> /Users/guto/dev/repos/GiroPlatform/test/MerchantsTests/bin/Debug/netcoreapp2.0/MerchantsTests.dll
  AccountingTests -> /Users/guto/dev/repos/GiroPlatform/test/AccountingTests/bin/Debug/netcoreapp2.0/AccountingTests.dll
  StoneTests -> /Users/guto/dev/repos/GiroPlatform/test/StoneTests/bin/Debug/netcoreapp2.0/StoneTests.dll

Build succeeded.

/Users/guto/dev/repos/GiroPlatform/test/InfrastructureTests/InfrastructureTests.csproj : warning NU1701: Package 'Microsoft.AspNet.WebApi.Client 5.2.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project.
/Users/guto/dev/repos/GiroPlatform/src/GP.Accounting/GP.Accounting.csproj : warning NU1701: Package 'Microsoft.AspNet.WebApi.Client 5.2.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
/Users/guto/dev/repos/GiroPlatform/src/GP.Infrastructure/GP.Infrastructure.csproj : warning NU1701: Package 'Microsoft.AspNet.WebApi.Client 5.2.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
/Users/guto/dev/repos/GiroPlatform/test/AccountingTests/AccountingTests.csproj : warning NU1701: Package 'Microsoft.AspNet.WebApi.Client 5.2.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project.
/Users/guto/dev/repos/GiroPlatform/src/GP.Calculator/GP.Calculator.csproj : warning NU1701: Package 'Microsoft.AspNet.WebApi.Client 5.2.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
/Users/guto/dev/repos/GiroPlatform/src/GP.Stone/GP.Stone.csproj : warning NU1701: Package 'Microsoft.AspNet.WebApi.Client 5.2.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
/Users/guto/dev/repos/GiroPlatform/test/CalculatorTests/CalculatorTests.csproj : warning NU1701: Package 'Microsoft.AspNet.WebApi.Client 5.2.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project.
/Users/guto/dev/repos/GiroPlatform/test/StoneTests/StoneTests.csproj : warning NU1701: Package 'Microsoft.AspNet.WebApi.Client 5.2.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project.
/Users/guto/dev/repos/GiroPlatform/src/GP.Merchants/GP.Merchants.csproj : warning NU1701: Package 'Microsoft.AspNet.WebApi.Client 5.2.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
/Users/guto/dev/repos/GiroPlatform/test/MerchantsTests/MerchantsTests.csproj : warning NU1701: Package 'Microsoft.AspNet.WebApi.Client 5.2.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project.
/Users/guto/.nuget/packages/microsoft.net.sdk.functions/1.0.4/build/netstandard1.0/Microsoft.NET.Sdk.Functions.Build.targets(31,5): error : Could not load file or assembly 'GP.Messages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified. [/Users/guto/dev/repos/GiroPlatform/src/GP.Infrastructure/GP.Infrastructure.csproj]
/Users/guto/.nuget/packages/microsoft.net.sdk.functions/1.0.4/build/netstandard1.0/Microsoft.NET.Sdk.Functions.Build.targets(31,5): error :  [/Users/guto/dev/repos/GiroPlatform/src/GP.Infrastructure/GP.Infrastructure.csproj]
/Users/guto/.nuget/packages/microsoft.net.sdk.functions/1.0.4/build/netstandard1.0/Microsoft.NET.Sdk.Functions.Build.targets(31,5): error : Could not load file or assembly 'Microsoft.AspNetCore.Mvc.Abstractions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified. [/Users/guto/dev/repos/GiroPlatform/src/GP.Stone/GP.Stone.csproj]
/Users/guto/.nuget/packages/microsoft.net.sdk.functions/1.0.4/build/netstandard1.0/Microsoft.NET.Sdk.Functions.Build.targets(31,5): error :  [/Users/guto/dev/repos/GiroPlatform/src/GP.Stone/GP.Stone.csproj]
/Users/guto/.nuget/packages/microsoft.net.sdk.functions/1.0.4/build/netstandard1.0/Microsoft.NET.Sdk.Functions.Build.targets(31,5): error : Could not load file or assembly 'GP.Messages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified. [/Users/guto/dev/repos/GiroPlatform/src/GP.Accounting/GP.Accounting.csproj]
/Users/guto/.nuget/packages/microsoft.net.sdk.functions/1.0.4/build/netstandard1.0/Microsoft.NET.Sdk.Functions.Build.targets(31,5): error :  [/Users/guto/dev/repos/GiroPlatform/src/GP.Accounting/GP.Accounting.csproj]
/Users/guto/.nuget/packages/microsoft.net.sdk.functions/1.0.4/build/netstandard1.0/Microsoft.NET.Sdk.Functions.Build.targets(31,5): error : Could not load file or assembly 'Microsoft.AspNetCore.Mvc.Abstractions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified. [/Users/guto/dev/repos/GiroPlatform/src/GP.Calculator/GP.Calculator.csproj]
/Users/guto/.nuget/packages/microsoft.net.sdk.functions/1.0.4/build/netstandard1.0/Microsoft.NET.Sdk.Functions.Build.targets(31,5): error :  [/Users/guto/dev/repos/GiroPlatform/src/GP.Calculator/GP.Calculator.csproj]
/Users/guto/.nuget/packages/microsoft.net.sdk.functions/1.0.4/build/netstandard1.0/Microsoft.NET.Sdk.Functions.Build.targets(31,5): error : Could not load file or assembly 'Microsoft.AspNetCore.Mvc.Abstractions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified. [/Users/guto/dev/repos/GiroPlatform/src/GP.Merchants/GP.Merchants.csproj]
/Users/guto/.nuget/packages/microsoft.net.sdk.functions/1.0.4/build/netstandard1.0/Microsoft.NET.Sdk.Functions.Build.targets(31,5): error :  [/Users/guto/dev/repos/GiroPlatform/src/GP.Merchants/GP.Merchants.csproj]
    10 Warning(s)
    5 Error(s)

Time Elapsed 00:00:18.22

Multiple errors while building. If you want more details I can open another issue.

Thanks

@fabiocav
Copy link
Member Author

This helps. One thing I did notice is that you're using the old Functions SDK (1.0.4). Fixes were made to more recent versions (the latest is 1.0.6) specifically for .NET Standard scenarios.

Can you try upgrading to see if that helps? And yes, a separate issue so we don't have different side threads on this would be helpful.

@galvesribeiro
Copy link

@fabiocav FYI #559

@ffMathy
Copy link

ffMathy commented Jan 17, 2019

There is still no NET core template in VS.

@Oleexo
Copy link

Oleexo commented Jan 17, 2019

There are .net core template in vs 2017.
Try to update Azure Functions extensions.

@JohnReeson
Copy link

@ffMathy NetCore Templates have been available for several months. Check this wiki to update CLI and template in VS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests