Browse Source

Updated BuildInfo demo project to .net 8.0 (from 6.0)

pull/768/merge
Canming Huang 1 year ago
parent
commit
fc650b7ef7
  1. 7
      Emgu.CV.Example/MAUI/BuildInfo/BuildInfo.csproj
  2. 10
      Emgu.CV.Example/MAUI/BuildInfo/README.md

7
Emgu.CV.Example/MAUI/BuildInfo/BuildInfo.csproj

@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net6.0-ios;net6.0-maccatalyst;net6.0-android33.0</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net6.0-windows10.0.19041.0</TargetFrameworks>
<TargetFrameworks>net8.0-ios;net8.0-maccatalyst;net8.0-android</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net8.0-windows10.0.19041.0</TargetFrameworks>
<!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET -->
<!-- <TargetFrameworks>$(TargetFrameworks);net6.0-tizen</TargetFrameworks> -->
<OutputType>Exe</OutputType>
@ -49,7 +49,8 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Emgu.CV.runtime.maui.mini" Version="4.7.0.5276" />
<PackageReference Include="Emgu.CV.runtime.maui.mini" Version="4.8.1.5350" />
<PackageReference Include="Microsoft.Maui.Controls" Version="8.0.7" />
</ItemGroup>
</Project>

10
Emgu.CV.Example/MAUI/BuildInfo/README.md

@ -9,18 +9,18 @@ To restore the nuget package, in the terminal run this command:
> dotnet restore
To build the Mac OS MAUI App and run it, use this command:
> dotnet build -t:Run -f net6.0-maccatalyst
> dotnet build -t:Run -f net8.0-maccatalyst
To build the iOS MAUI app and run it on a simulator, use this command:
> dotnet build -t:Run -f net6.0-ios
> dotnet build -t:Run -f net8.0-ios
To build the iOS MAUI .ipa file for iOS device, use this command:
> dotnet publish -f net6.0-ios -c Release -r ios-arm64 --self-contained
> dotnet publish -f net8.0-ios -c Release -r ios-arm64 --self-contained
To build the iOS MAUI app and run it on an iOS device, use this command:
> dotnet build -t:Run -f net6.0-ios -c Release -r ios-arm64 --self-contained -p:_DeviceName={YOUR_IOS_DEVICE_UUID}
> dotnet build -t:Run -f net8.0-ios -c Release -r ios-arm64 --self-contained -p:_DeviceName={YOUR_IOS_DEVICE_UUID}
To build the Android MAUI app, first start up an Android simulator (or connect to an Android device), then use the following command and build and run the Android app:
> dotnet build -t:Run -f net6.0-android
> dotnet build -t:Run -f net8.0-android
For Windows build, you can use Visual Studio on windows.
Loading…
Cancel
Save