Skip to content

add-type fails with "Could not load file or assembly 'System.Xml.XDocument..." #604

Closed

Description

add-type -typed "public static class foo { }"
add-type : Could not load file or assembly 'System.Xml.XDocument, Version=4.0.0.0, Culture=neutral, PublicKey=b03...' or one of its dependencies. The system cannot find the file specified.

Activity

  1. andyleejordan commented on Mar 1, 2016

    @andyleejordan
    Member

    Hm. We have System.Xml.XmlDocument; it looks like their is just another path checking for a key where it shouldn't be.

  2. andyleejordan commented on Mar 1, 2016

    @andyleejordan
    Member

    Oh. Let me update the type catalog.

  3. andyleejordan commented on Mar 1, 2016

    @andyleejordan
    Member

    Oh man, those two names are very similar. We don't have System.Xml.XDocument.

  4. andyleejordan commented on Mar 1, 2016

    @andyleejordan
    Member

    James Truher (@JamesWTruher) I've added "System.Xml.XDocument": "4.0.11-rc3-23829" as a dependency to the host so it gets restored now, and updated the catalog. Issue no longer repros. Opening PR.

  5. added a commit that references this issue on Mar 1, 2016
    744e1e2
  6. added a commit that references this issue on Aug 6, 2026
    b410535
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Issue-BugIssue has been identified as a bug in the productWG-Maintainers-Buildspecific to affecting the build

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions