Thank you for your quick reply.
Three parts to this reply:
1) It works now.
2) What I think happened.
3) We need better Visual Studio tooling around this.
1) It works now.
As I started to work through the suggestions on the StackOverflow page, some seemed like good ideas and some seemed like setting up fragile situations that will just break later. I will explain in item #3.
As I worked through the suggestions, I was carefully writing up a reply stating that there were only 3 NuGet packages in my test project:
a) MSTest.TestAdapter
b) MSTest.TestFramework
c) Azure.Storage.Blobs, v. 12.8.0
As I started to type out "The two NuGet packages for unit testing couldn't be the problem" I realized there was no logical reason this must be true. I had unconsciously assumed that unit test packages were clean or special in some way that would prevent them from causing conflicts. Turns out this isn't true.
I took the exact same code, moved it to a .Net Framework 4.8 console app and it runs fine.
2) What I think happened.
NuGet UI (in Visual Studio) says that MSTest.TestFramework has no dependencies.
MSTest.TestAdapter depends on
.NetCoreApp
NETStandardLibrary
System.Diagnostics.TextWriterTraceListener
if I'm reading the NuGet dialog correctly.
Note that none of these words mention System.Buffers. Is there some chain of dependencies that includes System.Buffers? No reasonable way for me to know.
What I think happened, and please read this closely, is that MSTest.TestAdapter caused Azure.Storage.Blobs to try to load an OLDER version of System.Buffers (4.0.2.0), which is not even available via NuGet or through the command-line package manager, as far as I can tell.
Bad enough if MSTest needs a new version and Azure.Storage.Blobs needs an old version, except that's not what happened, and both of these packages are new.
Please correct me if I'm misinterpreting, but I think I just spent an entire day (actually more) determining that the unit test package causes the Azure blobs package to try to use an outdated version of System.Buffers. This info is not available at any top-level UI that I can find in VS or NuGet. Maybe it is imputable through some amount of sleuthing of dependencies.
Which brings me to #3.
3) We need better tooling around this.
Or, failing that, we need a video explaining how to troubleshoot these situations.
I tried auto-generating redirects. I tried manual redirects. Even if manual redirects worked, I'm concerned that I'd only be kicking the can down the road, and that adding another NuGet package would cause a new conflict.
I get that dependencies exist. I'm OK with some amount of fiddling. But having two brand-new packages force the code to find an old one that isn't published is scary.
If I'm misunderstanding how this stuff works, please correct me.
Otherwise, we need to make this easier. I've been a dev for over 40 years. I've been a MS dev for 20 years. I architect/code/mentor over 40 hours a week, every week. This is too much to put on devs, from junior to senior.