Maui with Microsoft.Graph won't release build - nuget

I am building a Maui app that will use Microsoft.Graph, but when I try to build a release, visual studio 2022 gets stuck in the build process.
Build process
But as soon as I remove Microsoft.Graph it works again.
Am using Maui 6.0
The issue can be reproduced in an empty maui project.
I have tried these versions of Microsoft.Graph: 5.0.0-rc4, 5.0.0-preview.12, 4.52.0
Rebuilding, cleaning, deleting older debug and release folders,
but nothing works.

Related

.NET Maui - You are using a preview version of .NET - Where is this coming from and what version am I using?

I am running VS 17.3 Preview 6 on windows11. I have a .net maui app. when i load the app into vs, I get a message saying that I am using a preview version of .net. I don't think I've installed a preview of .net6 on this machine since it is pretty much brand new. i am using
.net 6.0 - ios for ios.
.net 6.0 - android for android.
.net 6.0 - windows 10.0.10941.0 for windows, but don't plan to build for windows.
Basically, why am i getting a message about using a preview version of .net? Is this some artifact message because I am using VS17.3 preview x? any idea how to make this go away since it is annoying? Is this due to .net 7 preview being installed with vs17.3?
To find out what version of MAUI you are using
Open solution or project in Visual Studio (Currently you should use Visual Studio Preview)
Right click on Project
Select Manage NuGet Packages...
Go to the register Installed
Check the versions of the packages Microsoft.Maui.Dependencies and Microsoft.Maui.Extensions
To find out what version of dotnet SDK you are using
Open PowerShell or cmd
Change directory to the path of your project
Execute dotnet --version

Can not change .Net Framework to 6.0 in Visual Studio 2022

Hey so I have Visual Studio 2022, I installed the .NET Framework 6.0.1 SDK manually from the microsoft website, If I check the Visual Studio Installer the .NET 6.0 Runtime is checked (means it is installed).
But I am neither able to retarget my existing Projects to 6.0, neither create a new Project for 6.0. The .NET Framework 6.0 simply doesn't appear in the dropdown selection.
I found another thread which had the same issue but nothing worked for me.
I've read that you can change the Targetframework editing the .csproj file with Notepad, I tried that but at start it told me I don't have the framework installed and either need to downgrade to 4.8 or install 6.0.1.
I've restarted and reinstalled Visual Studio several times now, same with my Computer.
What the heck is wrong here?

MAUI MyApp.WinUI isn't running properly

I am using Visual Studio 2022 Preview where I created a plain MAUI .NET Project. The project runs on Android Emulator properly but the WinUI App doesn't run properly. It shows the message below. But I checked starting project and Debug Settings. Can anyone give me suggestions to run the MyApp.WinUI project on Visual Studio 2022 Preview?
This is a known limitation at this time. Have a look at David's blog post at the end
At the time of release, we are troubleshooting the latest Windows App SDK Single-project MSIX extension for Visual Studio 2022 and .NET MAUI to address a failure to debug. You can successfully deploy the Windows app directly and run it from the Start menu.
From Visual Studio, right-click on your WinUI project and click Deploy. That will make it show up in your Start Menu, you can start it from there. Once started, in Visual Studio you can go to the Debug menu and Attach to Process. Find the process of your app and attach the debugger.

visual studio for Mac unity execution failed

I am running the latest version of Visual Studio and the latest version of unity. When I open the project using Visual Studio for Mac, I am able to rebuild the app.
But, when I try to start debugging, I am getting Execution Failed without any explanation or build output.
I am able to run the app successfully on iOS through Xcode, although the iPad is refusing to start the app automatically and I have to open it manually.
The issue is that , I can't start the app on Visual Studio for Mac.
Apparently, If you open multiple instances of Unity, Visual Studio for Mac will get confused and will not know which project to attach to.
Having one instance solved the issue for me.

VS2015: Missing Debug targets for TACO

I'm using VS2015 and just updated the Visual Studio Android Emulator (to 1.1.622.2) this morning. Since I've done so, the debug targets have disappeared for all of my TACO projects (the drop-down is empty for all device types, incl. Android and iOS):
I have followed the instructions here, but no CoreCon folder is recreated when I re-build. The build does succeed (i.e. I get an .apk file that works) but I can't deploy to any emulator or local device from Visual Studio. The emulator itself works fine.
Any ideas? I've tried rebuilding the Cordova cache but with no success.