How to use cocoa framework in a .net core console project?

killaragorn 21 Reputation points
2021-12-03T02:12:35.88+00:00

this is a swift project.
i import cocoa framework and use NSEvent.mouseLocation; so i can get the mouse position.

` swift
import Foundation
import Cocoa

var point = NSEvent.mouseLocation;
print("x is ", point.x, "   y is ", point.y);

`

How to do this in. NET Core?
Anyone can help me?
tks!

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,141 questions
0 comments No comments
{count} votes

0 additional answers

Sort by: Most helpful