Skip to content

Commit a38fdc9

Browse files
committed
Add case sensitivity example
1 parent b4d260d commit a38fdc9

File tree

1 file changed

+9
-0
lines changed
  • articles/tutorials/building_2d_games/25_packaging_game

1 file changed

+9
-0
lines changed

articles/tutorials/building_2d_games/25_packaging_game/index.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,15 @@ string path = Path.Combine("Content", "images", "atlas-definition.xml");
388388
389389
Windows is case-insensitive for filenames, but macOS and Linux are case-sensitive. Ensure your asset references use the exact case that matches your files for maximum compatibility.
390390
391+
```cs
392+
// If the content path on disk is:
393+
// images/Atlas.xnb
394+
395+
// On Windows, this would work fine since windows is case-insensitive.
396+
// ON macOS and Linux, this would fail since they are case-sensitive.
397+
Texture2D text = Content.Load<Texture2D>("images/atlas");
398+
```
399+
391400
### External Dependencies
392401
393402
Try to minimize external dependencies. If your game requires additional libraries or runtimes, document these requirements clearly for players.

0 commit comments

Comments
 (0)