Skip to content

Published app 'root' package in ILibraryManager.GetReferencingLibraries() #1223

Closed
@henkmollema

Description

@henkmollema

When I publish an app and compile it to NuGet packages, it creates a folder 'root':

approot\packages\ConsoleApp2\1.0.0\root\

This causes the ILibraryManager.GetReferencingLibraries() to resolve a project called 'root' and it tries to load it. Which in turn fails with this exception:

Could not load file or assembly 'root' or one of its dependencies. General Exception (Exception from HRESULT: 0x80131500)

DNX version: 1.0.0-rc1-update1

Repro:
https://github.com/henkmollema/AssemblyLoadRootRepro

  1. Clone repo (git clone https://github.com/henkmollema/AssemblyLoadRootRepro.git)
  2. cd AssemblyLoadRootRepro
  3. dnu publish -o c:\publish --no-source
  4. cd c:\publish\approot
  5. ConsoleApp2.cmd
  6. 💥

Is this expected behavior?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions