using System;
using System.Runtime.InteropServices;
-using Console = Internal.Console;
-
public class FakeInjectedCode
{
int NonStatic(String argument) { return 0;}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
- <ReferenceSystemPrivateCoreLib>true</ReferenceSystemPrivateCoreLib>
</PropertyGroup>
<Import Project="$([MSBuild]::GetPathOfFileAbove(Interop.settings.targets))" />
<ItemGroup>
using System.Runtime.CompilerServices;
using System.Threading;
-using Console = Internal.Console;
-
[assembly: DefaultDllImportSearchPaths(DllImportSearchPath.SafeDirectories)]
public class CallbackStressTest
{
<PropertyGroup>
<OutputType>Exe</OutputType>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <ReferenceSystemPrivateCoreLib>true</ReferenceSystemPrivateCoreLib>
<DefineConstants Condition="$(TargetOS) == 'Windows_NT'">WINDOWS</DefineConstants>
</PropertyGroup>
<ItemGroup>
using System.Reflection;
using System.Runtime.InteropServices;
-using Console = Internal.Console;
-
[assembly: DefaultDllImportSearchPaths(DllImportSearchPath.SafeDirectories)]
public class CallbackTests
{
<PropertyGroup>
<OutputType>Exe</OutputType>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <ReferenceSystemPrivateCoreLib>true</ReferenceSystemPrivateCoreLib>
</PropertyGroup>
<ItemGroup>
<Compile Include="CallbackTests.cs" />
using System.Reflection;
using System.Runtime.InteropServices;
-using Console = Internal.Console;
-
public class ALC : AssemblyLoadContext
{
protected override Assembly Load(AssemblyName assemblyName)
<PropertyGroup>
<OutputType>Exe</OutputType>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <ReferenceSystemPrivateCoreLib>true</ReferenceSystemPrivateCoreLib>
<!-- The test leaves AssemblyLoadContext.Default.ResolvingUnmanagedDll event registered to a method in the test at exit -->
<UnloadabilityIncompatible>true</UnloadabilityIncompatible>
</PropertyGroup>
<PropertyGroup>
<OutputType>Library</OutputType>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <ReferenceSystemPrivateCoreLib>true</ReferenceSystemPrivateCoreLib>
</PropertyGroup>
<ItemGroup>
<Compile Include="*.cs" />