Fixed ifdefs
This commit is contained in:
parent
0c064dfb6c
commit
327589d41e
|
|
@ -8,13 +8,13 @@ namespace Microsoft.AspNet.IISPlatformHandler
|
||||||
{
|
{
|
||||||
internal class NativeMethods
|
internal class NativeMethods
|
||||||
{
|
{
|
||||||
#if DNXCORE50
|
#if DOTNET5_4
|
||||||
private const string api_ms_win_core_handle_LIB = "api-ms-win-core-handle-l1-1-0.dll";
|
private const string api_ms_win_core_handle_LIB = "api-ms-win-core-handle-l1-1-0.dll";
|
||||||
#else
|
#else
|
||||||
private const string KERNEL32 = "kernel32.dll";
|
private const string KERNEL32 = "kernel32.dll";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if DNXCORE50
|
#if DOTNET5_4
|
||||||
[DllImport(api_ms_win_core_handle_LIB, ExactSpelling = true, SetLastError = true)]
|
[DllImport(api_ms_win_core_handle_LIB, ExactSpelling = true, SetLastError = true)]
|
||||||
#else
|
#else
|
||||||
[DllImport(KERNEL32, ExactSpelling = true, SetLastError = true)]
|
[DllImport(KERNEL32, ExactSpelling = true, SetLastError = true)]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue