NOTE: If the project is open in Visual Studio, its background restore may interfere with these commands. It is recommended to close all instances of Visual Studio that have this project open before executing.
To build the source, clone or download and unzip the repository. From the repository or distribution root, execute the dotnet build command from a command prompt and include the desired options.
dotnet build -c Release
[!NOTE] NuGet packages are output by the build to the
/_artifacts/NuGetPackages/directory.
You can setup Visual Studio to read the NuGet packages like any NuGet feed by following these steps:
+ icon (for add)Lucene.Net.CodeAnalysis.Dev Local Packages... button next to the Source field, and choose the /_artifacts/NuGetPackages folder on your local system.Then all you need to do is choose the Lucene.Net.CodeAnalysis.Dev Local Packages feed from the dropdown (in the NuGet Package Manager) and you can search for, install, and update the NuGet packages just as you can with any Internet-based feed.
Similarly to the build command, run dotnet test with the desired options.
dotnet test -c Release --logger:"console;verbosity=normal"
Lucene.Net.CodeAnalysis.Dev.sln in Visual Studio.[!TIP] When running tests in Visual Studio, set the default processor architecture to x86, x64, or ARM64 as applicable to your operating system.