I thought my problem was very simple to resolve but it isn't. I'm creating some new components for Xamarin. I have a main Xamarin project where I'm testing my components.
My components are a main portable project and for each platform there is specific implementation.
The implementation for UWP generates a compatibility error
Project PSC.Xam.Controls.BindableRadioButton.UWP is not compatible
with uap10.0 (UAP,Version=v10.0). Project
PSC.Xam.Controls.BindableRadioButton.UWP supports: uap10.0.10240
(UAP,Version=v10.0.10240) One or more projects are incompatible with
UAP,Version=v10.0. Project PSC.Xam.Controls.BindableRadioButton.UWP is
not compatible with uap10.0 (UAP,Version=v10.0) / win10-arm. Project
PSC.Xam.Controls.BindableRadioButton.UWP supports: uap10.0.10240
(UAP,Version=v10.0.10240) One or more projects are incompatible with
UAP,Version=v10.0 (win10-arm). Project
PSC.Xam.Controls.BindableRadioButton.UWP is not compatible with
uap10.0 (UAP,Version=v10.0) / win10-arm-aot. Project
PSC.Xam.Controls.BindableRadioButton.UWP supports: uap10.0.10240
(UAP,Version=v10.0.10240) One or more projects are incompatible with
UAP,Version=v10.0 (win10-arm-aot). Project
PSC.Xam.Controls.BindableRadioButton.UWP is not compatible with
uap10.0 (UAP,Version=v10.0) / win10-x64. Project
PSC.Xam.Controls.BindableRadioButton.UWP supports: uap10.0.10240
(UAP,Version=v10.0.10240) One or more projects are incompatible with
UAP,Version=v10.0 (win10-x64). Project
PSC.Xam.Controls.BindableRadioButton.UWP is not compatible with
uap10.0 (UAP,Version=v10.0) / win10-x64-aot. Project
PSC.Xam.Controls.BindableRadioButton.UWP supports: uap10.0.10240
(UAP,Version=v10.0.10240) One or more projects are incompatible with
UAP,Version=v10.0 (win10-x64-aot). Project
PSC.Xam.Controls.BindableRadioButton.UWP is not compatible with
uap10.0 (UAP,Version=v10.0) / win10-x86. Project
PSC.Xam.Controls.BindableRadioButton.UWP supports: uap10.0.10240
(UAP,Version=v10.0.10240) One or more projects are incompatible with
UAP,Version=v10.0 (win10-x86). Project
PSC.Xam.Controls.BindableRadioButton.UWP is not compatible with
uap10.0 (UAP,Version=v10.0) / win10-x86-aot. Project
PSC.Xam.Controls.BindableRadioButton.UWP supports: uap10.0.10240
(UAP,Version=v10.0.10240) One or more projects are incompatible with
UAP,Version=v10.0 (win10-x86-aot). NuGet package restore failed.
I checked the configuration of UWP main project and the implementation project and both are the same settings.
In the implementation project, I have a reference to the portable project and its settings are:
If I deploy the project and run it, it seems working fine on my desktop.
Also, I receive two other errors:
Duplicate Entry
0xdef00532 - Conflicting values for resource 'Files/Xamarin.Forms.Platform.UAP/TabbedPageStyle.xbf' GENERATEPROJECTPRIFILE
I checked my Package.appxmanifest and Dependencies is as requested.
<Dependencies>
<TargetDeviceFamily Name="Windows.Universal"
MinVersion="10.0.0.0"
MaxVersionTested="10.0.0.0" />
</Dependencies>
In order to use .NET Standard 2.0 in UWP, you need to target Fall Creators Update (FCU) as the minimum version of your UWP project. That’s because .NET Standard 2.0 contains many APIs that require FCU to make them work in the context of the UWP execution environment, specifically AppContainer.
https://blogs.msdn.microsoft.com/dotnet/2017/08/25/uwp-net-standard-2-0-preview/
https://blogs.msdn.microsoft.com/dotnet/2017/10/10/announcing-uwp-support-for-net-standard-2-0/
Find project.json file and replace "uap10.0" with "uap10.0.10586"
Related
I have a 14" M1PRO MAC running Monterrey. I created a fresh new Windows 11 ARM VM with parallels, installed Visual Studio 2022 17.3 (Released version - not the preview), checked the Maui workload.
VS installer screentshot
Everything installed without errors.
I launched VS, and NO Maui templates showed!.
Opened the Command Prompt and run 'dotnet new --install Microsoft.Maui.Templates'
Launched VS again and templates were there. Created a Project and it failed:
Nuget restore errors:
Severity Code Description Project File Line Suppression State
Error NETSDK1139 The target platform identifier android was not recognized. MauiApp1 C:\Program Files\dotnet\sdk\6.0.400\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets 112
Error NETSDK1139 The target platform identifier ios was not recognized. MauiApp1 C:\Program Files\dotnet\sdk\6.0.400\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets 112
Error NETSDK1139 The target platform identifier maccatalyst was not recognized. MauiApp1 C:\Program Files\dotnet\sdk\6.0.400\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets 112
Error NU1012 Platform version is not present for one or more target frameworks, even though they have specified a platform: net6.0-android, net6.0-ios, net6.0-maccatalyst MauiApp1 C:\xx\MauiApp1\MauiApp1.csproj 1
Error NU1012 Platform version is not present for one or more target frameworks, even though they have specified a platform: net6.0-android, net6.0-ios, net6.0-maccatalyst MauiApp1 C:\xx\MauiApp1.csproj 1
Error NU1012 Platform version is not present for one or more target frameworks, even though they have specified a platform: net6.0-android, net6.0-ios, net6.0-maccatalyst MauiApp1 C:\xx\MauiApp1.csproj 1
Build errors:
1>------ Build started: Project: MauiApp1, Configuration: Debug Any CPU ------
1>C:\Program Files\dotnet\sdk\6.0.400\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets(112,5): error NETSDK1139: The target platform identifier android was not recognized.
1>Done building project "MauiApp1.csproj" -- FAILED.
1>C:\Program Files\dotnet\sdk\6.0.400\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets(112,5): error NETSDK1139: The target platform identifier ios was not recognized.
1>Done building project "MauiApp1.csproj" -- FAILED.
1>C:\Program Files\dotnet\sdk\6.0.400\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets(112,5): error NETSDK1139: The target platform identifier maccatalyst was not recognized.
1>Done building project "MauiApp1.csproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
My target mono android version is 8.0 and i am building my app at API level 26
while building droid i am getting about 500 warnings related to nuget packages
in Android and IOS is OK....
something like this...
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1476,2): warning XA0106: Skipping BMS.Droid.Resource.Animation.design_fab_in. Please check that your Nuget Package versions are compatible.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1476,2): warning XA0106: Skipping BMS.Droid.Resource.Animation.design_fab_out. Please check that your Nuget Package versions are compatible.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1476,2): warning XA0106: Skipping BMS.Droid.Resource.Attribute.MediaRouteControllerWindowBackground. Please check that your Nuget Package versions are compatible.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1476,2): warning XA0106: Skipping BMS.Droid.Resource.Attribute.mediaRouteBluetoothIconDrawable. Please check that your Nuget Package versions are compatible.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1476,2): warning XA0106: Skipping BMS.Droid.Resource.Attribute.mediaRouteCastDrawable. Please check that your Nuget Package versions are compatible.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1476,2): warning XA0106: Skipping BMS.Droid.Resource.Attribute.mediaRouteChooserPrimaryTextStyle. Please check that your Nuget Package versions are compatible.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1476,2): warning XA0106: Skipping BMS.Droid.Resource.Attribute.mediaRouteChooserSecondaryTextStyle. Please check that your Nuget Package versions are compatible.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1476,2): warning XA0106: Skipping BMS.Droid.Resource.Attribute.mediaRouteCollapseGroupDrawable. Please check that your Nuget Package versions are compatible.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1476,2): warning XA0106: Skipping BMS.Droid.Resource.Attribute.mediaRouteConnectingDrawable. Please check that your Nuget Package versions are compatible.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1476,2): warning XA0106: Skipping BMS.Droid.Resource.Attribute.mediaRouteControllerPrimaryTextStyle. Please check that your Nuget Package versions are compatible.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1476,2): warning XA0106: Skipping BMS.Droid.Resource.Attribute.mediaRouteControllerSecondaryTextStyle. Please check that your Nuget Package versions are compatible.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1476,2): warning XA0106: Skipping BMS.Droid.Resource.Attribute.mediaRouteControllerTitleTextStyle. Please check that your Nuget Package versions are compatible.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1476,2): warning XA0106: Skipping BMS.Droid.Resource.Attribute.mediaRouteExpandGroupDrawable. Please check that your Nuget Package versions are compatible.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1476,2): warning XA0106: Skipping BMS.Droid.Resource.Attribute.mediaRouteOffDrawable. Please check that your Nuget Package versions are compatible.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1476,2): warning XA0106: Skipping BMS.Droid.Resource.Attribute.mediaRouteOnDrawable. Please check that your Nuget Package versions are compatible.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1476,2): warning XA0106: Skipping BMS.Droid.Resource.Boolean.abc_action_bar_embed_tabs_pre_jb. Please check that your Nuget Package versions are compatible.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1476,2): warning XA0106: Skipping BMS.Droid.Resource.Boolean.abc_action_bar_expanded_action_views_exclusive. Please check that your Nuget Package versions are compatible.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1476,2): warning XA0106: Skipping BMS.Droid.Resource.Boolean.abc_config_allowActionMenuItemTextWithIcon. Please check that your Nuget Package versions are compatible.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1476,2): warning XA0106: Skipping BMS.Droid.Resource.Color.design_textinput_error_color_dark. Please check that your Nuget Package versions are compatible.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1476,2): warning XA0106: Skipping BMS.Droid.Resource.Color.design_textinput_error_color_light. Please check that your Nuget Package versions are compatible.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1476,2): warning XA0106: Skipping BMS.Droid.Resource.Color.hint_foreground_material_dark. Please check that your Nuget Package versions are compatible.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1476,2): warning XA0106: Skipping BMS.Droid.Resource.Color.hint_foreground_material_light. Please check that your Nuget Package versions are compatible.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1476,2): warning XA0106: Skipping BMS.Droid.Resource.Dimension.abc_dialog_list_padding_vertical_material. Please check that your Nuget Package versions are compatible.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1476,2): warning XA0106: Skipping BMS.Droid.Resource.Dimension.abc_search_view_text_min_width. Please check that your Nuget Package versions are compatible.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1476,2): warning XA0106: Skipping BMS.Droid.Resource.Dimension.design_bottom_sheet_modal_peek_height. Please check that your Nuget Package versions are compatible.
These non-actionable warnings can be suppressed by editing the following into the Android project file:
<PropertyGroup>
<MSBuildWarningsAsMessages>XA0106</MSBuildWarningsAsMessages>
</PropertyGroup>
As of Visual Studio 16.3 Preview 1, these have been downgraded to messages instead of warnings, so suppression will no longer be necessary. More background is available on the Xamarin.Android GitHub.
Error:
C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agents\1.103.2\agent\Worker\Tools\nuget.exe
failed with return code: 1
Packages failed to install Return code: 1
Delivery_Analytics\Delivery_Analytics\Delivery_Analytics.csproj (0, 0)
Cannot resolve Assembly or Windows Metadata file 'System.Runtime.Handles.dll'
C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v14.0\8.2\Microsoft.Windows.UI.Xaml.Common.targets
(264, 5)
Type universe cannot resolve assembly: System.Runtime.Handles, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
Process 'msbuild.exe' exited with code '1'
2016-08-16T12:16:14.5082366Z System.Security.Cryptography.Cng 4.2.0 is not compatible with UAP,Version=v10.0 (win10-x64-aot).
2016-08-16T12:16:14.5082366Z System.Security.Cryptography.Encoding 4.0.0 is not compatible with UAP,Version=v10.0 (win10-x64-aot).
2016-08-16T12:16:14.5092363Z System.Security.Cryptography.Primitives 4.0.0 is not compatible with
UAP,Version=v10.0 (win10-x64-aot).
2016-08-16T12:16:14.5092363Z System.Collections.NonGeneric 4.0.1 is not compatible with UAP,Version=v10.0 (win10-x64-aot).
2016-08-16T12:16:14.5092363Z System.Collections.Specialized 4.0.1 is not compatible with UAP,Version=v10.0 (win10-x64-aot).
2016-08-16T12:16:14.5102364Z System.Private.Uri 4.0.1 is not compatible with UAP,Version=v10.0 (win10-x64-aot).
2016-08-16T12:16:14.5102364Z System.Net.Requests 4.0.11 provides a compile-time reference assembly for System.Net.Requests on
UAP,Version=v10.0, but there is no run-time assembly compatible with
win10-x64-aot.
2016-08-16T12:16:14.5112357Z System.Runtime.WindowsRuntime.UI.Xaml 4.0.1 provides a compile-time reference assembly for System.Runtime.WindowsRuntime.UI.Xaml on UAP,Version=v10.0, but there
is no run-time assembly compatible with win10-x64-aot.
2016-08-16T12:16:14.5112357Z System.IO.Compression 4.1.1 provides a compile-time reference assembly for System.IO.Compression on
UAP,Version=v10.0, but there is no run-time assembly compatible with
win10-x64-aot.
2016-08-16T12:16:14.5412349Z Generating MSBuild file Delivery_Analytics.nuget. targets.
2016-08-16T12:16:14.5432359Z Generating MSBuild file Delivery_Analytics.nuget. props.
2016-08-16T12:16:14.5712346Z ##[debug]rc:1
2016-08-16T12:16:14.5722353Z ##[debug]success:false
2016-08-16T12:16:14.5812337Z ##[error]Error: C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agents\1.104.1\
agent\ Worker\ Tools\nuget.exe failed with return code: 1
2016-08-16T12:16:14.5812337Z ##[error]Packages failed to install
2016-08-16T12:16:14.5822348Z ##[debug]task result: Failed
2016-08-16T12:16:14.5822348Z ##[error]Return code: 1
Based on my test, changing Microsoft.NetCore.UniversalWindowsPlatform dependency version to 5.1.0, then it works fine. Based on this thread https://github.com/dotnet/coreclr/issues/3520, the 5.2.0 is prerelease and isn’t yet supported to be consumed by UWP apps.
SDK: Qt Creator 2.4.1 (Qt 4.7.4 (32 bit)) running on Windows 7
Software: libqxt
Final target platform: Harmattan (Nokia N9)
I am developing an application that is suppose to use qt-Brisa which in turn uses libqxt so I am trying to install libqxt.
In the end I am doing a Nokia N9 (Harmattan) application so I need static library of libqxt
However I get problems when trying to install libqxt both if I try the command prompt or with Qt Creator.
What is the correct approach, I assume using the Qt Creator is the correct way to build it?
Try 1
Using command Prompt approach (according to http://dev.libqxt.org/libqxt/wiki/user_guide)
C:\QtSDK\Desktop\Qt\4.8.1\msvc2010\bin
configure.bat -static -no-db -debug_and_release
Testing for qmake...
Testing for mingw32-make...
Testing for nmake...
Testing for GNU make...
Using GNU make.
Testing for optional external libraries.
If tests fail, some features will not be available.
Testing for Zero Conf...
Zero Conf disabled.
Configuration successful.
Generating makefiles...
Project MESSAGE: building docs
Project MESSAGE: building core module
Project MESSAGE: building widgets module
Project MESSAGE: building network module
Project MESSAGE: building sql module
Project MESSAGE: building web module
Reading C:/temp/Project/libqxt/libqxt/tools/3rdparty/qdoc3/qdoc3.pro
Reading C:/temp/Project/libqxt/libqxt/src/core/core.pro
Reading C:/temp/Project/libqxt/libqxt/src/widgets/widgets.pro
Project MESSAGE: Warning: unknown QT: widgets
Project MESSAGE: Warning: unknown QT: widgets
Project MESSAGE: Warning: unknown QT: widgets
Reading C:/temp/Project/libqxt/libqxt/src/designer/designer.pro
Project MESSAGE: Warning: unknown QT: widgets
Project MESSAGE: Warning: unknown QT: widgets
Project MESSAGE: Warning: unknown QT: widgets
Project MESSAGE: Warning: unknown QT: widgets
Project MESSAGE: Warning: unknown QT: widgets
Project MESSAGE: Warning: unknown QT: widgets
Reading C:/temp/Project/libqxt/libqxt/src/network/network.pro
Reading C:/temp/Project/libqxt/libqxt/tools/jsonrpcclient/jsonrpcclient.pro
Reading C:/temp/Project/libqxt/libqxt/src/sql/sql.pro
Reading C:/temp/Project/libqxt/libqxt/src/web/web.pro
Makefiles generated. Run make now.
make
Makefile:280: *** multiple target patterns. Stop.
Why is it using GNU make and not qmake or am I doing somethign wrong ?
Try 2
Using Qt Creator
I also tried to load the libqxt project into the Creator (which I would like to prefer)
but the compile output windows show the following
11:05:50: Running build steps for project libqxt...
11:05:50: Starting: "c:\qtsdk\desktop\qt\4.8.1\msvc2010\bin\qmake.exe"
C:\temp\Project\libqxt\libqxt\libqxt.pro -r -spec win32-msvc2010 "CONFIG+=declarative_debug"
WARNING: features.path is not defined: install target not created
11:05:50: The process "c:\qtsdk\desktop\qt\4.8.1\msvc2010\bin\qmake.exe" exited normally.
11:05:50: Starting: "C:\QtSDK\QtCreator\bin\jom.exe"
jom 1.0.6 - empower your cores
11:05:51: The process "C:\QtSDK\QtCreator\bin\jom.exe" exited normally.
But that did not compile either
(WARNING: features.path is not defined: install target not created)
When it compiles, how do I "add" the libqxt to the rest of the Qt environment so another project can "see" the libqxt libraries, is it by "Deploy All" ?
Regards Stefan
I have created a xcode project using unity3d tool, while building the project for iOS my Player settings are like this:
1. Target Device: iPhone Only
2. Target Platform: Universal armv6+armv7 (OpenGL ES1.1+2.0) & I have tried it with armv6(OpenGL ES1.1)
3. SDK Version: iOS 4.3 & I have tried it with iOS Latest
4. Target iOS Version: 4.0
Api Compatibility Level: .Net 2.0 Subset, when I am trying to run it in iPhone I am getting the below mentioned error:
"__GetLookupStatus", referenced from:
Undefined symbols for architecture armv6: "__GetLookupStatus", referenced from: __Z19RegisterMonoModulesv in RegisterMonoModules.o
ld: symbol(s) not found for architecture armv6 clang: error: linker
command failed with exit code 1 (use -v to see invocation)
& my Unity 3 version is 3.4.2f3 & my Xcode version is 4.2.1.
How can I resolve this issue?
It is working now. I forgot to add my Objevtive-c files into Xcode project.