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!

Developer technologies .NET .NET Runtime
0 comments No comments
{count} votes

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.