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

SetDpiAwareness error #41

@vladimirzenin

Description

@vladimirzenin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions