Questions tagged [.net-mac]

This tag is for those questions about using .net on Mac machines.

This tag is for those questions about using .net on Mac machines.

9 questions
30
votes
7 answers

How to connect ASP.Net Core to a SQL Server Docker container on Mac

I am developing an ASP.Net core MVC application using Visual Studio 2017 on Mac. However, I am facing some problems to connect to an instance of SQL Server that is running on a Docker container. This is the connection string I'm…
MikePR
  • 2,786
  • 5
  • 31
  • 64
21
votes
3 answers

Console.Write in .Net Core

I start to learn .Net Core. I want to write a simple 'Hello World' console application. Unfortunately the System.Console is not available initially. This is my code: using System; class Program { public static void Main() { …
mehrandvd
  • 8,806
  • 12
  • 64
  • 111
9
votes
2 answers

Thread.Sleep() in .NET Core on Mac

I'm working with .NET Core on my Mac machine. Somewhere in my code I want to use this code: System.Threading.Thread.Sleep(100); But it can not find Thread in System.Threading namespace. What's wrong? Isn't Thread available for Mac, or I'm missing…
mehrandvd
  • 8,806
  • 12
  • 64
  • 111
2
votes
0 answers

Can't get callback notifications from IOKit to fire using pInvoke

I'm trying to write a .net multiplatform library, and macos is giving me some trouble. I'm attempting to use IOKit to let me know when a serial port has been plugged or unplugged, and from there, I can use the standard .net serial port libraries to…
sonic1015
  • 31
  • 4
2
votes
2 answers

Trying to run a .net core 2 web application in Mac

I have made an mvc .net core2 application in Windows and copied the whole thing in my MAC (highSierra 10.13.2) and tried to run it using VS for MAC (7.3.3 build 5). It compiles perfectly both on the PC and my MAC. But it won't launch on my MAC I'm…
Travellogger
  • 79
  • 1
  • 6
1
vote
1 answer

Status bar menu for Mac Catalyst in .NET MAUI

I have been working on an .NET MAUI app that needs to have a status bar icon and when clicked, menu to be shown. I know it is a platform specific issue and I have been folowing this tutorial from Microsoft. They have image button implemented to be…
1
vote
0 answers

Run process from .NET Core on Mac

I'm trying to run a process from C# console app on Mac: var processInfo = new ProcessStartInfo("./gradlew", "bundleRelease") { WorkingDirectory = gradlewDir, CreateNoWindow = true, UseShellExecute = false, RedirectStandardError =…
Andrei
  • 42,814
  • 35
  • 154
  • 218
0
votes
1 answer

How to install frameworks in Visual Studio for Mac after the initial installation

I have installed Visual Studio for Mac today but did not toggle .net thinking I would install it later as my internet connection was very slow. But now I can't find the place where to install .net from. For this thing Windows installs a program…
Adnan
  • 906
  • 13
  • 30
0
votes
1 answer

Is there a way to attach debugger to a dotnet process running in Docker container on a Mac? (VS or Rider)

Is there any .NET IDE available for MacOS that would allow me to debug docker containers by attaching to them when they're already running? I tried both Visual Studio for Mac and Rider and there seems to be no such option - I can only debug by…
Grzegorz Kyc
  • 203
  • 2
  • 9