@@ -122,7 +122,6 @@ let CreateTypeProvider (
122122
123123 // Create the TypeProviderConfig to pass to the type provider constructor
124124 let e =
125- #if FSHARPCORE_ USE_ PACKAGE
126125 TypeProviderConfig( systemRuntimeContainsType,
127126 ReferencedAssemblies= getReferencedAssemblies(),
128127 ResolutionFolder= resolutionEnvironment.ResolutionFolder,
@@ -131,16 +130,7 @@ let CreateTypeProvider (
131130 IsInvalidationSupported= isInvalidationSupported,
132131 IsHostedExecution= isInteractive,
133132 SystemRuntimeAssemblyVersion = systemRuntimeAssemblyVersion)
134- #else
135- TypeProviderConfig( systemRuntimeContainsType,
136- ReferencedAssemblies= getReferencedAssemblies(),
137- ResolutionFolder= resolutionEnvironment.ResolutionFolder,
138- RuntimeAssembly= runtimeAssemblyPath,
139- TemporaryFolder= resolutionEnvironment.TemporaryFolder,
140- IsInvalidationSupported= isInvalidationSupported,
141- IsHostedExecution= isInteractive,
142- SystemRuntimeAssemblyVersion = systemRuntimeAssemblyVersion)
143- #endif
133+
144134 protect ( fun () -> !!( Activator.CreateInstance( typeProviderImplementationType, [| box e|])) :?> ITypeProvider )
145135
146136 elif not ( isNull( typeProviderImplementationType.GetConstructor [| |])) then
0 commit comments