Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: .net core and wifi direct? #35479

Closed
psantosl opened this issue Apr 26, 2020 · 7 comments
Closed

Question: .net core and wifi direct? #35479

psantosl opened this issue Apr 26, 2020 · 7 comments
Labels
area-System.Net question Answer questions and provide assistance, not an issue with source code or documentation.
Milestone

Comments

@psantosl
Copy link

Is it possible to use wifidirect from a .net core console application? Any hints on how to make it?

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added area-Meta untriaged New issue has not been triaged by the area owner labels Apr 26, 2020
@ghost
Copy link

ghost commented Apr 26, 2020

Tagging subscribers to this area: @dotnet/ncl
Notify danmosemsft if you want to be subscribed.

@jkotas jkotas added question Answer questions and provide assistance, not an issue with source code or documentation. and removed area-Meta labels Apr 26, 2020
@wfurt
Copy link
Member

wfurt commented Apr 26, 2020

That is generally function of your os e.g. drivers & routing. There is nothing AFAIK in .NET preventing the use, as long as you get IP configured. There is no API to configure interfaces - wirelesss or wired or to manipulate wireless setting.

@psantosl
Copy link
Author

I mean something like this: https://docs.microsoft.com/en-us/uwp/api/windows.devices.wifidirect.wifidirectdevice

It was a pain to use it from a .net console application :
https://github.com/psantosl/PeerFinderConsole

So I wanted to know if it is any better in .net core

See what I mean? It was meant to be used by UWP apps, not console

@davidsh
Copy link
Contributor

davidsh commented Apr 26, 2020

See what I mean? It was meant to be used by UWP apps, not console

.NET 5 will have improvements to interop with WinRT APIs. Many of the Windows WinRT API (Windows.* namespaces) can be used by both UWP apps as well as console apps. The documentation for the WinRT API will say whether or not it can be used in Windows console apps as well as Windows UWP apps.

The current tooling in Visual Studio sometimes make that difficult to interop currently. But improvements are forthcoming.

@psantosl
Copy link
Author

Awesome! Thank you!

Anything I can read? Or should I just wait?

@karelz
Copy link
Member

karelz commented Jun 2, 2020

Closing as answered.
@AaronRobinsonMSFT can you comment on more WinRT interop capabilities in .NET 5? Do we have more insights what are the plans.

@karelz karelz closed this as completed Jun 2, 2020
@AaronRobinsonMSFT
Copy link
Member

@psantosl The announcement and future plans are documented at #35318.

@karelz karelz added this to the 5.0.0 milestone Aug 18, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 9, 2020
@karelz karelz removed the untriaged New issue has not been triaged by the area owner label Oct 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Net question Answer questions and provide assistance, not an issue with source code or documentation.
Projects
None yet
Development

No branches or pull requests

7 participants