Skip to content
This repository was archived by the owner on Jul 9, 2023. It is now read-only.

Commit db5ff17

Browse files
committed
fix
1 parent 542154b commit db5ff17

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Titanium.Web.Proxy/Certificates/Cache/DefaultCertificateDiskCache.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,13 @@ private string getRootCertificateDirectory()
129129
assemblyLocation = Assembly.GetEntryAssembly().Location;
130130
}
131131

132+
#if NETSTANDARD2_1
132133
// single-file app returns string.Empty location
133134
if (assemblyLocation == string.Empty)
134135
{
135136
assemblyLocation = AppContext.BaseDirectory;
136137
}
138+
#endif
137139

138140
string path = Path.GetDirectoryName(assemblyLocation);
139141

0 commit comments

Comments
 (0)