This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace System.Runtime.InteropServices | |
{ | |
public class UnmanagedType { } | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<PropertyGroup> | |
<NoStdLib>true</NoStdLib> | |
<NoConfig>true</NoConfig> | |
<RuntimeMetadataVersion>v4.0.30319</RuntimeMetadataVersion> | |
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> | |
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute> | |
<IlcSystemModule>SeeSharpSnake</IlcSystemModule> | |
</PropertyGroup> | |
<Target Name="CustomizeReferences" BeforeTargets="BeforeCompile" AfterTargets="FindReferenceAssembliesForReferences"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ItemGroup> | |
<LinkerArg Include="/subsystem:EFI_APPLICATION /entry:EfiMain" /> | |
</ItemGroup> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Target Name="GenerateVirtuaDisk" AfterTargets="Publish"> | |
<PropertyGroup> | |
<VHD>$(MSBuildProjectDirectory)\$(NativeOutputPath)seesharpsnake.vhdx</VHD> | |
<CreatePartitionCommand> | |
create vdisk file=$(VHD) maximum=40 | |
select vdisk file=$(VHD) | |
attach vdisk | |
convert gpt | |
create partition efi | |
format quick fs=fat32 label="System" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
New-VM -Name SeeSharpSnake -MemoryStartupBytes 32MB -Generation 2 -VHDPath "bin\x64\Release\netcoreapp3.1\win-x64\native\seesharpsnake.vhdx" | |
Set-VMFirmware -VMName SeeSharpSnake -EnableSecureBoot Off | |
Set-VM -Name SeeSharpSnake -AutomaticCheckpointsEnabled $false -CheckpointType Disabled |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <reference types="jquery" /> | |
declare interface JQuery { | |
on(events: ':passageinit', handler: (this: JQuery, t: x, ...args: any[]) => any): this; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Internal.Runtime.CompilerHelpers; | |
// .... | |
int main(int argc, char** argv) | |
{ | |
StartupCodeHelpers.InitializeCommandLineArgsW(argc, argv); | |
String[] arguments = StartupCodeHelpers.GetMainMethodArguments(); | |
int exitCode = __managed_Main(arguments); | |
StartupCodeHelpers.SetLatchedExitCode(exitCode); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Internal.Runtime.CompilerHelpers | |
{ | |
internal partial class StartupCodeHelpers | |
{ | |
internal static unsafe void InitializeCommandLineArgsW( | |
int argc, char** argv) | |
{ | |
} | |
internal static unsafe void InitializeCommandLineArgs( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
Console.WriteLine("Hello UEFI!"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// * Summary * | |
BenchmarkDotNet=v0.12.1.20210402-develop, OS=Windows 10.0.19042.867 (20H2/October2020Update) | |
Intel Core i7-6700HQ CPU 2.60GHz (Skylake), 1 CPU, 8 logical and 4 physical cores | |
.NET SDK=5.0.201 | |
[Host] : .NET 5.0.4 (5.0.421.11614), X64 RyuJIT | |
ShortRun : .NET 6.0.0-preview.4.21175.3, X64 AOT | |
| ORM | Method | Return | Mean | StdDev | Error | Gen 0 | Gen 1 | Gen 2 | Allocated | |