-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathnogui.csproj
51 lines (43 loc) · 1.94 KB
/
nogui.csproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType Condition="$(UseCoreRT) != 'true'">WinExe</OutputType>
<TargetFramework>net5</TargetFramework>
<LangVersion>preview</LangVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<RestoreSources>
https://api.nuget.org/v3/index.json;
https://dotnet.myget.org/F/roslyn/api/v3/index.json;
https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json;
</RestoreSources>
</PropertyGroup>
<PropertyGroup Condition="$(UseCoreRT) == 'true'">
<OutputType>Exe</OutputType>
<DefineConstants>CORERT;$(DefineConstants)</DefineConstants>
<IlcGenerateStackTraceData>false</IlcGenerateStackTraceData>
<IlcInvariantGlobalization>true</IlcInvariantGlobalization>
<NoStdLib>true</NoStdLib>
<NoConfig>true</NoConfig>
<RuntimeMetadataVersion>v4.0.30319</RuntimeMetadataVersion>
<IlcDisableReflection>true</IlcDisableReflection>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
<IlcSystemModule>nogui</IlcSystemModule>
</PropertyGroup>
<ItemGroup Condition="$(UseCoreRT) == 'true'">
<LinkerArg Include="/subsystem:windows /entry:__managed__Main" />
<PackageReference Include="Microsoft.DotNet.ILCompiler" Version="1.0.0-alpha-29117-01" />
</ItemGroup>
<ItemGroup Condition="$(UseCoreRT) != 'true'">
<Compile Remove="MiniBCL.cs" />
<Compile Remove="MiniRuntime.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Net.Compilers.Toolset" Version="3.7.0-3.20302.9" />
</ItemGroup>
<Target Name="CustomizeReferences" BeforeTargets="BeforeCompile" AfterTargets="FindReferenceAssembliesForReferences" Condition="$(UseCoreRT) == 'true'">
<ItemGroup>
<ReferencePathWithRefAssemblies Remove="@(ReferencePathWithRefAssemblies)" />
<ReferencePath Remove="@(ReferencePath)" />
</ItemGroup>
</Target>
</Project>