Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
/MvcPublic archive

Commit55e9adf

Browse files
author
Pranav Krishnamoorthy
committed
Generate portable pdbs in coreclr
1 parent5339a3e commit55e9adf

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

‎src/Microsoft.AspNetCore.Mvc.Razor/Internal/DefaultRoslynCompilationService.cs‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,14 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Internal
2727
/// </summary>
2828
publicclassDefaultRoslynCompilationService:ICompilationService
2929
{
30-
privatereadonlyDebugInformationFormat_pdbFormat=SymbolsUtility.SupportsFullPdbGeneration()?
31-
DebugInformationFormat.Pdb:
30+
privatereadonlyDebugInformationFormat_pdbFormat=
31+
#ifNET451
32+
SymbolsUtility.SupportsFullPdbGeneration()?
33+
DebugInformationFormat.Pdb:
34+
DebugInformationFormat.PortablePdb;
35+
#else
3236
DebugInformationFormat.PortablePdb;
37+
#endif
3338
privatereadonlyApplicationPartManager_partManager;
3439
privatereadonlyIFileProvider_fileProvider;
3540
privatereadonlyAction<RoslynCompilationContext>_compilationCallback;

‎src/Microsoft.AspNetCore.Mvc.Razor/Internal/SymbolsUtility.cs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

4+
#ifNET451
45
usingSystem;
56
usingSystem.Runtime.InteropServices;
67

@@ -42,4 +43,5 @@ public static bool SupportsFullPdbGeneration()
4243
returnfalse;
4344
}
4445
}
45-
}
46+
}
47+
#endif

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp