-
Notifications
You must be signed in to change notification settings - Fork 52
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
Add .NET native AOT support #32
Comments
After some research I think this is actually possible, take a look at this: Maybe we can just find a way to override the MSBuild property SdkNativeLibrary to inject VC-LTL based libraries in |
|
Yep, just adding these few to csproj, should work on any project: <ItemGroup>
<SdkNativeLibrary Include="F:\VC-LTL-5.0.9-Binary\TargetPlatform\5.2.3790.0\lib\x64\libucrt.lib" />
<SdkNativeLibrary Include="F:\VC-LTL-5.0.9-Binary\TargetPlatform\5.2.3790.0\lib\x64\libvcruntime.lib" />
<LinkerArg Include="/DEFAULTLIB:libucrt.lib" />
<LinkerArg Include="/DEFAULTLIB:libvcruntime.lib" />
<LinkerArg Include="/NODEFAULTLIB:ucrt.lib" />
<LinkerArg Include="/NODEFAULTLIB:vcruntime.lib" />
</ItemGroup> So what we need to figure out is how to add the MSBuild support and publish the right version on Nuget... |
Looks good. Kenji Mouri |
There could be a new README section about how it works, does it just work by installing the Nuget package? |
|
Can confirm it worked like a charm:
|
Perhaps we can find a way to run ,NET but natively compiled down version. Because if Rust can be dealt with, why not .NET, or even Golang?
VC-LTL v5.0.10-Beta2版本开始已经兼容了
.NET Native AOT
!使用方法
net8.0-windows
,这样默认就是兼容Windows 7 RTM
的<SupportedOSPlatformVersion>5.1</SupportedOSPlatformVersion>
csproj文件示例
The text was updated successfully, but these errors were encountered: