Loki icon indicating copy to clipboard operation
Loki copied to clipboard

little help

Open SpookHCK opened this issue 3 years ago • 6 comments

Hi, I'm a noob... But I have Visual studio... I have opened the solution and seem to have the dependencies loaded... how do I get the gitversion.json file so I can compile the code?

Thanks

SpookHCK avatar Jan 04 '23 04:01 SpookHCK

@jensbrak Any chance you could point me in a direction to learn how to make this go? Thanks.

SpookHCK avatar Jan 05 '23 05:01 SpookHCK

Do you get errors when trying to compile? How did you get the code?

I cloned the repo and it worked right off the bat.

jensbrak avatar Jan 05 '23 07:01 jensbrak

I downloaded a zip and I get an error about a gitversion.json file being missing, I'll try clone the repo later.. It sounds like there is a dependency on that! Thanks for the hint!

SpookHCK avatar Jan 05 '23 13:01 SpookHCK

I'd recommend clicking on the green Code button and select "Open with GitHub Desktop". If you don't have it, follow instructions to install it. Once installed, any repo you want to download - click on that green Code button and open it with GitHub Desktop. The app will then do a clone of the repo.

jensbrak avatar Jan 05 '23 13:01 jensbrak

ok, a couple of issues.. but I've got past that bit :) old version of visual studio.. mostly to blame... but I have found if I just create an empty file ./Loki/obj/gitversion.json I can get something that complies... could you check your version and see it there is supposed to be any data in that file? Thanks.

SpookHCK avatar Jan 09 '23 03:01 SpookHCK

That file is not something you should need to edit or touch. It's produced by the gitversion tool, which you should be running automatically when the project is built.

What version of Visual Studio are you using @SpookHCK? You should really upgrade to VS2022 if you can because the project has just moved to .NET 7 so having the latest tooling will be helpful. It should build the project without any manual steps involved.

If you want to build the project without stamping the git version information into the assembly, you can just temporarily remove the GitVersion nuget reference.

Wufflez avatar Jan 09 '23 15:01 Wufflez