ReSharper 2022.1 Help

General

ReSharper options: Tools | Build | General

In this page of ReSharper options, you can configure preferences of ReSharper Build.

Toolset

.NET CLI executable path

Build

Use ReSharper Build

If this checkbox is selected, ReSharper will optimize build process with ReSharper Build, which tracks changes in your solution and only rebuilds modified projects and necessary dependencies. In this case, ReSharper Build will be invoked on all build commands, for example Build | Build Solution Ctrl+Shift+B as well as for corresponding context menu commands on projects and solution folders in Solution Explorer.

If the checkbox is unselected, the Visual Studio's native build management will be used. You may need to disable this option if your solution includes non-MSBuild projects or projects with custom build steps.

Run build after solution is loaded

This self-explanatory option will be applied independently of selected build management preference.

Build Parameters

Options in this category are only available when Use ReSharper Build is enabled.

Use MSBuild.exe version

Using this selector, you can choose the version of MSBuild.exe that is used to build the solution. You can choose one of the automatically detected MSBuild versions, or specify the path to a custom MSBuild executable in a non-standard location.

Use up to X processes in parallel

Using this selector, you can choose the number of parallel process used to build the solution.

Restore NuGet packages before build

When this checkbox is selected, ReSharper will restore NuGet packages for all projects in the current solution using ReSharper's proprietary mechanism, which works in all supported versions of Visual Studio . Note that this option requires .NET Framework 4.5 or later to be installed on your machine.

Write log to output

When this checkbox is selected, log items selected under it will be shown in Visual Studio's Output window.

Notes:

  • To display the Output window whenever you build a project, go to Tools | Options | Projects and Solutions | General and select Show Output window when build starts.

  • If you want log items to have different colors depending on their origin and kind, select Paint output log above on this page.

  • You can also configure how log items from NuGet are displayed in the output on the Tools | Build | NuGet page of ReSharper options.

Write to log file

When this checkbox is selected, build output is saved to a log file. Use controls under this checkbox to choose a verbosity level and a path where the log file is saved. If the selected log directory does not exist, it is shown in red. However, ReSharper will create the non-existent path when logging to file for the first time.

Note that logging to file does not depend on logging to the Output window.

Invoke Pre- and Post- build event targets for skipped projects

When ReSharper uses heuristics to skip some projects during the build process, such projects are skipped completely, including all additional build logic.

Use this checkbox to always execute pre-build and post-build events for all projects.

To check and configure Pre- and Post- build events, right-click the project in the Solution Explorer, select Properties, and then choose Build Events.

Invoke BeforeBuild and AfterBuild targets for skipped projects

When ReSharper uses heuristics to skip some projects during the build process, such projects are skipped completely, including all additional build logic.

Use this checkbox to always execute BeforeBuild and AfterBuild MSBuild targets.

Last modified: 21 July 2022