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

Can't build as x64? #43

Closed
shilixiang opened this issue May 13, 2017 · 1 comment
Closed

Can't build as x64? #43

shilixiang opened this issue May 13, 2017 · 1 comment

Comments

@shilixiang
Copy link

Hi,
This new tooling looks fantastic, it makes managing Azure Functions much easier.
But I got an issue when trying to reference a x64 Nuget package.
If I set Solution Platform to Any CPU, then the dll in Nuget package can't be loaded.
If I set Solution Platform to x64, then Azure Functions solution won't build.

With the following error:
Could not load file or assembly 'file:///c:\Users\Documents\Visual Studio 2017\Projects\FunctionApp1\FunctionApp1\bin\x64\Debug\net461\FunctionApp1.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format. FunctionApp1 C:\Users\lishi.nuget\packages\microsoft.net.sdk.functions\1.0.0-alpha3\build\netstandard1.0\Microsoft.NET.Sdk.Functions.targets

It seems this tooling doesn't support x64. But x64 is already supported on Azure Functions Portal according to this post: https://github.com/projectkudu/AzureFunctionsPortal/issues/894

Thanks,
Kevin

@lindydonna
Copy link

This is because the CLI is built as 32-bit. We have an item to produce an x64 build, see Azure/azure-functions-core-tools#117.

Closing this issue as it's tracked elsewhere.

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

No branches or pull requests

2 participants