这是indexloc提供的服务,不要输入任何密码
Skip to content

xPrject/NativeAot-Compilation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NativeAot

Right Click Project > Edit Project File append to project file to enable native code compilation

<PublishAot>true</PublishAot>

Console Application

WinForms Application

Install nuget package

WinFormsComInterop

Edit Program.cs and add to Main

ComWrappers.RegisterForMarshalling(WinFormsComInterop.WinFormsComWrappers.Instance);

Edit Project File and append

<_SuppressWinFormsTrimError>true</_SuppressWinFormsTrimError>

to suppress trimming error warning on compilation

<BuiltInComInteropSupport>true</BuiltInComInteropSupport>

restore comsupport for WinForms

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages