Description
I would like to use FsXaml with .NET Core 3
.NET Core 3 brings support for WPF, but it doesn't seem to work with FsXaml
Repro steps
Please provide the steps required to reproduce the problem
Using the latest preview for .NET Core 3 -
- Create a new dotnet core 3.0 application with WPF support -
project.fsproj
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework>
<RootNamespace>MyNamespace</RootNamespace>
<UseWPF>true</UseWPF>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Elmish.WPF" Version="3.1.0"/>
<PackageReference Include="FsXaml.Wpg" Version="3.1.6"/>
</ItemGroup>
</Project>
-
Add a XAML file to the project.
-
Build the project.
Expected behavior
Project builds and I can start using the Type provider for the XAML file in my code.
Actual behavior
Build outputs an error as follows
C:\Program Files\dotnet\sdk\3.0.100-preview8-013656\Sdks\Microsoft.NET.Sdk.WindowsDesktop\targets\Microsoft.WinFX.targets(243,9): error MC1000: Unknown build error, 'Object reference not set to an instance of an object.' [C:\Users\dam5s\workspace\epub-desktop\epub-desktop\epub-desktop.fsproj]
Known workarounds
None that I know of. I'm using a C# project with my XAML files instead.
Related information
- Windows 10 Pro
- Latest stable version
- 3.0.100-preview8-013656
Description
I would like to use FsXaml with .NET Core 3
.NET Core 3 brings support for WPF, but it doesn't seem to work with FsXaml
Repro steps
Please provide the steps required to reproduce the problem
Using the latest preview for .NET Core 3 -
project.fsproj
Add a XAML file to the project.
Build the project.
Expected behavior
Project builds and I can start using the Type provider for the XAML file in my code.
Actual behavior
Build outputs an error as follows
Known workarounds
None that I know of. I'm using a C# project with my XAML files instead.
Related information