.NET Core 3 support request
See original GitHub issueDescription
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
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:13 (3 by maintainers)
Top Results From Across the Web
.NET and .NET Core official support policy
The only difference is the length of support. LTS releases get free support and patches for 3 years. STS releases get free support...
Read more >.NET Core 3.1 will reach End of Support on December 13, ...
.NET Core 3.1 will reach end of support on December 13, 2022. After that date, Microsoft will no longer provide servicing updates or...
Read more >Microsoft to End Support for .NET Core 3.1 in December 2022
The long-term-support (LTS) version 3.1 of Microsoft .NET Core Framework is slated to go out of support on December 13th, 2022.
Read more >Microsoft Announces End of Support Date for .NET Core 3.1
NET Core 3.1 will reach [the] end of support on December 13, 2022,” Microsoft's Dominique Whittaker writes. “After that date, Microsoft will no...
Read more >Net Core Support (Official Response Requested)
Hi,. I know I have asked this before but I'm going to ask again as there has been no official response yet. We...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I took the project files and other changes from @amazingant 's repo that he linked above, applied them in a branch on my fork, and worked with it to get as far as I could.
Here is the progress I was able to make:
I need guidance on how to fix the demo apps or possibly the library to get this working.
Also, I noticed that the FAKE build script is very out-of-date. I was unable to use it and resorted to using paket, the dotnet SDK, and VS (and for building the demo projects, manually copying the library DLLs to the bin folder).
request to support latest version, the fsproj file like this: