Generate portable pdbs in coreclr

This commit is contained in:
Pranav Krishnamoorthy 2016-06-09 17:10:04 -07:00
parent 5339a3e0ce
commit 55e9adf84d
2 changed files with 10 additions and 3 deletions

View File

@ -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;

View File

@ -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