question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot build F# project with Microsoft.ProjectReunion.WinUI

See original GitHub issue

Describe the bug F# project that references Microsoft.ProjectReunion.WinUI does not build

C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2902,7): error MSB4057: The target "XamlPreCompile" does not exist in the project.

Steps to reproduce the bug

  1. Clone https://github.com/xperiandri/Elmish.Uno/tree/uno_winui
  2. Check out https://github.com/xperiandri/Elmish.Uno/tree/uno_winui branch
  3. Open Elmish.Uno.sln
  4. Comment out my work around in Elmish.Uno.fsproj if it present (empty XamlPreCompile target)
  5. Build Elmish.Uno.fsproj

Expected behavior F# project builds successfully

Version Info Microsoft.ProjectReunion.WinUI 0.5.0-prerelease

NuGet package version: 0.5.0-prerelease

Windows 10 version Saw the problem?
Insider Build (xxxxx)
May 2020 Update (19041) Yes
November 2019 Update (18363)
May 2019 Update (18362)
October 2018 Update (17763)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
xperiandricommented, Nov 18, 2021

image So, finally F# works! 🥳🥳🥳

1reaction
AdamBradencommented, Apr 1, 2021

There is nothing here related to cswinrt, looks like a WinUI issue.

@xperiandri - I updated the following and rebuilt with same error.

<PackageReference Include="Microsoft.ProjectReunion" Version="0.5.0" Condition="$(TargetFramework.StartsWith('net5.0-windows10'))" />
<PackageReference Include="Microsoft.ProjectReunion.Foundation" Version="0.5.0" Condition="$(TargetFramework.StartsWith('net5.0-windows10'))" />
<PackageReference Include="Microsoft.ProjectReunion.WinUI" Version="0.5.0" Condition="$(TargetFramework.StartsWith('net5.0-windows10'))" />
Read more comments on GitHub >

github_iconTop Results From Across the Web

Adding just Microsoft.ProjectReunion does not bring in all ...
Steps to reproduce the behavior: File | New WinUI project using the new Single Project MSIX system; Remove the WinUI packages, leaving the...
Read more >
WinUI 3 cannot create a project build when adding ...
The error appears after adding a reference to the background project to the UI project. The background project contains the same project ......
Read more >
WinUI 3 Project Reunion 0.5 (March 2021) - Windows apps
UWP support. This means you cannot build or run a UWP app using the WinUI 3 - Project Reunion 0.5 VSIX. You'll need...
Read more >
How to make Projection UserControl (XAML resource) in ...
The issue is that WinUI can't find the default style defined in generic.xaml as the compiled Generic.xbf that contains it is not copied...
Read more >
Windows App SDK - Microsoft Q&A
Cannot add USB DeviceCapability in WinUI 3 App Package.appxmanifest. I have a UWP app that I am porting to WinUI 3 I want...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found