This sample was designed to be run from the command line.
Command Line Interface (CLI)
To run the sample using the .Net CLI, use the "dotnet run" command, optionally specifying an image path. This will build and run the sample.
Run the sample
dotnet run
Scan a specific image for barcodes
dotnet run path/to/your/image.jpg
Visual Studio
To run the sample using Visual Studio:
-
Open the solution, right-click on the ReadBarcodes project in the Solution Explorer, select Properties, and then click on the Debug tab.
-
In the Application arguments text box:
- Specify an image path (optional)
-
After you have optionally specified an image path, press CTRL+F5 to run the sample.