Etuldan / MidiControl

MIDIControl is a standalone software (Windows Only), to remote control OBS, remote control your GoXLR, act as Soundboard, send message in Twitch Chat, and more..., with any MIDI controller like APC (from AKAI) or Launchpad (from Novation).
GNU General Public License v3.0
63 stars 11 forks source link

Compilation problem #94

Closed DAL30200 closed 5 months ago

DAL30200 commented 5 months ago

Hi,

First of all, thank you for your program! I wanted to try to compile your program from the sources you provided but I have an error that I cannot resolve. I have CS2034 errors: The type or namespace name 'Resource' does not exist in the namespace 'MidiControl.Properties' (are you missing an assembly reference?) I did some research but couldn't find anything conclusive. My version of Visual Studio Community 2022 is 17.8.5. Is there any configuration to be done at the project level?

Thank you in advance for your answer.

(Sorry for the English, I did the translation with Google Translate, I'm French)

Etuldan commented 5 months ago

Hey ! You can look at the build sequences in the Github Actions, see https://github.com/Etuldan/MidiControl/blob/main/.github/workflows/build.yml And for your issue : .\ResGen.exe "D:\a\MidiControl\MidiControl\MidiControl\Properties\Resources.resx" /useSourcePath /str:csharp,MidiControl.Properties

(et ne t'excuse pas de ton anglais car tu es Français, on a cette sale manie de dire ça alors qu'en vrai, bah probablement pas mal de monde passe par GoogleTranslate/Deepl, peut importe la langue maternelle ;) )

DAL30200 commented 5 months ago

Merci pour ta réponse rapide ! Je voulais écrire en français car j'avais vu que tu étais Français mais je me suis dit que ce serait plus universel d'écrire en anglais ! Bon si j'ai bien compris il faut que je change dans le fichier build.yml le chemin de Resources.resx pour qu'il pointe vers la ou j'ai mis les sources ? Je dois le faire depuis notepad ou dans Visual ? Désolé je suis informaticien mais plutôt orienté automatisme et supervision. j'ai pas l'habitude de me servir de Visual.

Etuldan commented 5 months ago

ResGen.exe should be included with your VSStudio tools. Run it with the arguments specified in the command line.

The build.yml file is used only by the Github actions to generate the program from the sources. But each command in it should be runnable in a local dev environment.