Exception in Visual Studio 2022 17.3.2 out as June 15, 2022 - exception

I just installed the last update to Visual Studio 2022 17.3.2 this day.
. Load my .Maui application (on mobile Android)
. Clean the Solution
. Close the solution and close Visual Studio
. Delete /bin and /obj folders of the application
Then I launch VS and load the solution
The solution compiles without any error.
Problem :
I run and after deployment I see the splash screen(Blue .NET flash screen)
After the splash screen I receive the following :
Microsoft.Maui.Platform.ToPlatformException: 'Microsoft.Maui.Controls.Handlers.Items.CollectionViewHandler
found for >Microsoft.Maui.Controls.CollectionView is incompatible'
Has anyone already seen this ?

Related

Problem building a Wix wxs file in Visual Studio 2017

I just installed WiX on my machine and then installed the extension for Visual Studio 2017. When I attempt to build the Product.wxs I get "Could not find wix.targets at ''" back. I can run a build from the command line using candle and light, but I need to be able to do this with VS. Is there a place I can configure Visual Studio to look for the wix.targets file. I'm guessing that is the problem since it looking at '' for the file.
Create a WiX v3 project not v4.

Run Cocos2d-x Hello World Project on Windows Phone

I want to run cocos2d-x Hello World Project on Windows Phone, but I have no idea how to do it.Currently , I am working on Mac, create cocos2d-x Project and run on iOS Device, its easily achieved. Now, I want to run it on Windows Phone: I am trying some steps but failed:
Copy whole project and paste into windows 10 laptop.
Try to open .sln file from HelloWorld Project in visual studio but this gives Unsupported Project.
Please give me any hint , how to do it.
you can copy or create a new project it doesn't matter what dose matter is that you have to open the proj.win8.1-universal folder in visual studio then open up the *.sln file and you have to have a community version of visual studio which has by default the wp8.1 sdk that allows you to open an develop wp8.1 projects and 2013 or 2015 will do just fin.

Compiling OpenCV with Visual Studio Community 2015

I have previously given up on installing OpenCV on my Windows 7 PC but now it has come back to haunt me, this time I'm trying to build its libraries using Visual Studio Community 2015.
I have tried finding a decent procedure on how to install it but they all sound simple until you encounter tons of errors when building ALL_BUILD in VS.
Here's what I did:
Downloaded the OpenCV 3.1 installer
Ran the installer and installed OpenCV in C:\
Added the OPENCV_DIR environment variable pointing to C:\opencv\build
Opened cmake-gui and set the source and build folders to C:\opencv\sources and C:\opencv\build, respectively
Clicked Configure, unchecked WITH_VTK option, clicked Configure again, then clicked Generate
Opened the generated solution file in C:\opencv\build
Right-clicked on the ALL_BUILD project and clicked Build
Only 11 projects were successfully built and 79 failed. The procedure they have on the OpenCV website is so outdated that it made me give up a long time ago. And there are several other resources that give equally confusing instructions.
Your help will be appreciated!
Upon further investigation, I saw this error frequently generated through build:
nvcc fatal : nvcc cannot find a supported version of Microsoft Visual Studio. Only the versions 2010, 2012, and 2013 are supported
This is caused by CUDA not supporting Visual Studio 2015 yet. So, I unchecked WITH_CUDA in cmake-gui, clicked Generate, opened the generated OpenCV solution file and built ALL_BUILD. No errors were generated after that.

Windows Store Certification Metadata test failes

When I run my program in debug mode, it runs nicely. Now that I want to upload it to the Windows Phone Store, it creates the App Package, but when running the Windows App Certification Kit, it returns the following error:
General metadata correctness test - failed
with the reason:
In the Winmd-File "myBackgroundPart.winmd" (that's my RunTime Component) there is missing "WindowsRuntime 1.3" or "WindowsRuntime 1.2" in the versionstring. The versionstring of the file is "WindowsRuntime 1.4;CLR v4.0.30319".
My environment is Visual Studio 2015 CTP5. The error message suggests, that my WinRT is too new for Store!? How do I downgrade it then?
Edit
This was an issue with VS2015 CTP5, with the new released CTP6 yesterday it was solved.
You need to build your app using Visual Studio 2013 (Update 4 is the latest). Note that Visual Studio 2015 does not have a "go live" license, meaning you can't use it for production purposes anyway. You need to wait until it is released.
Also, when you built the component, what Project Type did you choose? If you built a project for Windows 8.x then I don't think it should have used version 1.4 metadata. Did you build / test on Windows 10 Preview by any chance?

Windows 8.1 Store app MAKEPRI build errors for new project

I just wanted to start building apps for Windows Phone but after creating a new project for Windows Phone and hitting the F5 button to run it, I get these errors:
1>MakePri : error 0x80073b0a: Initializing Indexer
1>MakePRI : error 0xdef00042: Invalid qualifier: Scale
Note this is a new project. I haven't modified anything in it. I also tried other templates and none of them ran successfully. The verbose build log was quite large but if you want to, I can post it here. I checked and the the installation of the Visual Studio is full (SDK and everything else is installed.)
I'm using Visual Studio 2013 Update 2 and so far I haven't had any problem with it. The project is targeting Windows Phone 8.1