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>
|
||||
public class DefaultRoslynCompilationService : ICompilationService
|
||||
{
|
||||
private readonly DebugInformationFormat _pdbFormat = SymbolsUtility.SupportsFullPdbGeneration() ?
|
||||
DebugInformationFormat.Pdb :
|
||||
private readonly DebugInformationFormat _pdbFormat =
|
||||
#if NET451
|
||||
SymbolsUtility.SupportsFullPdbGeneration() ?
|
||||
DebugInformationFormat.Pdb :
|
||||
DebugInformationFormat.PortablePdb;
|
||||
#else
|
||||
DebugInformationFormat.PortablePdb;
|
||||
#endif
|
||||
private readonly ApplicationPartManager _partManager;
|
||||
private readonly IFileProvider _fileProvider;
|
||||
private readonly Action<RoslynCompilationContext> _compilationCallback;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
// 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.
|
||||
|
||||
#if NET451
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
|
|
@ -42,4 +43,5 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Internal
|
|||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
Loading…
Reference in New Issue