fabulous-dev / Fabulous.XamarinForms

Declarative UIs for Xamarin.Forms with F# and MVU, using Fabulous
https://docs.fabulous.dev/xamarinforms
Apache License 2.0
13 stars 1 forks source link

Fabulous.XamarinForms.Templates references Fabulous.2.1.3 which is not released #5

Closed Confuset closed 1 year ago

Confuset commented 1 year ago

Hi everyone, when trying to build a fresh app from the current Fabulous.XamarinForms.Templates 2.1.3 I do receive an error from Visual Studio saying that it can not find Fabulous 2.1.3.

NuGet Package restore failed for project SplitApp.Android: Unable to find version '2.1.3' of package 'Fabulous'.
  C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\: Package 'Fabulous.2.1.3' is not found on source 'C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\'.
  https://api.nuget.org/v3/index.json: Package 'Fabulous.2.1.3' is not found on source 'https://api.nuget.org/v3/index.json'.
. Please see Error List window for detailed warnings and errors.

same goes for App.IOS

Further looking into it, it looks like FabulousPkgsVersion is used for the package.config

<packages>
  <package id="Fabulous" version="FabulousPkgsVersion" targetFramework="monoandroid11.0" />
  <package id="Fabulous.XamarinForms" version="FabulousPkgsVersion" targetFramework="monoandroid11.0" />
  ...
<packages>

But I think here is the issue. While Fabulous.XamarinForms is released as 2.1.3 Fabulous is not. (current 2.1.0)

TimLariviere commented 1 year ago

@Confuset Thanks for the report! I published an updated template 2.1.4 that should fix the problem you've noticed.

https://www.nuget.org/packages/Fabulous.XamarinForms.Templates/2.1.4

Confuset commented 1 year ago

That was quick. Thanks for the fix. Fabulous is resolving nicely with nuget.