unoplatform / uno.extensions

Libraries to ease common developer tasks associated with building multi-platform mobile, desktop and web applications using Uno Platform or WinAppSDK.
https://platform.uno/
Other
73 stars 47 forks source link

Error using Uno Studio and generating the recommended version #1266

Closed rafael-rosa-knowcode closed 1 year ago

rafael-rosa-knowcode commented 1 year ago

Current behavior

When we generate the project using Uno Studio, directly in the recommended version, and compile the project, the system displays the message below.

image

Error description

Severity    Code    Description Project File    Line    Suppression State
Error   CS1503  Argument 1: cannot convert from 'System.Collections.Generic.IEnumerable<UnoApp481.DataContracts.WeatherForecast>' to 'System.Collections.Immutable.IImmutableList<UnoApp481.DataContracts.WeatherForecast>' UnoApp481 (net7.0), UnoApp481 (net7.0-android), UnoApp481 (net7.0-ios), UnoApp481 (net7.0-maccatalyst), UnoApp481 (net7.0-windows10.0.19041)    C:\Users\usuario\source\repos\UnoApp481\UnoApp481\Services\Caching\WeatherCache.cs  41  Active

Expected behavior

Generate the project, compile and run.

How to reproduce it (as minimally and precisely as possible)

Using uno studio, generating the project and compiling. Using the versions below.

Environment

Nuget Package:

Affected platform(s):

Visual Studio:

Relevant plugins:

Anything else we need to know?

rafael-rosa-knowcode commented 1 year ago

The problem was occurring due to the IApiClient file being duplicated, due to the cache generated on my local machine. Thanks @dansiegel for help me so fast.