unoplatform / Uno.Samples

A collection of code samples for the Uno Platform
http://platform.uno/
Other
222 stars 111 forks source link

[TubePlayer] Cannot load the Mobile project on VS Code for Mac with OmniSharp and Uno Platform extension #622

Open imgen opened 11 months ago

imgen commented 11 months ago

When try to load the Mobile project, below errors are shown

Starting OmniSharp server at 12/20/2023, 10:24:28 AM
    Target: /Users/imgen/Learn/Uno.Samples/reference/TubePlayer/TubePlayer.Mobile

OmniSharp server started with .NET 8.0.100
.
    Path: /Users/imgen/.vscode/extensions/ms-dotnettools.csharp-2.14.8-darwin-arm64/.omnisharp/1.39.10-net6.0/OmniSharp.dll
    PID: 5442

[info]: OmniSharp.Stdio.Host
        Starting OmniSharp on Unknown 0.0 (Unknown)
[info]: OmniSharp.Services.DotNetCliService
        Checking the 'DOTNET_ROOT' environment variable to find a .NET SDK
[info]: OmniSharp.Services.DotNetCliService
        Using the 'dotnet' on the PATH.
[info]: OmniSharp.Services.DotNetCliService
        DotNetPath set to dotnet
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Located 3 MSBuild instance(s)
            1: .NET Core SDK 8.0.100 17.8.3 - "/usr/local/share/dotnet/sdk/8.0.100/"
            2: .NET Core SDK 7.0.311 17.6.10 - "/usr/local/share/dotnet/sdk/7.0.311/"
            3: .NET Core SDK 6.0.417 17.3.2 - "/usr/local/share/dotnet/sdk/6.0.417/"
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Registered MSBuild instance: .NET Core SDK 8.0.100 17.8.3 - "/usr/local/share/dotnet/sdk/8.0.100/"
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
[info]: OmniSharp.Cake.CakeProjectSystem
        Detecting Cake files in '/Users/imgen/Learn/Uno.Samples/reference/TubePlayer/TubePlayer.Mobile/'.
[info]: OmniSharp.Cake.CakeProjectSystem
        Did not find any Cake files
[info]: OmniSharp.MSBuild.ProjectSystem
        No solution files found in '/Users/imgen/Learn/Uno.Samples/reference/TubePlayer/TubePlayer.Mobile/'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/Users/imgen/Learn/Uno.Samples/reference/TubePlayer/TubePlayer.Mobile/TubePlayer.Mobile.csproj'
[info]: OmniSharp.Script.ScriptProjectSystem
        Detecting CSX files in '/Users/imgen/Learn/Uno.Samples/reference/TubePlayer/TubePlayer.Mobile/'.
[info]: OmniSharp.Script.ScriptProjectSystem
        Did not find any CSX files
[info]: OmniSharp.WorkspaceInitializer
        Configuration finished.
[info]: OmniSharp.Stdio.Host
        Omnisharp server running using Stdio at location '/Users/imgen/Learn/Uno.Samples/reference/TubePlayer/TubePlayer.Mobile/' on host 5389.
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /Users/imgen/Learn/Uno.Samples/reference/TubePlayer/TubePlayer.Mobile/TubePlayer.Mobile.csproj
[fail]: OmniSharp.MSBuild.ProjectLoader
        The "GenerateRtxt" task was not given a value for the required parameter "JavaPlatformJarPath".
[warn]: OmniSharp.MSBuild.ProjectManager
        Failed to load project file '/Users/imgen/Learn/Uno.Samples/reference/TubePlayer/TubePlayer.Mobile/TubePlayer.Mobile.csproj'.
/Users/imgen/Learn/Uno.Samples/reference/TubePlayer/TubePlayer.Mobile/TubePlayer.Mobile.csproj
/usr/local/share/dotnet/packs/Microsoft.Android.Sdk.Darwin/34.0.43/tools/Xamarin.Android.Resource.Designer.targets(65,3): Error: The "GenerateRtxt" task was not given a value for the required parameter "JavaPlatformJarPath".

[fail]: OmniSharp.MSBuild.ProjectManager
        Attempted to update project that is not loaded: /Users/imgen/Learn/Uno.Samples/reference/TubePlayer/TubePlayer.Mobile/TubePlayer.Mobile.csproj

Of course, due to this, not able to test MacCatalyst target.

imgen commented 11 months ago

I am using a Mac Mini 2022 with Apple M2 chip

imgen commented 11 months ago

It also begs the question of how to test MacCatalyst with Visual Studio on Windows?