C
C#3mo ago
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.
13 Replies
MODiX
MODiX3mo ago
.NET is a marketing term referring to a family of products, consisting of two different lineages. The .NET Framework ("netfx") lineage was introduced in 2002. This lineage runs only on Windows. Its most recent release is .NET Framework 4.8.1. While this lineage is still supported, very few new features are being introduced into it. Devs are encouraged not to target .NET Framework for new app development. The .NET Core ("netcore") lineage was introduced in 2016. This is a modern development platform which runs across many different OSes. The .NET Core 3.1 product was the last version in this lineage to bear the ".NET Core" name; and starting with the next release (.NET 5), the product was renamed to simply ".NET". .net6 in 2021, .net7 in 2022, .net8 in 2023 ... the next release in this lineage is .NET 9. This lineage is where new features are actively being developed. Devs are encouraged to target .NET for new app development. Nowadays, the ".NET" moniker usually refers to recent versions of the netcore lineage. When you create a new app targeting .NET (not .NET Framework!), you're targeting this newer, modern, cross-platform API surface and runtime.
arion
arion3mo ago
sry on phone, have I tried changing "RED" to "Red"?
MODiX
MODiX3mo ago
arion
REPL Result: Success
var red = System.Drawing.Color.Red;
var red = System.Drawing.Color.Red;
Compile: 240.867ms | Execution: 22.168ms | React with ❌ to remove this embed.
MODiX
MODiX3mo ago
arion
REPL Result: Failure
var red = System.Drawing.Color.RED;
var red = System.Drawing.Color.RED;
Exception: CompilationErrorException
- 'Color' does not contain a definition for 'RED'
- 'Color' does not contain a definition for 'RED'
Compile: 215.580ms | Execution: 0.000ms | React with ❌ to remove this embed.
leowest
leowest3mo ago
GitHub
GitHub - ChrisDill/Raylib-cs: C# bindings for raylib, a simple and ...
C# bindings for raylib, a simple and easy-to-use library to learn videogames programming - ChrisDill/Raylib-cs
leowest
leowest3mo ago
if u see the examples in the readme they are pascal case so Black, White. etc as arion noted
leowest
leowest3mo ago
No description
arion
arion3mo ago
Ain't camel case like camelCase and Pascal that way? :thinking:
leowest
leowest3mo ago
:catlost: yes im just ded thx
arion
arion3mo ago
npnp lmao
blackSheep
blackSheep3mo ago
Yep, that worked. such simple thing. Can't believe I didn't notice something like this.
Unknown User
Unknown User3mo ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX3mo ago
see $structure for most C# usage
lowercase
UPPERCASE
PascalCase
camelCase
MACRO_CASE
snake_case
kebab-case
Train-Case
lowercase
UPPERCASE
PascalCase
camelCase
MACRO_CASE
snake_case
kebab-case
Train-Case
Want results from more Discord servers?
Add your server
More Posts
✅ Setting Foreign key as Primary Key (EF Core)I want to set a foreign key as my primary key in a link table im using. How would I do this in EF CoWinform my button to reset my picturebox and fill it in with a new generated image is not workinghttps://hatebin.com/cslhmvmnya - my code Lines 121-124 is the methos to reset the picturebox but ImVS Project config questions1. Is it bad to enable "Place solution and project in the same folder"? It sounds neater to me but w(Blazor) I'm having trouble accessing a variable inside a parent component.I'm trying to access a simple bool in a parent component that shows when my side bar has been collap✅ There is already an open DataReader associated with this Command which must be closed firstI'm currently developing a Point Of Sale software in winforms c#. While working on cash management mC# Integration with MulesoftWe are looking to re-do an application in microservice style and biz req is pushing Mulesoft for thaVisual Studio opening search results in the search dock, not main windowKinda unrelated to C#, but since a few updates ago Visual Studio started behaving weirdly for me. Logic on properly deploying thingsSo I've been getting into a more professional workflow (id say) with better github practices, workinSystem.AggregateException: 'Some services are not able to be constructedI stuck with this problem and don't understand how to fix it: InvalidOperationException: Unable to rMAUI. How to remove the Title Bar?I need to remove the top panel so that the user can not use the buttons on it.