-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parameter name: The language 'F#' is not supported #21
Comments
I only see this error on Windows. If you don't plan on targeting Windows, I would recommend you remove the |
Still reproducible (100%) with VS 17.3.0 on Windows. |
I agree; it indeed seems to be a problem within MAUI itself. So I think we should file a bug report in the MAUI repo if it hasn't already been done yet. Is there a respective ticket in the MAUI repo yet? If not, I can file one. Edit: I have created a MAUI ticket |
Not 100 percent ideal but I have a workaround here that we could put into the templates for now. Basically it just adds a referenced project that's C# so that WinUI can generate its code inside there and then the head project can just use that. I asked the WinUI team if there's a better way to go about doing this but for now this seems to work alright. |
@PureWeen How would you use fabulous with the mauihead project you've linked? I'm rather new and I'm interested in trying to build a small crud app with this, but I'm more interested in doing it MVU vs MVVM, so I'm not entirely sure how to bridge the gap? Or is it not entirely possible yet? |
@WillEhrendreich You should be able to do a full MVU MAUI app using Fabulous.MauiControls (templates here) I believe the head project shared by @PureWeen is literally just a drop-in to the F# MAUI template that can be found in this repository or in Fabulous.MauiControls.Templates. The current F# template can't compile for |
hey @TimLariviere , thanks for responding! I'm hoping you can give an example.. I have no idea how to make this work.. I've been trying all day to do what you're saying.. I don't know what I'm missing. @PureWeen 's template is an fsharp and csharp project on maui that interact with each other, but I have no idea how to integrate it with Fabulous. What do I replace with what.. and where? |
@WillEhrendreich I didn't had time to prepare you a full sample, but I understand better how to make it work. Those steps should lead you to a working WinUI project:
namespace YourApp.WinUI
open Microsoft.UI.Xaml
open Microsoft.Maui
open Microsoft.Maui.Controls.Xaml
open YourApp
/// <summary>
/// Provides application-specific behavior to supplement the default Application class.
/// </summary>
type App() =
inherit YourApp.WinUI.App()
override this.CreateMauiApp() = MauiProgram.CreateMauiApp() This should let you build for WinUI |
@WillEhrendreich I created this library to take care of most of the steps above: https://github.com/fsharp-mobile/FSharp.Maui.WinUICompat The idea is to remove the
This will let the app compile and run. |
Yeah, I've been chasing this down all yesterday. I got exactly as far as that, the exact library was "missing". I was going to try to comment back with how far I got, but I guess you got the same result. Haha. |
microsoft/WindowsAppSDK#1762 <- here is the issue i was trying to reference to help resolve things but have as of yet been unsuccessful. |
I have new templates installed but after creating the new maui-fsharp application and running build command I have the following error:
PS C:\temp\maui\TestApp> dotnet build -c Release
MSBuild version 17.3.0-preview-22329-01+77c72dd0f for .NET
Determining projects to restore...
All projects are up-to-date for restore.
You are using a preview version of .NET. See: https://aka.ms/dotnet-core-preview
You are using a preview version of .NET. See: https://aka.ms/dotnet-core-preview
You are using a preview version of .NET. See: https://aka.ms/dotnet-core-preview
You are using a preview version of .NET. See: https://aka.ms/dotnet-core-preview
TestApp -> C:\temp\maui\TestApp\bin\Release\net6.0-maccatalyst\maccatalyst-x64\TestApp.dll
TestApp -> C:\temp\maui\TestApp\bin\Release\net6.0-ios\iossimulator-x64\TestApp.dll
EXEC : Xaml Internal error : Specified argument was out of the range of valid values. [C:\temp\maui\TestApp\TestApp.fsp
roj]
Parameter name: The language 'F#' is not supported
The text was updated successfully, but these errors were encountered: