Skip to content

Compiler freezes during build and never finishes #14651

@Confuset

Description

@Confuset

Hi everyone,

when trying to build a Fabulous.XamarinForms.Templates the compiler freezes.
This happens with Visual Studio 2022 and with msbuild via the commandline.

Repro steps

Requirements from Fabulous.XamarinForms.Templates

Provide the steps required to reproduce the problem:

  1. dotnet new install Fabulous.XamarinForms.Templates
  2. dotnet new fabulous-xf-vswin -n SplitApp
  3. cd SplitApp
  4. msbuild

Expected behavior

The compiler eventually finishes.

Actual behavior

The compiler never finishes. (Had it running for 6.30 hours..)

Known workarounds

Downgrade compiler from v12.0.5 to v12.0.4.

Related information

I already did some research at this Fabulous.XamarinForms ticket fabulous-dev/Fabulous.XamarinForms#20
I even tried git bisect to further pinpoint the issue, but I can not really compile the project with my own compiler due to missing build targets:

"c:\Users\xxx\source\repos\SplitApp\SplitApp.sln" (default target) (1) ->
"c:\Users\xxx\source\repos\SplitApp\SplitApp.Android\SplitApp.Android.fsproj" (default target) (4) ->
  C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VisualStudio\v17.0\FSharp\Microsoft.FSharp
.Targets(4,3): error MSB4019: The imported project "C:\Users\xxx\source\repos\fsharp\artifacts\bin\fscAny\Debug\net47
2\Microsoft.FSharp.targets" was not found. Confirm that the expression in the Import declaration "C:\Users\xxx\source
\repos\fsharp\artifacts\bin\fscAny\Debug\net472\\Microsoft.FSharp.targets" is correct, and that the file exists on disk
. [c:\Users\xxx\source\repos\SplitApp\SplitApp.Android\SplitApp.Android.fsproj]
  • Operating system: W10
  • .NET Runtime kind: MonoAndroid/Xamarin
  • Editing Tools: Visual Studio 2022

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions