[dotnet-linker] Add Debug to the linker configuration. (#9491)
This commit is contained in:
Родитель
9eab011a4b
Коммит
de8cc6bbd8
|
@ -136,6 +136,7 @@
|
|||
<_CustomLinkerOptions>
|
||||
AssemblyName=$(AssemblyName).dll
|
||||
CacheDirectory=$(_LinkerCacheDirectory)
|
||||
Debug=$(_BundlerDebug)
|
||||
DeploymentTarget=$(_MinimumOSVersion)
|
||||
ItemsDirectory=$(_LinkerItemsDirectory)
|
||||
IsSimulatorBuild=$(_SdkIsSimulator)
|
||||
|
|
|
@ -89,6 +89,9 @@ namespace Xamarin.Linker {
|
|||
case "CacheDirectory":
|
||||
CacheDirectory = value;
|
||||
break;
|
||||
case "Debug":
|
||||
Application.EnableDebug = string.Equals (value, "true", StringComparison.OrdinalIgnoreCase);
|
||||
break;
|
||||
case "DeploymentTarget":
|
||||
if (!Version.TryParse (value, out var deployment_target))
|
||||
throw new InvalidOperationException ($"Unable to parse the {key} value: {value} in {linker_file}");
|
||||
|
@ -189,6 +192,7 @@ namespace Xamarin.Linker {
|
|||
Console.WriteLine ($" ABIs: {string.Join (", ", Abis.Select (v => v.AsArchString ()))}");
|
||||
Console.WriteLine ($" AssemblyName: {AssemblyName}");
|
||||
Console.WriteLine ($" CacheDirectory: {CacheDirectory}");
|
||||
Console.WriteLine ($" Debug: {Application.EnableDebug}");
|
||||
Console.WriteLine ($" DeploymentTarget: {DeploymentTarget}");
|
||||
Console.WriteLine ($" ItemsDirectory: {ItemsDirectory}");
|
||||
Console.WriteLine ($" IsSimulatorBuild: {IsSimulatorBuild}");
|
||||
|
|
Загрузка…
Ссылка в новой задаче