You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FEATURE_CASE_SENSITIVE_FILESYSTEM is never defined. It means that the assembly loader ends up doing case-insensitive caching even on OSes that are naturally case-insensitive. It leads to odd behaviors like #57237 (comment) .
Repro:
Create a dummy TestAssembly.dll somewhere
Run on Linux:
Assembly.LoadFrom(@"/path_to_test_assembly/TestAssembly.dll");// This will succeed by using cached copy of TestAssembly.dll even though testassembly.dll does not actually exist on the case-sensitive filesystem
Assembly.LoadFrom(@"/path_to_test_assembly/testassembly.dll");
Note that calling Assembly.LoadFrom(@"/path_to_test_assembly/testassembly.dll"); without the previous LoadFrom call that populates the cache is going to fail.
We need to:
Decide whether whether to fix the current behavior. (Note that Mono does not have this bug, and that fixing it in CoreCLR would be a minor breaking change.)
Add tests for this scenario.
The text was updated successfully, but these errors were encountered:
FEATURE_CASE_SENSITIVE_FILESYSTEM is never defined. It means that the assembly loader ends up doing case-insensitive caching even on OSes that are naturally case-insensitive. It leads to odd behaviors like #57237 (comment) .
Repro:
Create a dummy TestAssembly.dll somewhere
Run on Linux:
Assembly.LoadFrom(@"/path_to_test_assembly/TestAssembly.dll");// This will succeed by using cached copy of TestAssembly.dll even though it does not actually exist on the case-sensitive filesystem
Assembly.LoadFrom(@"/path_to_test_assembly/testassembly.dll");
Note that calling Assembly.LoadFrom(@"/path_to_test_assembly/testassembly.dll"); without the previous LoadFrom call that populates the cache is going to fail.
We need to:
Decide whether whether to fix the current behavior. (Note that Mono does not have this bug, and that fixing it in CoreCLR would be a minor breaking change.)
FEATURE_CASE_SENSITIVE_FILESYSTEM
is never defined. It means that the assembly loader ends up doing case-insensitive caching even on OSes that are naturally case-insensitive. It leads to odd behaviors like #57237 (comment) .Repro:
TestAssembly.dll
somewhereNote that calling
Assembly.LoadFrom(@"/path_to_test_assembly/testassembly.dll");
without the previous LoadFrom call that populates the cache is going to fail.We need to:
The text was updated successfully, but these errors were encountered: