Skip to content

Commit

Permalink
Build fix for FX_NO_LOCAL_FILESYSTEM
Browse files Browse the repository at this point in the history
  • Loading branch information
Thorium committed Jun 5, 2024
1 parent 3a9510e commit a0967e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ProvidedTypes.fs
Original file line number Diff line number Diff line change
Expand Up @@ -15929,14 +15929,14 @@ namespace ProviderImplementation.ProvidedTypes
let probingFolders = ResizeArray()
let handler = ResolveEventHandler(fun _ args -> this.ResolveAssembly(args))
do AppDomain.CurrentDomain.add_AssemblyResolve handler
#endif

// By default add the location of the TPDTC assembly (which is assumed to contain this file)
// as a probing location.
do if addDefaultProbingLocation then
let thisAssembly = Assembly.GetExecutingAssembly()
let folder = thisAssembly.Location |> Path.GetDirectoryName
probingFolders.Add folder
#endif

new (config, namespaceName, types, ?sourceAssemblies, ?assemblyReplacementMap, ?addDefaultProbingLocation) =
let sourceAssemblies = defaultArg sourceAssemblies [ Assembly.GetCallingAssembly() ]
Expand Down

0 comments on commit a0967e0

Please sign in to comment.