Skip to content

Commit 632a362

Browse files
committed
MapFileExtensions NETCORE31
1 parent bed7ae3 commit 632a362

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ITfoxtec.Identity.Saml2.MvcCore/Extensions/MapFileExtensions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if NETCORE30
1+
#if NETCORE30 || NETCORE31
22
using System;
33
#endif
44
using System.IO;
@@ -8,15 +8,15 @@ namespace ITfoxtec.Identity.Saml2.MvcCore
88
{
99
public static class MapFileExtensions
1010
{
11-
#if NETCORE30
11+
#if NETCORE30 || NETCORE31
1212
[Obsolete("The IHostingEnvironment type and this method is obsolete and will be removed in a future version. The recommended alternative is Microsoft.AspNetCore.Hosting.IWebHostEnvironment.", false)]
1313
#endif
1414
public static string MapToPhysicalFilePath(this IHostingEnvironment appEnvironment, string fileName)
1515
{
1616
return Path.Combine(appEnvironment.ContentRootPath, fileName);
1717
}
1818

19-
#if NETCORE30
19+
#if NETCORE30 || NETCORE31
2020
public static string MapToPhysicalFilePath(this IWebHostEnvironment appEnvironment, string fileName)
2121
{
2222
return Path.Combine(appEnvironment.ContentRootPath, fileName);

0 commit comments

Comments
 (0)