|
1 | 1 | # Dev Kit Installation |
2 | 2 |
|
3 | | -### Prerequisites for Windows |
| 3 | +## Windows |
| 4 | + |
| 5 | +### Prerequisites |
4 | 6 |
|
5 | 7 | * (Free) source code of Development Kit from [Cosmos on GitHub](https://github.com/CosmosOS/Cosmos) |
6 | 8 | * You must clone the repository using Git. For a detailed walkthrough, [see here](https://help.github.com/articles/fork-a-repo/). |
7 | 9 | * (Free) [Visual Studio 2022 Community](https://visualstudio.microsoft.com/vs/) |
8 | 10 | * (Free) [InnoSetup](http://www.jrsoftware.org/isdl.php#qsp) |
9 | 11 | * This is required to build the setup kit which is used to build and install the Visual Studio integration libaries for Cosmos. |
10 | | - * During install it will ask you about optional components to install. Be sure you check "Install Inno Setup Preprocessor". |
| 12 | + * During install it will ask you about optional components to install. Be sure you check "Install Inno Setup Preprocessor". |
| 13 | + |
| 14 | +### Installation |
| 15 | + |
| 16 | +* Look in the downloaded sources and run **install-VS2022.bat** with admin privileges (UAC will ask for permission), needed for install in system directories. |
| 17 | +* When the installation is complete, Visual Studio will automatically open and you may begin programming with your new, modified copy of Cosmos. |
| 18 | + |
11 | 19 |
|
12 | | -### Prerequisites for Linux |
| 20 | +## Linux |
| 21 | + |
| 22 | +### Prerequisites |
13 | 23 |
|
14 | 24 | * .NET SDK (6+): [Download .NET SDK](https://learn.microsoft.com/en-us/dotnet/core/install/linux) |
15 | 25 | * Make (`apt install make`) |
16 | 26 | * Yasm (`apt install yasm`) |
17 | 27 | * Xorriso (`apt install xorriso`) |
18 | 28 | * QEMU or any other virtual machine. See [Running](https://cosmosos.github.io/articles/Installation/Running.html) for more information. |
19 | 29 |
|
20 | | -### Installation on Windows |
21 | 30 |
|
22 | | -* Look in the downloaded sources and run **install-VS2022.bat** with admin privileges (UAC will ask for permission), needed for install in system directories. |
23 | | -* When the installation is complete, Visual Studio will automatically open and you may begin programming with your new, modified copy of Cosmos. |
24 | | - |
25 | | -### Installation on Linux |
| 31 | +### Installation |
26 | 32 | Run `make` to build Cosmos. Cosmos will clone all the required repos, build itself, and install it and it's nuget packages to the system automatically. |
27 | 33 |
|
| 34 | +## notes / FAQ |
| 35 | + |
| 36 | +### custom cosmos repos |
| 37 | + |
| 38 | +if you are using custom cosmos repos you will need to clone them all manually as the installer script will pull from https://github.com/CosmosOS/ |
| 39 | + |
| 40 | +A tree diagram of the source should look like the following: |
| 41 | + |
| 42 | +<img src="https://raw.githubusercontent.com/CosmosOS/Cosmos/master/Docs/images/Dir.png" width="200"> |
| 43 | + |
| 44 | + |
| 45 | +### get stuck pulling the git repos |
| 46 | + |
| 47 | +check if git is installed and in your path as we use git to pull the repos |
| 48 | + |
| 49 | +### i just updated and my project is sill using the old version |
| 50 | + |
| 51 | +you may need to clear you nuget cache try ``dotnet clean`` to clear the project level cache |
| 52 | + |
| 53 | +### the project templates are not showing in visual studio |
| 54 | + |
| 55 | +if you have more then 1 version of visual studio installed this can bug this follow "dotnet Project Templates" should fix it |
| 56 | + |
28 | 57 | ### dotnet Project Templates |
29 | 58 | If you are using linux or prefer not using Visual Studio for your projects, you can install the dotnet project template using `dotnet new --install ./source/templates/csharp/` assuming you are currently in the Cosmos base directory. |
30 | 59 | After installing the template use `dotnet new cosmosCSKernel -n {name}` to create a new Cosmos Kernel project. |
|
0 commit comments