Skip to content

Instantly share code, notes, and snippets.

CROSSGEN-CORELIB : error : CrossGen System.Private.CoreLib build failed. Refer to D:\git\runtime\src\coreclr\..\..\artifacts\log\CrossgenCoreLib_Windows_NT__x64__Debug.log [D:\git\runtime\src\coreclr\crossgen-corelib.proj]
D:\git\runtime\src\coreclr\crossgen-corelib.proj(18,5): error MSB3073: The command ""D:\git\runtime\src\coreclr\crossgen-corelib.cmd" -x64 -debug" exited with code 1.
D:\git\runtime\.dotnet\sdk\5.0.100-preview.4.20202.8\Microsoft.Common.CurrentVersion.targets(4643,5): error MSB3030: Could not copy the file "D:\git\runtime\artifacts\bin\coreclr\Windows_NT.x64.Debug\clrjit.dll" because it was not found. [D:\git\runtime\src\coreclr\src\tools\crossgen2\crossgen2\crossgen2.csproj]
D:\git\runtime\.dotnet\sdk\5.0.100-preview.4.20202.8\Microsoft.Common.CurrentVersion.targets(4643,5): error MSB3030: Could not copy the file "D:\git\runtime\artifacts\bin\coreclr\Windows_NT.x64.Debug\jitinterface.dll" because it was not found. [D:\git\runtime\src\coreclr\src\tools\crossgen2\crossgen2\crossgen2.csproj]
#include "palrt.h"
#include "pal.h"
#include "stdlib.h"
#include "pal_mstypes.h"
#include "pal_error.h"
#include <new>
#include <memory.h>
bool ResizeBuffer(char *&buffer, int& size, int currLen, int newSize, bool &fixedBuffer)
@leculver
leculver / debugcreate.cs
Created October 28, 2015 17:27
A program to test if DebugCreate can be called.
using System;
using System.IO;
using System.Runtime.InteropServices;
[Flags]
public enum LoadLibraryFlags : uint
{
NoFlags = 0x00000000,
DontResolveDllReferences = 0x00000001,
LoadIgnoreCodeAuthzLevel = 0x00000010,
@leculver
leculver / ClrObject.cs
Last active February 3, 2017 10:08
Proposal for ClrObject implementation
struct ClrObject
{
const ulong AddressMask = 0x3FFFFFFFFFFFFFFF;
const ulong InteriorBit = 0x8000000000000000;
const ulong ExactTypeBit = 0x4000000000000000;
// bit0: interior
// bit1: exact type
// remaining bits: the address
private ulong _address;