Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

169
Views
Case sensitive javascript filename in a source tag in Linux containers for .NetCore apps

I am observing an odd behavior while containerizing a .NetCore app. On the server side, there is a file in "wwwroot/js" folder named "myScript.js" - notice a lower case 'm'. On my development laptop, the containerized .NetCore app with a "<script src="~/js/MyScript.js>" line in an html file causes a runtime error in the browser console showing a 404 error, "myScript.js" not found. On another developer's computer, when using the same source code, with an identical dockerfile with the same base container 'mcr.microsoft.com/dotnet/aspnet:6.0' and everything else appearing identical in the Visual Studio settings, the same containerized app, deployed and running via Visual Studio 2022 Docker interface, just like on my laptop, runs fine. There is no 404 error and the application works fine. This only happens when containerizing to a Linux rather than a Windows container, which can make sense since Linix is case sensitive, while Windows OS is not. So, I must assume there is a config setting somewhere which forces case sensitivity on or off when server side code fetches the .js file. Can anyone direct me where/what that setting is? Or is there another cause?

As a background, the app is web app built with a .NetCore 6, but same issue exists with built on .NetCore 3.1. Our Windows Docker Desktop version is the only thing that appears different - I have 3.2.2, while the other developer has 4.6.1, but I wouldn't think this could make a runtime difference?

about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!