Compiler freezes during build and never finishes
See original GitHub issueHi 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:
- dotnet new install Fabulous.XamarinForms.Templates
- dotnet new fabulous-xf-vswin -n SplitApp
- cd SplitApp
- 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 https://github.com/fabulous-dev/Fabulous.XamarinForms/issues/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
Issue Analytics
- State:
- Created 8 months ago
- Comments:8 (6 by maintainers)
Top GitHub Comments
Brilliant. Thanks for the quick help on this. Tried VS2022 17.5.0 Preview 4.0 which also fixes the issue for me 😃
Thanks a lot for letting me know about it!