Generate portable pdbs in coreclr
This commit is contained in:
parent
5339a3e0ce
commit
55e9adf84d
|
|
@ -27,9 +27,14 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Internal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class DefaultRoslynCompilationService : ICompilationService
|
public class DefaultRoslynCompilationService : ICompilationService
|
||||||
{
|
{
|
||||||
private readonly DebugInformationFormat _pdbFormat = SymbolsUtility.SupportsFullPdbGeneration() ?
|
private readonly DebugInformationFormat _pdbFormat =
|
||||||
DebugInformationFormat.Pdb :
|
#if NET451
|
||||||
|
SymbolsUtility.SupportsFullPdbGeneration() ?
|
||||||
|
DebugInformationFormat.Pdb :
|
||||||
|
DebugInformationFormat.PortablePdb;
|
||||||
|
#else
|
||||||
DebugInformationFormat.PortablePdb;
|
DebugInformationFormat.PortablePdb;
|
||||||
|
#endif
|
||||||
private readonly ApplicationPartManager _partManager;
|
private readonly ApplicationPartManager _partManager;
|
||||||
private readonly IFileProvider _fileProvider;
|
private readonly IFileProvider _fileProvider;
|
||||||
private readonly Action<RoslynCompilationContext> _compilationCallback;
|
private readonly Action<RoslynCompilationContext> _compilationCallback;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
|
#if NET451
|
||||||
using System;
|
using System;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
|
|
@ -42,4 +43,5 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Internal
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
Loading…
Reference in New Issue