Update README.md
This commit is contained in:
parent
1f07b4b4a4
commit
4e5ee08da8
1 changed files with 7 additions and 10 deletions
17
README.md
17
README.md
|
|
@ -1,4 +1,4 @@
|
||||||

|

|
||||||
|
|
||||||
# Raylib-cs
|
# Raylib-cs
|
||||||
|
|
||||||
|
|
@ -23,8 +23,7 @@ accepted if they don't have a large maintainence burden.
|
||||||
This is the prefered method to get started.
|
This is the prefered method to get started.
|
||||||
|
|
||||||
1) Pick a folder in which you would like to start a raylib project. For example "MyRaylibCSProj".
|
1) Pick a folder in which you would like to start a raylib project. For example "MyRaylibCSProj".
|
||||||
2) Then from a terminal (for example a VSCode terminal), whilst in the directory you just created
|
2) Then from a terminal whilst in the directory you just created run the following commands. (Please keep in mind .NET should already be installed on your system).
|
||||||
run the following commands. (Please keep in mind .NET should already be installed on your system)
|
|
||||||
|
|
||||||
```
|
```
|
||||||
dotnet new console
|
dotnet new console
|
||||||
|
|
@ -37,9 +36,7 @@ dotnet add package Raylib-cs
|
||||||
|
|
||||||
If you need to edit Raylib-cs source then you will need to add the bindings as a project (see below).
|
If you need to edit Raylib-cs source then you will need to add the bindings as a project (see below).
|
||||||
|
|
||||||
If you are new to using NuGet (or you've forgotten) and are trying to run the above command in the command prompt,
|
Remember if you are trying to run the above commands in the terminal that you need to be *inside the intended project directory* (not just inside the solution directory) otherwise the command won't work.
|
||||||
remember that you need to be *inside the intended project directory* (not just inside the solution directory)
|
|
||||||
otherwise the command won't work.
|
|
||||||
|
|
||||||
## Installation - Manual
|
## Installation - Manual
|
||||||
|
|
||||||
|
|
@ -47,10 +44,9 @@ otherwise the command won't work.
|
||||||
|
|
||||||
2. Add [Raylib-cs/Raylib-cs.csproj](Raylib-cs/Raylib-cs.csproj) to your project as an existing project.
|
2. Add [Raylib-cs/Raylib-cs.csproj](Raylib-cs/Raylib-cs.csproj) to your project as an existing project.
|
||||||
|
|
||||||
3. Download/build the native libraries for the platforms you want using the [official 6.0 release](https://github.com/raysan5/raylib/releases/tag/6.0).
|
3. Download/build the native libraries for the platforms you want using the [official 6.0 release](https://github.com/raysan5/raylib/releases/tag/6.0). **NOTE: the MSVC version is required for Windows platforms**
|
||||||
**NOTE: the MSVC version is required for Windows platforms**
|
|
||||||
|
|
||||||
4. Setup the native libraries so they are in the same directory as the executable/can be found in the [search path](https://www.mono-project.com/docs/advanced/pinvoke/).
|
4. Add the native libraries to your project so they are in the same directory as the executable/can be found in the [search path](https://www.mono-project.com/docs/advanced/pinvoke/).
|
||||||
|
|
||||||
6. Start coding!
|
6. Start coding!
|
||||||
|
|
||||||
|
|
@ -63,7 +59,8 @@ namespace HelloWorld;
|
||||||
|
|
||||||
internal static class Program
|
internal static class Program
|
||||||
{
|
{
|
||||||
// STAThread is required if you deploy using NativeAOT on Windows - See https://github.com/raylib-cs/raylib-cs/issues/301
|
// STAThread is required if you deploy using NativeAOT on Windows
|
||||||
|
// See https://github.com/raylib-cs/raylib-cs/issues/301
|
||||||
[System.STAThread]
|
[System.STAThread]
|
||||||
public static void Main()
|
public static void Main()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue