Skip to content
This repository has been archived by the owner on Apr 15, 2021. It is now read-only.

SetDpiAwareness error #41

Open
vladimirzenin opened this issue Oct 31, 2018 · 1 comment
Open

SetDpiAwareness error #41

vladimirzenin opened this issue Oct 31, 2018 · 1 comment
Labels
bug Something isn't working

Comments

@vladimirzenin
Copy link

Windows 7.
When compiling the project, an error occurs:

D:\egram.tel\application\Tel.Egram>dotnet run

Unhandled Exception: System.TypeInitializationException: The type initializer fo
r 'Avalonia.Win32.Win32Platform' threw an exception. ---> System.EntryPointNotFo
undException: Unable to find an entry point named 'SetProcessDpiAwarenessContext
' in DLL 'user32.dll'.
at Avalonia.Win32.Interop.UnmanagedMethods.SetProcessDpiAwarenessContext(IntP
tr dpiAWarenessContext)
at Avalonia.Win32.Win32Platform.SetDpiAwareness()
at Avalonia.Win32.Win32Platform..ctor()
at Avalonia.Win32.Win32Platform..cctor()
--- End of inner exception stack trace ---
at Avalonia.Win32.Win32Platform.Initialize(Boolean deferredRendering)
at Avalonia.Controls.AppBuilderBase1.Setup() in D:\a\1\s\src\Avalonia.Contro ls\AppBuilderBase.cs:line 273 at Avalonia.Controls.AppBuilderBase1.Start[TMainWindow](Func`1 dataContextPr
ovider) in D:\a\1\s\src\Avalonia.Controls\AppBuilderBase.cs:line 122
at Tel.Egram.Program.Run(ServiceCollection services, IServiceProvider provide
r) in D:\egram.tel\application\Tel.Egram\Program.cs:line 76
at Tel.Egram.Program.Main(String[] args) in D:\egram.tel\application\Tel.Egra
m\Program.cs:line 23

@x2bool
Copy link
Collaborator

x2bool commented Nov 25, 2018

@vladimirzenin could you please provider some details here: AvaloniaUI/Avalonia#2095

@x2bool x2bool added the bug Something isn't working label Nov 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants