You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Configuring the SimplifiedBarcodeReaderSettings](#configuring-the-simplifiedbarcodereadersettings)
37
-
-[Customizing the Scan Region](#customizing-the-scan-region)
38
34
-[Licensing](#licensing)
39
35
40
36
## System Requirements
@@ -47,20 +43,24 @@ noTitleIndex: true
47
43
48
44
- Supported OS: **Android 5.0** (API Level 21) or higher.
49
45
- Supported ABI: **armeabi-v7a**, **arm64-v8a**, **x86** and **x86_64**.
50
-
- Development Environment: Visual Studio 2022 recommended.
46
+
- Development Environment: Visual Studio 2022 or VS Code with the [.NET MAUI extension](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.dotnet-maui)recommended.
51
47
- JDK: 1.8+
52
48
53
49
### iOS
54
50
55
51
- Supported OS: **iOS 13.0** or higher.
56
52
- Supported ABI: **arm64** and **x86_64**.
57
-
- Development Environment: Visual Studio 2022 for Mac and Xcode 14.3+ recommended.
53
+
- Development Environment: VS Code with the [.NET MAUI extension](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.dotnet-maui)and latest Xcode version recommended.
58
54
59
55
## Installation
60
56
61
-
### Visual Studio for Mac
57
+
### VS Code
62
58
63
-
In the **NuGet Package Manager>Manage Packages for Solution** of your project, search for **Dynamsoft.BarcodeReaderBundle.Maui**. Select Version **11.4.1200** and click **install**.
59
+
After [creating the project](#vs-code-for-ios), open a terminal in the project directory and run:
4. Name the project **ScanBarcodes** and select a location, click **Create**.
111
+
1. Open a terminal and run the following command to create a new .NET MAUI project:
112
+
113
+
```bash
114
+
dotnet new maui -n ScanBarcodes
115
+
cd ScanBarcodes
116
+
```
117
+
118
+
2. Open the project in VS Code:
119
+
120
+
```bash
121
+
code .
122
+
```
115
123
116
124
### Include the Library
117
125
@@ -192,7 +200,7 @@ View the [installation section](#installation) on how to add the library.
192
200
193
201
### Configure the Camera Permission
194
202
195
-
Open the **Info.plist** file under the **Platforms/iOS/** folder (Open with XML Text Editor). Add the following lines to request camera permission on iOS platform:
203
+
Open the **Info.plist** file under the **Platforms/iOS/** folder (Open with XML Text Editor). Add the following lines inside the `<dict>` element to request camera permission on iOS platform:
196
204
197
205
```xml
198
206
<key>NSCameraUsageDescription</key>
@@ -201,10 +209,31 @@ Open the **Info.plist** file under the **Platforms/iOS/** folder (Open with XML
201
209
202
210
### Run the Project
203
211
204
-
Select your device and run the project.
212
+
**Visual Studio**: Select your target device in the toolbar and click **Run**.
213
+
214
+
**VS Code**: Use the **.NET MAUI** extension's device picker in the status bar to select a target device, then press **F5** to build and deploy. Alternatively, run from the terminal:
215
+
216
+
```bash
217
+
# Android
218
+
dotnet build -t:Run -f net10.0-android
219
+
220
+
# iOS (requires a connected device or simulator on macOS)
221
+
dotnet build -t:Run -f net10.0-ios
222
+
```
205
223
206
224
<divclass="blockquote-note"></div>
207
-
> If you are running Android only on Visual Studio Windows, please manually exclude iOS and Windows platforms. Otherwise, the Visual Studio will report type or namespace not found errors.
225
+
> The library only supports the **Android** and **iOS** platforms. If you encounter build errors caused by other target frameworks, remove the unsupported platforms:
226
+
>
227
+
> -**Visual Studio**: Manually exclude the iOS and Windows targets from the build configuration toolbar.
228
+
> -**VS Code / CLI**: Open the `.csproj` file and remove the platforms you do not need from the `<TargetFrameworks>` element, for example:
0 commit comments