(Ignore code type error - it was copied ree handed) The bottom line is:
The System.Resources.Extensions nuget dll is not uploading to the project runtime folder.
Here is the full story:
.Net Project FW: 4.6.1. Project is built successfully using the VS build command, but fails when trying to run the dotnet build command, getting the errors:
error MSB3823: Non-string resources require the property GenerateResourceUsePreserializedResources to be set to true.
MSB3822: Non-string resources require the System.Resources.Extensions assembly at runtime, but it was not found in this project's references".
So, I edited the csproj file and added:
<GenerateResourceUsePreserializedResources>true</GenerateResourceUsePreserializedResources>
I installed nuget netStandard 2.0, and then installed nuget System.Resources.Extensions version 6.0.0.
Now I build he project using dotnet build cli and for some reason the System.Resources.Extensions dll is not uploading into the project runtime folder, so I get the error:
MSB3822: Non-string resources require the System.Resources.Extensions assembly at runtime, but it was not found in this project's references".
How can I solve it ? (can't upgrade the project .NET version)