To build FileHash tool from source files with Microsoft Visual Studio, you can use either the graphical mode or the command-line mode. Here are the instructions for both methods:
Graphical mode:
Graphical mode
- Open Microsoft Visual Studio and select Open a project or solution from the start page or the File menu.
- Browse to the folder where the .sln file is located and select it. This will load the project in Microsoft Visual Studio.
- Select the configuration and platform for the project by using the drop-down menus on the toolbar. For example, you can choose Debug or Release for the configuration, and x86 or x64 for the platform.
- Build the project by clicking on the Build menu and selecting Build Solution. You can also use the keyboard shortcut Ctrl+Shift+B.
- Run the project by clicking on the Debug menu and selecting Start Debugging. You can also use the keyboard shortcut F5
Command-line mode:
Command-line mode
- Open a Developer Command Prompt for Microsoft Visual Studio. You can find it in the Start menu under Microsoft Visual Studio Tools.
- Navigate to the folder where the .sln file is located by using the cd command.
- Invoke the MSBuild tool to build the project. You can specify various options and flags for the tool. For example, the following command builds the project with the Release configuration and the x64 platform:
msbuild FileHash.sln /p:Configuration=Release /p:Platform=x64
Run your executable by typing its name in the command prompt. For example:
FileHash-exe-x86-64\FileHash /?
msbuild FileHash.sln /p:Configuration=Release /p:Platform=x64
- Run your executable by typing its name in the command prompt. For example:
FileHash-exe-x86-64\FileHash /?
Testing
To test FileHash start testing script FileHash-test-scripts\runall.ps1
and wait for it to finish.