Skip to content

Publish System.Xaml as a separate nuget package. #46

Open

Description

@kekekeks

There is a lot of code in production that uses System.Xaml separetely from WPF on server-side for purposes that aren't related to UI in any way, shape or form.
It's worth as a separate package and will be useful right now even without .NET Core 3.0 and working WPF.
I believe it could be shipped for netstandard2.0 to make it useful in .NET Standard libraries.

Activity

  1. added
    Enhancement Requested
    on Dec 4, 2018
  2. kekekeks commented on Dec 4, 2018

    @kekekeks
    Author
  3. added this to the Future milestone on Dec 4, 2018
  4. karelz commented on Dec 4, 2018

    @karelz
    Member

    Just FYI: Having System.Xaml as separate package (while it is part of Desktop UI shared framework shipping in the .NET Core platform) brings a set of non-trivial challenges (CoreFX repo had plenty of good & bad experience with them over last few years).
    CoreFX team and WPF team will work closely together to fully understand all the challenges and additional costs associated with them. That will help us make the best decision if/when/how best to address this ask.

  5. taori commented on Dec 5, 2018

    @taori

    I originally thought this is what was supposed to happen here, but since wpf is no open sources i guess that's a different site.

  6. WinInsider commented on Dec 6, 2018

    @WinInsider

    This has been an ask for long time, by many... Please do consider System.Xaml target .netstandard 2.0

  7. dotMorten commented on Dec 6, 2018

    @dotMorten
    Contributor

    There is a lot of code in production that uses System.Xaml separetely from WPF on server-side for purposes that aren't related to UI in any way, shape or form.

    I'm curious if someone could list a set of detailed real-world scenarios for this. It might help sell the team on it.

  8. ewinnington commented on Dec 6, 2018

    @ewinnington

    Workflow foundation is an example of non-UI Xaml usage of system.xaml. It is a critical component to allow runtime workflows.

  9. kekekeks commented on Dec 7, 2018

    @kekekeks
    Author

    @dotMorten
    Mostly custom workflow engines.
    There is also Workflow Foundation open-source attempt: https://github.com/dmetzgar/corewf that would greatly benefit from having System.Xaml as a separate package.

  10. Kation commented on Sep 25, 2019

    @Kation

    For now Net Core 3.0 was released.
    Is there any information about this issues?

  11. idea-zone commented on Feb 23, 2023

    @idea-zone

    How can I use System.Xaml.dll in .netcore or .net5 ? I need "XmlnsDefinitionAttribute" and “XmlnsPrefixAttribute” 。Thanks。

  12. lindexi commented on Feb 23, 2023

    @lindexi
    Member

    @idea-zone Reference WPF framework.

    Adding the code to your csproj file:

      <PropertyGroup>
        <UseWPF>true</UseWPF>
      </PropertyGroup>
    
  13. idea-zone commented on Mar 9, 2023

    @idea-zone

    @idea-zone参考WPF框架。

    将代码添加到您的 csproj 文件中:

      <PropertyGroup>
        <UseWPF>true</UseWPF>
      </PropertyGroup>
    

    My project needs to be published to linux. It's will here an error and ask add "-windows" to TargetFramework .

  14. jdom commented on Jan 31, 2024

    @jdom
    Member

    I assume this is not possible to use yet in a .NET 8 console app?

  15. added a commit that references this issue on Apr 19, 2024
  16. jdom commented on Jun 19, 2025

    @jdom
    Member

    pinging this thread again in hopes there's some alternative to use Xaml in a console app (not for UI, but I'm porting an old console app that was using Xaml for configuring a lot of things, and is used by 300+ partner teams)

  17. jdom commented on Nov 12, 2025

    @jdom
    Member

    Any updates for getting an official standalone System.Xaml package?

  18. lindexi commented on Nov 13, 2025

    @lindexi
    Member

    @jdom Sorry, there are not any updates for getting an official standalone System.Xaml package. But you can use my version:
    #46 (comment)

  19. jdom commented on Nov 13, 2025

    @jdom
    Member

    Thanks for the offer @lindexi , but it's not viable alternative for our company. There's way too many commits that we'd have to review for us to safely use it. We also have a custom fork of the code and build it ourselves, but it's a tax to maintain it. I was hoping that the owners of this repo would just officially release it.

  20. lindexi commented on Nov 13, 2025

    @lindexi
    Member

    I was hoping that the owners of this repo would just officially release it.

    @jdom You will have to wait for a very long time, see #11188

  21. jdom commented on May 7, 2026

    @jdom
    Member

    That's unfortunate

  22. added a commit that references this issue on Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Enhancement Requestedarea-System.Xaml

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions