question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`dotnet test` fails for Norwegian resources on Ubuntu 20.04

See original GitHub issue

Hi,

Running dotnet test in this example project fails for Norwegian resources on Linux, but works fine on Windows. The tests succeed for French and German. I have noticed that dotnet build only produces a bin/Debug/netcoreapp3.1/no/xUnitCulture.resources.dll output file when running on Windows. Is there anything I’m missing?

Possibly related issues:

Thanks, Bjørn

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:2
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
fjukstadcommented, Jun 30, 2020

Renaming the resource file from Resource.no.resx to Resource.nb.resx results in a nb/ output directory, and makes the tests in the example repository pass on Ubuntu. We can access the resources with CultureInfo("nb") or CultureInfo("nb-NO"). On Windows we do not have to rename the resource file, and we can access the resources with CultureInfo("no"), CultureInfo("nb"), or CultureInfo("nb-NO"). In summary, renaming the resource file and accessing it with nb or nb-NO is a solution, but it would be interesting to know why Resource.no.resx and CultureInfo("no") works on Windows, but not Ubuntu.

0reactions
rainersigwaldcommented, May 3, 2023

I don’t recall a specific fix for no in MSBuild; looking I saw https://github.com/dotnet/msbuild/pull/7853 (match .NET runtime behavior more closely) and https://github.com/dotnet/msbuild/pull/8011 (specific to pseudo-loc).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Running unit tests on Ubuntu-20.04 with .NET Core 2.1 fails
I have set up an Azure Pipeline for our .NET Standard 2.0 project that contains a test stage with a matrix job that...
Read more >
Install the .NET SDK or the .NET Runtime on Ubuntu
I want to create a .NET app. Use the same package sources for the SDK as you use for the runtime. For example,...
Read more >
Why does "dotnet test" fail on ubuntu LTS 14.04?
Sadly, I found the reason after some google-fu and digging through the dotnet code (and issues via github). Bottom line: the feature is...
Read more >
Azul Zulu 17 General Availability Release Notes
[macos-aarch64] 7 java/net/httpclient/websocket tests failed. JDK-8268702. JFR diagnostic commands lack argument descriptors when viewed ...
Read more >
Make Lattice iCEcube2 work on Ubuntu 20.04 and ...
This tutorial shows how to install the Lattice iCEcube2 FPGA design software on Ubuntu 20.04 and how to program the iCEstick FPGA from ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found