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 run Functions v2 in VS for Mac after update #1905

Closed
likwidgames opened this issue Sep 13, 2018 · 6 comments
Closed

Can't run Functions v2 in VS for Mac after update #1905

likwidgames opened this issue Sep 13, 2018 · 6 comments

Comments

@likwidgames
Copy link

Ever since I updated my packages to Microsoft.NET.Sdk.Functions 1.0.19, I can no longer test my builds in Visual Studio Mac. I am presented with the error below. I have tried updating my Visual Studio (stable, beta and alpha) but they don't seem to be updating the runtime version to 2.0.12x, so I'm stuck with 2.0.119, which is not supported with the latest version of the Functions Sdk.. Is there a way to manually do this?

[2018-09-09 4:44:15 AM] Reading host configuration file '/Users/mike/Documents/Visual Studio 2017/Projects/Tests/AuthTests/bin/Debug/netstandard2.0/host.json'
[2018-09-09 4:44:15 AM] Host configuration file read:
[2018-09-09 4:44:15 AM] {}
[2018-09-09 4:44:15 AM] Starting Host (HostId=mikesmacbookpro-1782003714, InstanceId=4dad6d8c-c7b2-4876-8ce0-cef154e97eda, Version=2.0.11933.0, ProcessId=6817, AppDomainId=1, Debug=False, ConsecutiveErrors=0, StartupCount=1, FunctionsExtensionVersion=)
[2018-09-09 4:44:17 AM] A ScriptHost error has occurred
[2018-09-09 4:44:17 AM] System.Private.CoreLib: Could not load type 'Microsoft.Azure.WebJobs.Hosting.IWebJobsStartup' from assembly 'Microsoft.Azure.WebJobs.Host, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null'.
[2018-09-09 4:44:18 AM] Stopping Host
Function host is not running.

@paulbatum paulbatum changed the title Can't run Functions v2 on OSX after update Can't run Functions v2 in VS for Mac after update Sep 15, 2018
@paulbatum
Copy link
Member

I took the liberty of updating the post of your title since I believe this is a VS for Mac specific issue. Unfortunately it does not yet consume updates from the same feed as VS and VS Code and so it can fall further behind.

The version number in your logs 2.0.11933.0 is out of date with our latest packages and the version that we run in Azure. You want that version number to be at least 2.0.12050 to be compatible with the latest bits.

To confirm my theory, could you try either VS Code, or by installing and using the core tools directly (https://github.com/Azure/azure-functions-core-tools).

This sort of mismatch should not be an issue once V2 moves into general availablity, as there will be no further breaking changes at that point.

@mhoeger
Copy link
Contributor

mhoeger commented Oct 10, 2018

@likwidgames - closing this issue. Please reopen if you continue to have problems!

@mhoeger mhoeger closed this as completed Oct 10, 2018
@likwidgames
Copy link
Author

I took the liberty of updating the post of your title since I believe this is a VS for Mac specific issue. Unfortunately it does not yet consume updates from the same feed as VS and VS Code and so it can fall further behind.

The version number in your logs 2.0.11933.0 is out of date with our latest packages and the version that we run in Azure. You want that version number to be at least 2.0.12050 to be compatible with the latest bits.

To confirm my theory, could you try either VS Code, or by installing and using the core tools directly (https://github.com/Azure/azure-functions-core-tools).

This sort of mismatch should not be an issue once V2 moves into general availablity, as there will be no further breaking changes at that point.

VS Code uses 2.0.12050, however, Visual Studio Mac still runs at 2.0.11933.0 even with Functions V2 going to GA and all software updates. My preference is still to use Visual Studio Mac rather than VS Code, so this issue remains.

@nspillson
Copy link

So what's the deal with this issue? The thread that @markosaric referenced links back to this one, and they're both indicating that Visual Studio Mac is behind in the version of Functions tooling.

I confirmed it's the case by running from VS Code, and my functions worked as expected. Running from VS Mac they're running the 2.0.11933.0 version and failing.

So there's an issue from 9/9, and 10/26, and not really any indication as to when this will be fixed. @mhoeger, @markosaric, can you give some guidance on when this will be resolved?

@markosaric
Copy link

I do not have any knowledge on resolve date for this issue. Currently, there is still old runtime with the new version of the Visual Studio Mac and more effort is added into developing the features for VS Code so from my perspective I think that VS Code is more in focus regarding Azure Function development so my suggestion is to stick with the VS Code for working with Azure Functions on macOS.

@nspillson
Copy link

Thanks for the update. With a couple of plugins the VS Code experience is pretty solid for Function development.

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

5 participants