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.
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.
@likwidgames - closing this issue. Please reopen if you continue to have problems!
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.0is out of date with our latest packages and the version that we run in Azure. You want that version number to be at least2.0.12050to 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.
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?
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.
Thanks for the update. With a couple of plugins the VS Code experience is pretty solid for Function development.
Most helpful comment
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.