Open nguerrera opened 6 years ago
From @amrmahdi on May 10, 2018 6:55
This works if I edit the .resx files manually and replace System.IO.MemoryStream, System.Runtime.Extensions, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
with System.IO.MemoryStream, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
.
Why does Visual studio references the wrong assembly ?
cc @ericstj @davkean @rainersigwald
Why does Visual studio references the wrong assembly ?
The reference VS wrote is technically correct, but the code that is reading the resx is assuming that it can do an active load on assemblies that appear in it.
It’ll probably work on .net 4.7.1 since that assembly is in the unification table but that’s a hack. I thought this same problem was hit for UWP and a task was rewritten on s.r.m or LMR. Apparently not this task.
From @amrmahdi on May 10, 2018 0:38
I'm not able to get a vanilla NET Core app to with localized stream resources to compile. The app is targeting net core 2.0. I've created a repo with a simple project to repro the error: https://github.com/amrmahdi/dotnetcore-localized-resources
The error that I get is
The resource files are added using the Visual studio experience.
Copied from original issue: dotnet/sdk#2228