Closed SergejDK closed 2 years ago
Weird it doesn't work anymore.
UWP and WPF projects use the SDK-Style format for csproj/fsproj so this implies several things:
PackageReference
instead of Reference
for NuGet packages.ProjectReference
, it should automatically reference all the PackageReference
s from that other project.And this is the case here: NewApp.fsproj
imports the various Fabulous packages; NewApp.UWP
/NewApp.WPF
reference the project NewApp
.
Looks like it's not automatically importing the NuGet packages from NewApp into the UWP/WPF projects anymore
So it seems like this is not the right way to go for this problem.
Found some other interesting parts which could help but I have to test them when I am back at my windows computer.
Is there an easy way to create uwp/wpf project from the templates folder?
Is there an easy way to create uwp/wpf project from the templates folder?
I think now with .NET 5 there is a dotnet new
template for WPF at least.
@TimLariviere yes dotnet new -i
can install a template from a path. I'm currently looking into this issue and trying different things. The packagereference will work but it is kinda dirty.
@TimLariviere
Found sth. interesting - Fabulous.XamarinForms
version 1.1.0 references Fabulous
1.0. If I include Fabulous into the shared project so it will update to 1.1.0 it will work again.
Do you have an idea where the reference is wrong then maybe I can fix that or should we just include Fabulous into the shared project?
@TimLariviere I think the problem with #881 was that the references for fabulous were missing.
I included this into both template proj files.
closes #881