fabulous-dev / Fabulous

Declarative UI framework for cross-platform mobile & desktop apps, using MVU and F# functional programming
https://fabulous.dev
Apache License 2.0
1.15k stars 121 forks source link

[Bug] New App from template UWP/WPF FileNotFoundException #881

Closed SergejDK closed 2 years ago

SergejDK commented 3 years ago

Description

Steps to Reproduce

  1. Create a new app --> dotnet new fabulous-xf-app -n SqueakyApp --WPF --UWP
  2. Open .sln in VS 2019
  3. Run WPF or UWP on your local computer
  4. System.IO.FileNotFoundException: "Could not load file or assembly 'Fabulous, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null'.

Expected Behavior

Runs without an error

Actual Behavior

System.IO.FileNotFoundException: "Could not load file or assembly 'Fabulous, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null'.

Basic Information

Environment

Microsoft Visual Studio Community 2019
Version 16.10.2
VisualStudio.16.Release/16.10.2+31410.357
Microsoft .NET Framework
Version 4.8.04084

Installierte Version: Community

Build Logs

System.IO.FileNotFoundException --> Could not load file or assembly 'Fabulous, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null'

Screenshots

Reproduction Link

Workaround

Adding the Fabulous Nuget package will fix the issue but we have to include it into the template files.

ChristophSchmidpeter commented 2 years ago

@TimLariviere @SergejDK It seems on the main branch the package references are not added yet, or have they been added already? In order to make it possible to run new user apps created from the templates again: Will be there a bugfix release soon?

SergejDK commented 2 years ago

@ChristophSchmidpeter I will push a fix for this in the next days. After this we (@TimLariviere and I) can check about making a release.

ChristophSchmidpeter commented 2 years ago

@SergejDK Awesome, thank you

auslavs commented 2 years ago

I'm still having this issue downloading the template and starting a new project for the first time today.

System.IO.FileNotFoundException: 'Could not load file or assembly 'Fabulous, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.'

I should note that I followed the instructions from here: https://fsprojects.github.io/Fabulous/docs/v1/getting-started/

Commands run:

dotnet new -i Fabulous.XamarinForms.Templates
dotnet new fabulous-xf-app --WPF --Android=false --iOS=false