Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rgl/use-uwp-apis-from-dotnet-core-console-app
Use the UWP APIs from a dotnet core 3 console application
https://github.com/rgl/use-uwp-apis-from-dotnet-core-console-app
dotnet-core uwp
Last synced: about 2 months ago
JSON representation
Use the UWP APIs from a dotnet core 3 console application
- Host: GitHub
- URL: https://github.com/rgl/use-uwp-apis-from-dotnet-core-console-app
- Owner: rgl
- Created: 2019-05-05T18:25:20.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-05T18:46:31.000Z (almost 6 years ago)
- Last Synced: 2024-10-26T13:07:01.205Z (3 months ago)
- Topics: dotnet-core, uwp
- Language: C#
- Size: 1.94 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This tries to use the UWP APIs from a dotnet core 3 console application.
Since I don't known how to set the application capabilities... this does not really work that well.
Currently, this can only set the lockscreen. Setting the wallpaper fails for some reason... if you can get this working, please let me known!
Probably this needs to be packaged as described at [Package desktop applications (Desktop Bridge)](https://docs.microsoft.com/en-us/windows/uwp/porting/desktop-to-uwp-root)...
Anyways, run with:
```powershell
dotnet run
```You should see something like:
```plain
UserProfilePersonalizationSettings.IsSupported? True
HasSetWallpaper? False
Type=LocalUser AuthenticationStatus=LocallyAuthenticated NonRoamableId=1044480
User Property: lastName:System.String=
User Property: firstName:System.String=
User Property: accountName:System.String=
User Property: domainName:System.String=
User Property: providerName:System.String=
User Property: displayName:System.String=
User Property: principalName:System.String=
```