jetelain / cTab

Public repository for cTab
http://ctab.plan-ops.fr/
GNU General Public License v2.0
8 stars 7 forks source link

How to compile/test this repo (ctab c# webapp)? #36

Closed DE-Schmitt closed 1 year ago

DE-Schmitt commented 1 year ago

I want to modify and play around with a clone of your repo. More precisely: The ctab webapp. Thus I installed Visual Studio Code including github and C# extension and also installed .net 7. I have some trouble compilating this repo because a simple click on run/debug leads to errors like \cTabIRL\cTabWebApp\Hub\CTabHub.cs(7,7): error CS0246: Type- or namespace name "Arma3TacMapLibrary" not found. I also see stuff like \Arma3TacMap\Arma3TacMapLibrary\Arma3TacMapLibrary.csproj was skipped because it was not found. Is there some documentation on how to compile your repo? Is there another repo "Arma3TacMap" I have to download in order to compile cTab webapp?

jetelain commented 1 year ago

Hi, in fact it depends on an additional repo : https://github.com/jetelain/Arma3TacMap I should add a submodule to avoid problems

jetelain commented 1 year ago

I've added a submodule, should be easier to build

DE-Schmitt commented 1 year ago

Ok, thanks for adding the submodule! While "Visual Studio Code" was a pain in the arse I now switched to "Visual Studio". Just cloned the repo, installed the the stuff that popped up automatically and successfully started the webapp :-)

Next step: I try to connect the local webapp to my local ArmA3 game ctab. Lets see if this is also that easy.

jetelain commented 1 year ago

Hi, I'm using Visual Studio 2022, I'm not familiar with dotnet development with Visual Studio Code.

To build and run from command line (requires dotnet sdk 7) :

Then open your browser on http://localhost:5000/