Posted 15 November 2023, 6:19 pm EST
We have a visual studio project for AR, sdk-style, that targets both .net6 and net48. In the .net 6 assembly, embedded resources for reports have the full namespace name, e.g.,
CBORD.Fms.Reports.AccountsPayablePreExportMasterReport.resources
in the .net 4.8 assembly, the embedded resource has a partial name, e.g.,
Reports.AccountsPayablePreExportMasterReport.resources
We have a test, using nunit, running in .Net Framework 4.8, that runs successfully on one system, but on another it fails with System.Resources.MissingManifestResourceException
*Could not find any resources appropriate for the specified culture or the neutral culture.
Make sure “CBORD.Fms.Reports.PostVendorItemUpdate.resources” was correctly embedded or linked into assembly “Reports” *
Note that it is looking for the resource with the full name, but the .net 4.8 assembly does not have fullnamed resource.
We don’t know why this ever succeeds, but we need to fix the failure. WHat’s up with this? Thanks.
P.S. Sitemasters, it’s surprising that the forum would not allow me to put “MissingManifestResourceException” in the title because the word is too long. Sometimes we have to use big words.