Azure-Samples / Azure-Samples/ms-identity-ciam-dotnet-tutorial
Sample "ms-identity-ciam-dotnet-tutorial-2-sign-in-maui" failed to build
- Dominant language
- PowerShell
- Stars
- 48
- Forks
- 35
- PR merge metrics
- No merged PRs in 30d
Description
Tried to build this project with Visual Studio 2022 version 17.14.3, mobile workloads, and .NET 7 SDK. It failed with lots of errors.
I'm able to build a new MAUI app from the Visual Studio template. That targets .NET 9.0, with .NET 8.0 also available. The template does not offer .NET 7.0. The Project properties page doesn't not include .NET 7.0 in the target lists.
```
Build started at 9:35 AM...
1>------ Build started: Project: sign-in-maui, Configuration: Debug Any CPU ------
1>C:\Program Files\dotnet\sdk\9.0.300\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.EolTargetFrameworks.targets(32,5): warning NETSDK1138: The target framework 'net7.0-ios' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy.
1>C:\Program Files\dotnet\sdk\9.0.300\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.EolTargetFrameworks.targets(38,5): error NETSDK1202: The workload 'net7.0-ios' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/maui-support-policy for more information about the support policy.
1>C:\Program Files\dotnet\sdk\9.0.300\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets(230,5): error NETSDK1135: SupportedOSPlatformVersion 14.2 cannot be higher than TargetPlatformVersion 1.0.
1>Done building project "sign-in-maui.csproj" -- FAILED.
1>C:\Program Files\dotnet\sdk\9.0.300\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.EolTargetFrameworks.targets(32,5): warning NETSDK1138: The target framework 'net7.0-android' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy.
1>C:\Program Files\dotnet\sdk\9.0.300\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.EolTargetFrameworks.targets(38,5): error NETSDK1202: The workload 'net7.0-android' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/maui-support-policy for more information about the support policy.
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\sign-in-maui.csproj : warning NU1902: Package 'Microsoft.Identity.Client' 4.61.0 has a known moderate severity vulnerability, https://github.com/advisories/GHSA-m5vv-6r4h-3vj9
1>C:\Program Files\dotnet\sdk\9.0.300\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.EolTargetFrameworks.targets(32,5): warning NETSDK1138: The target framework 'net7.0-windows10.0.19041.0' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy.
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\sign-in-maui.csproj : warning NU1902: Package 'Microsoft.Identity.Client' 4.61.0 has a known moderate severity vulnerability, https://github.com/advisories/GHSA-m5vv-6r4h-3vj9
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainActivity.cs(3,7,3,14): error CS0246: The type or namespace name 'Android' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainActivity.cs(4,7,4,14): error CS0246: The type or namespace name 'Android' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainActivity.cs(5,7,5,14): error CS0246: The type or namespace name 'Android' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainActivity.cs(6,7,6,14): error CS0246: The type or namespace name 'Android' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainApplication.cs(3,7,3,14): error CS0246: The type or namespace name 'Android' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainApplication.cs(4,7,4,14): error CS0246: The type or namespace name 'Android' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MsalActivity.cs(9,7,9,14): error CS0246: The type or namespace name 'Android' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MsalActivity.cs(10,7,10,14): error CS0246: The type or namespace name 'Android' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MsalActivity.cs(11,7,11,14): error CS0246: The type or namespace name 'Android' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MsalActivity.cs(12,7,12,14): error CS0246: The type or namespace name 'Android' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MsalActivity.cs(13,7,13,14): error CS0246: The type or namespace name 'Android' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MsalActivity.cs(14,7,14,14): error CS0246: The type or namespace name 'Android' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\iOS\AppDelegate.cs(3,7,3,17): error CS0246: The type or namespace name 'Foundation' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\iOS\AppDelegate.cs(6,7,6,12): error CS0246: The type or namespace name 'UIKit' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\iOS\Program.cs(3,7,3,18): error CS0246: The type or namespace name 'ObjCRuntime' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\iOS\Program.cs(4,7,4,12): error CS0246: The type or namespace name 'UIKit' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Windows\App.xaml.cs(3,17,3,19): error CS0234: The type or namespace name 'UI' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Views\MainView.xaml.cs(9,37,9,48): error CS0246: The type or namespace name 'ContentPage' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\AppShell.xaml.cs(7,33,7,38): error CS0246: The type or namespace name 'Shell' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\App.xaml.cs(7,28,7,39): error CS0246: The type or namespace name 'Application' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Views\ClaimsView.xaml.cs(6,35,6,46): error CS0246: The type or namespace name 'ContentPage' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Windows\App.xaml.cs(13,28,13,48): error CS0246: The type or namespace name 'MauiWinUIApplication' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\iOS\AppDelegate.cs(11,32,11,57): error CS0246: The type or namespace name 'MauiUIApplicationDelegate' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainActivity.cs(13,29,13,50): error CS0246: The type or namespace name 'MauiAppCompatActivity' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MsalActivity.cs(24,33,24,51): error CS0246: The type or namespace name 'BrowserTabActivity' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\MauiProgram.cs(7,16,7,23): error CS0246: The type or namespace name 'MauiApp' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\iOS\AppDelegate.cs(10,6,10,14): error CS0246: The type or namespace name 'RegisterAttribute' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\iOS\AppDelegate.cs(10,6,10,14): error CS0246: The type or namespace name 'Register' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\iOS\AppDelegate.cs(13,28,13,35): error CS0246: The type or namespace name 'MauiApp' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainApplication.cs(9,32,9,47): error CS0246: The type or namespace name 'MauiApplication' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Windows\App.xaml.cs(31,21,31,28): error CS0246: The type or namespace name 'MauiApp' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\iOS\AppDelegate.cs(15,48,15,61): error CS0246: The type or namespace name 'UIApplication' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\iOS\AppDelegate.cs(15,75,15,87): error CS0246: The type or namespace name 'NSDictionary' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainApplication.cs(8,2,8,13): error CS0246: The type or namespace name 'ApplicationAttribute' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainApplication.cs(8,2,8,13): error CS0246: The type or namespace name 'Application' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Windows\App.xaml.cs(33,40,33,64): error CS0246: The type or namespace name 'LaunchActivatedEventArgs' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainApplication.cs(11,40,11,58): error CS0246: The type or namespace name 'JniHandleOwnership' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainApplication.cs(16,21,16,28): error CS0246: The type or namespace name 'MauiApp' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MsalActivity.cs(19,6,19,14): error CS0246: The type or namespace name 'ActivityAttribute' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MsalActivity.cs(19,6,19,14): error CS0246: The type or namespace name 'Activity' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MsalActivity.cs(20,6,20,18): error CS0246: The type or namespace name 'IntentFilterAttribute' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MsalActivity.cs(20,6,20,18): error CS0246: The type or namespace name 'IntentFilter' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MsalActivity.cs(20,27,20,33): error CS0103: The name 'Intent' does not exist in the current context
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MsalActivity.cs(21,30,21,36): error CS0103: The name 'Intent' does not exist in the current context
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MsalActivity.cs(21,56,21,62): error CS0103: The name 'Intent' does not exist in the current context
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainActivity.cs(12,2,12,10): error CS0246: The type or namespace name 'ActivityAttribute' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainActivity.cs(12,2,12,10): error CS0246: The type or namespace name 'Activity' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainActivity.cs(12,90,12,103): error CS0103: The name 'ConfigChanges' does not exist in the current context
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainActivity.cs(12,117,12,130): error CS0103: The name 'ConfigChanges' does not exist in the current context
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainActivity.cs(12,145,12,158): error CS0103: The name 'ConfigChanges' does not exist in the current context
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainActivity.cs(12,168,12,181): error CS0103: The name 'ConfigChanges' does not exist in the current context
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainActivity.cs(12,197,12,210): error CS0103: The name 'ConfigChanges' does not exist in the current context
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainActivity.cs(12,232,12,245): error CS0103: The name 'ConfigChanges' does not exist in the current context
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainActivity.cs(15,38,15,44): error CS0246: The type or namespace name 'Bundle' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainActivity.cs(26,63,26,69): error CS0246: The type or namespace name 'Result' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainActivity.cs(26,82,26,88): error CS0246: The type or namespace name 'Intent' could not be found (are you missing a using directive or an assembly reference?)
1>Done building project "sign-in-maui.csproj" -- FAILED.
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainActivity.cs(3,7,3,14): error CS0246: The type or namespace name 'Android' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainActivity.cs(4,7,4,14): error CS0246: The type or namespace name 'Android' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainActivity.cs(5,7,5,14): error CS0246: The type or namespace name 'Android' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainActivity.cs(6,7,6,14): error CS0246: The type or namespace name 'Android' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainApplication.cs(3,7,3,14): error CS0246: The type or namespace name 'Android' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainApplication.cs(4,7,4,14): error CS0246: The type or namespace name 'Android' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MsalActivity.cs(9,7,9,14): error CS0246: The type or namespace name 'Android' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MsalActivity.cs(10,7,10,14): error CS0246: The type or namespace name 'Android' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MsalActivity.cs(11,7,11,14): error CS0246: The type or namespace name 'Android' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MsalActivity.cs(12,7,12,14): error CS0246: The type or namespace name 'Android' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MsalActivity.cs(13,7,13,14): error CS0246: The type or namespace name 'Android' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MsalActivity.cs(14,7,14,14): error CS0246: The type or namespace name 'Android' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\iOS\AppDelegate.cs(3,7,3,17): error CS0246: The type or namespace name 'Foundation' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\iOS\AppDelegate.cs(6,7,6,12): error CS0246: The type or namespace name 'UIKit' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\iOS\Program.cs(3,7,3,18): error CS0246: The type or namespace name 'ObjCRuntime' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\iOS\Program.cs(4,7,4,12): error CS0246: The type or namespace name 'UIKit' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\App.xaml.cs(7,28,7,39): error CS0246: The type or namespace name 'Application' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MsalActivity.cs(24,33,24,51): error CS0246: The type or namespace name 'BrowserTabActivity' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\iOS\AppDelegate.cs(11,32,11,57): error CS0246: The type or namespace name 'MauiUIApplicationDelegate' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\MauiProgram.cs(7,16,7,23): error CS0246: The type or namespace name 'MauiApp' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Views\ClaimsView.xaml.cs(6,35,6,46): error CS0246: The type or namespace name 'ContentPage' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\AppShell.xaml.cs(7,33,7,38): error CS0246: The type or namespace name 'Shell' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Views\MainView.xaml.cs(9,37,9,48): error CS0246: The type or namespace name 'ContentPage' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainApplication.cs(9,32,9,47): error CS0246: The type or namespace name 'MauiApplication' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainActivity.cs(13,29,13,50): error CS0246: The type or namespace name 'MauiAppCompatActivity' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Windows\App.xaml.cs(13,28,13,48): error CS0246: The type or namespace name 'MauiWinUIApplication' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainApplication.cs(8,2,8,13): error CS0246: The type or namespace name 'ApplicationAttribute' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainApplication.cs(8,2,8,13): error CS0246: The type or namespace name 'Application' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\iOS\AppDelegate.cs(10,6,10,14): error CS0246: The type or namespace name 'RegisterAttribute' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\iOS\AppDelegate.cs(10,6,10,14): error CS0246: The type or namespace name 'Register' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Windows\App.xaml.cs(31,21,31,28): error CS0246: The type or namespace name 'MauiApp' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\iOS\AppDelegate.cs(13,28,13,35): error CS0246: The type or namespace name 'MauiApp' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainApplication.cs(11,40,11,58): error CS0246: The type or namespace name 'JniHandleOwnership' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Windows\App.xaml.cs(33,40,33,64): error CS0246: The type or namespace name 'LaunchActivatedEventArgs' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainApplication.cs(16,21,16,28): error CS0246: The type or namespace name 'MauiApp' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\iOS\AppDelegate.cs(15,48,15,61): error CS0246: The type or namespace name 'UIApplication' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\iOS\AppDelegate.cs(15,75,15,87): error CS0246: The type or namespace name 'NSDictionary' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MsalActivity.cs(19,6,19,14): error CS0246: The type or namespace name 'ActivityAttribute' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MsalActivity.cs(19,6,19,14): error CS0246: The type or namespace name 'Activity' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MsalActivity.cs(20,6,20,18): error CS0246: The type or namespace name 'IntentFilterAttribute' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MsalActivity.cs(20,6,20,18): error CS0246: The type or namespace name 'IntentFilter' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MsalActivity.cs(20,27,20,33): error CS0103: The name 'Intent' does not exist in the current context
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MsalActivity.cs(21,30,21,36): error CS0103: The name 'Intent' does not exist in the current context
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MsalActivity.cs(21,56,21,62): error CS0103: The name 'Intent' does not exist in the current context
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainActivity.cs(12,2,12,10): error CS0246: The type or namespace name 'ActivityAttribute' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainActivity.cs(12,2,12,10): error CS0246: The type or namespace name 'Activity' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainActivity.cs(12,90,12,103): error CS0103: The name 'ConfigChanges' does not exist in the current context
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainActivity.cs(12,117,12,130): error CS0103: The name 'ConfigChanges' does not exist in the current context
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainActivity.cs(12,145,12,158): error CS0103: The name 'ConfigChanges' does not exist in the current context
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainActivity.cs(12,168,12,181): error CS0103: The name 'ConfigChanges' does not exist in the current context
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainActivity.cs(12,197,12,210): error CS0103: The name 'ConfigChanges' does not exist in the current context
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainActivity.cs(12,232,12,245): error CS0103: The name 'ConfigChanges' does not exist in the current context
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainActivity.cs(15,38,15,44): error CS0246: The type or namespace name 'Bundle' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainActivity.cs(26,63,26,69): error CS0246: The type or namespace name 'Result' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\username\Documents\GitHub\ms-identity-ciam-dotnet-tutorial\1-Authentication\2-sign-in-maui\Platforms\Android\MainActivity.cs(26,82,26,88): error CS0246: The type or namespace name 'Intent' could not be found (are you missing a using directive or an assembly reference?)
1>Done building project "sign-in-maui.csproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Build completed at 9:35 AM and took 06.354 seconds ==========
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with 1-Authentication/2-sign-in-maui/sign-in-maui.csproj and the target framework settings, then inspect MauiProgram.cs and the Platforms/Android, Platforms/iOS, and Platforms/Windows files named in the build output. Reproduce the build with the reported Visual Studio 2022 and SDK setup, then determine the project changes needed for a supported configuration. Done means the sample builds without the reported framework, workload, and missing-type errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100