You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting an error when trying to run this on macOS. I have .net core 3.0 installed, not sure if that is causing this or not. If so, you should be able to solve with a global.json file.
This issue is for a: (mark with an x)
- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
Minimal steps to reproduce
Clone sample
dotnet build
dotnet run
OS and Version?
macOS Mojave 10.14.5
Error message on dotnet run
PS /Users/sayedhashimi/data/mycode/OSS/dotnet-core-api> dotnet build
Microsoft (R) Build Engine version 16.3.0-preview-19377-01+dd8019d9e for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
Restore completed in 570.63 ms for /Users/sayedhashimi/data/mycode/OSS/dotnet-core-api/TodoApi.csproj.
Restore completed in 859.64 ms for /Users/sayedhashimi/data/mycode/OSS/dotnet-core-api/TodoApi.csproj.
You are using a preview version of .NET Core. See: https://aka.ms/dotnet-core-preview
TodoApi -> /Users/sayedhashimi/data/mycode/OSS/dotnet-core-api/bin/Debug/netcoreapp2.0/TodoApi.dll
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:05.73
PS /Users/sayedhashimi/data/mycode/OSS/dotnet-core-api> dotnet run
Unhandled Exception: System.InvalidOperationException: HTTPS endpoints can only be configured using KestrelServerOptions.Listen().
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.<BindAddressAsync>d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.AddressesStrategy.<BindAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.<BindAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer.<StartAsync>d__21`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Hosting.Internal.WebHost.<StartAsync>d__26.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Hosting.WebHostExtensions.<RunAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Hosting.WebHostExtensions.<RunAsync>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Hosting.WebHostExtensions.Run(IWebHost host)
at TodoApi.Program.Main(String[] args) in /Users/sayedhashimi/data/mycode/OSS/dotnet-core-api/Program.cs:line 18
Unless I'm not understanding this correct, when Visual Studio (both Windows and Mac) release and install .NET Core 3.0 by default this sample will stop working for everyone. Is anyone looking to fix this?
I'm encountering this issue. I just installed .NET Core 3.1 on Mac. dotnet run produces this error:
It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '2.0.0' was not found.
- The following frameworks were found:
3.1.3 at [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
You can resolve the problem by installing the specified framework and/or SDK.
The specified framework can be found at:
- https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=2.0.0&arch=x64&rid=osx.10.14-x64
When I follow the link, there are no download options for Mac.
first you should check the project file which version is targeted.
then which version installed your machine
then you will run working fine your application
I'm getting an error when trying to run this on macOS. I have .net core 3.0 installed, not sure if that is causing this or not. If so, you should be able to solve with a
global.json
file.This issue is for a: (mark with an
x
)Minimal steps to reproduce
dotnet build
dotnet run
OS and Version?
macOS Mojave 10.14.5
Error message on
dotnet run
dotnet info
The text was updated successfully, but these errors were encountered: