You can contribute to this project from a Windows, macOS or Linux machine.
On all platforms, the minimum requirements are:
- Git client and command line tools.
- .NET Core 3.1+ and .NET 6.0
- Visual Studio 2022, any edition
- In the Visual Studio Installer, install the following:
- Workloads
- .NET desktop development
- Desktop development with C++
- Individual components
- C++ x64/x86 Spectre-mitigated libs (Latest)
- Workloads
This project includes a
.editorconfig
file which is supported by all the IDEs/editor mentioned above. It works with
the IDE/editor only and does not affect the actual build of the project.
Clone the repository with the command:
git clone https://github.com/microsoft/sarif-pattern-matcher.git
Then, update the submodules:
git submodule update --init --recursive
To build the solution you can:
- Open
Developer Command Prompt for VS 2019
and run the following:
.\BuildAndTest.cmd
- Use Visual Studio:
- Open the solution
Src\RE2.Native.sln
and build. - Open the solution
Src\SarifPatternMatcher.sln
and build.
If you are having trouble with your first commit or push to the GitHub, first please confirm with your repository admin to ensure you have write permissions. Then remove and re-add all accounts in Visual Studio Account Settings Menu.