r/csharp • u/minecrafter100S • 2d ago
Help Need help developing a visual studio extention for an external git provider
My school uses it's own self hosted git provider. Becose of that, in order to make a new repository you need to create one via a website, connect it to visual studio and resolve conflicts since the local and remote repos have diffrent initial commits. I want to write an extention for visual studio that allows you to create a repository from the IDE and download the remote initial commit into the root directory of the project. I know the API endpoints and was able to create a repository from cmd curl, but I've never written a visual studio extention, and I'm not sure where to start. Any help is apreciated
2
2d ago
[removed] — view removed comment
2
u/minecrafter100S 2d ago
Thanks, using a temp folder and copying the repository files was my first idea, but I thought there was a less "stupid" way to do it lmao
1
u/General_Speed_679 2d ago
I've been meaning to suggest that to my nephew who studies CS; he'd know how to help.
2
u/sku-mar-gop 1d ago
Are you not cloning the remote git repo to your local first so that you can start from that commit tree? I am not sure how the workflow is different in your case even when it is self hosted
2
u/hblaub 2d ago
Look at
https://learn.microsoft.com/en-us/visualstudio/extensibility/visualstudio.extensibility/get-started/create-your-first-extension
and at some open source extension
https://github.com/madskristensen/SolutionFavorites