© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
19 replies
blackSheep

✅ C# + raylib + freebsd

Hi All,

I'm running FreeBSD 14 Release, dotnet 8.0 compiled from Ports and Raylib 5.0 downloaded from GitHub.

When I run a simple sample helloworld I get this error msg:

dandvv@i7_32Gb@freeBSD:~/dev/src/raylib$dotnet run
/home/dandvv/dev/src/raylib/Program.cs(18,70): error CS0117: 'Color' does not contain a definition for 'RED' [/home/dandvv/dev/src/raylib/raylib.csproj]

The build failed. Fix the build errors and run again.

This is the directory structure on /home/dandvv/dev/src/raylib/
- Program.cs
- Raylib-cs
- bin
- obj
- raylib.csproj

This is the sample code: https://pastebin.com/z9XnvaXT


If I comment the lines where I use the "Color.RED" element the sample compile with no warnings and runs fine.

Any light on that would be much appreciate.
Pastebin
C# Raylib - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ raylib c# 2d collison
C#CC# / help
3y ago
✅ how does one setup raylib with c#
C#CC# / help
3mo ago
Pacman-esque game in c# raylib. Help with optimisation/collision
C#CC# / help
3y ago