blackSheep
blackSheep
CC#
Created by blackSheep on 4/11/2024 in #help
✅ 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.
20 replies
CC#
Created by blackSheep on 3/6/2024 in #help
Resizing the Console window - Console Application
Hi there, I'm trying to resize the console window in a Console Application. I have tried multiple things and some samples from the MSDN to get this to work but so far didn't manage to get the console to work.
namespace ConsoleApp1
{
internal class Program
{
static void Main(string[] args)
{
Console.SetWindowSize(100, 100);
Console.WriteLine("{0} , {1}",Console.WindowWidth, Console.WindowHeight);
Console.ReadKey();

Console.SetWindowSize(50, 50);
Console.WriteLine("{0} , {1}", Console.WindowWidth, Console.WindowHeight);
}
}
}
namespace ConsoleApp1
{
internal class Program
{
static void Main(string[] args)
{
Console.SetWindowSize(100, 100);
Console.WriteLine("{0} , {1}",Console.WindowWidth, Console.WindowHeight);
Console.ReadKey();

Console.SetWindowSize(50, 50);
Console.WriteLine("{0} , {1}", Console.WindowWidth, Console.WindowHeight);
}
}
}
22 replies