-
Notifications
You must be signed in to change notification settings - Fork 552
Cosmos on Visual Studio 2022
With the release of Visual Studio 2022 we have now a branch that works with Cosmos.
However there are a few things to keep in consideration which will be explained below.
If you intend on using Cosmos on VS2022 be aware that the last released user kit will not work and you will need to use the Dev Kit.
Instead of cloning the master branch you should instead clone like this:
git clone https://github.com/CosmosOS/Cosmos.git --branch VS2022
then simply run : install-vs2022.bat and install as normal, if you are missing the .NET 5.0 builder will tell you so and provide a link for the download.
Since Microsoft has not yet integrated the possibility for us to implement custom property pages you will not have the Settings window you are used to.
A workaround will be to open your .csproj file in a editor and replace the first <PropertyGroup>
block with the one in the link provided here: Gist Link
If you want to use Bochs instead of VMWare replace this in the second PropertyGroup Block :
<Launch>VMware</Launch>
<Profile>VMware</Profile>
with:
<Launch>Bochs</Launch>
<Profile>Bochs</Profile>
and toggeling between False/True in this line:
<DebugEnabled>False</DebugEnabled>
will disable or enable the internal VS Debugger.
Last but not least:
If you happen to have VS 2019 and 2022 installed next to each other the extensions will fail to install, in this case go to %appdata%\Cosmos User Kit\VSIX
and install the extensions manually by double clicking on them.