-
-
Notifications
You must be signed in to change notification settings - Fork 1
including in project
getopt.net is available as a NuGet package, which you can include in your project.
In Visual Studio, open the Package Manager Console and enter install-package getopt.net-bsd
If adding packages isn't your style, and you'd rather include getopt.net as a git submodule, that's fine too! (Even if I wouldn't necessarily recommend it)
If you're unsure whether or not your project is a git repository, open a terminal (CMD on windows) and type git status
.
If the message: fatal: not a git repository (or any of the parent directories): .git
shows, then your project is not a git repository.
If the error Command not found
is shown, install git. Your project is (likely) not a respository. Once you've installed Git, try step 1
Go to your project directory in the terminal and type in the command git init
.
Voilá, your project is now a git repo!
It's always good practice to keep your directories organised.
When adding git submodules, it's always good to keep them separate from the rest of your repository; this way you always know which are actually submodules.
In your repository, type: mkdir submodules && cd submodules
.
Now in your submodule directory, choose whether you want to add my repository per HTTPS or SSH.
In YourProject/submodules/
git submodule add https://github.com/SimonCahill/getopt.net.git
In YourProject/submodules/
git submodule add ssh://git@github.com:22/SimonCahill/getopt.net.git
- In your solution in Visual Studio, right-click the solution and select "Add Existing Project"
- Select the getopt.net project
- Right-click your main project where getopt.net is to be used, and select References -> Add Project Reference
- Select the getopt.net project
Written with ❤️ by Simon Cahill.
Have you contributed to this wiki? Don't forget to add your name(s) up above!
Can't find a solution to your problem? Create an Issue Want to share your cool developments/improvements with the rest of us? Create a Pull Request
If no icons are shown, please reload the page.
All icons procured from https://www.iconfinder.com/iconsets/essentials-pack