Closed cartermp closed 3 years ago
Assembly.CodeBase is used here:
Assembly.CodeBase
https://github.com/fsprojects/FSharp.TypeProviders.SDK/blob/master/tests/ProvidedTypesTesting.fs#L596
But it is deprecated:
https://docs.microsoft.com/en-us/dotnet/api/system.reflection.assembly.codebase?view=net-5.0
If you try to build a type provider against .NET 5, this will fail to compile.
We should not use this API somehow. The comment implies that CodeBase provided some utility that Location did not. Is that true? What should we do about it?
CodeBase
Location
cc @dsyme
It can be switched to Locaton I think. IIRC shadow copying is no longer being used.
Assembly.CodeBase
is used here:https://github.com/fsprojects/FSharp.TypeProviders.SDK/blob/master/tests/ProvidedTypesTesting.fs#L596
But it is deprecated:
https://docs.microsoft.com/en-us/dotnet/api/system.reflection.assembly.codebase?view=net-5.0
If you try to build a type provider against .NET 5, this will fail to compile.
We should not use this API somehow. The comment implies that
CodeBase
provided some utility thatLocation
did not. Is that true? What should we do about it?cc @dsyme