Skip to content

Unable to reference Serilog in Full .NET Framework project #38

@jamestoyer

Description

@jamestoyer

I'm working on a full .NET Framework Windows Service and trying to reference the SeriLog extension. When I do I get the following error:

Failed to add reference to 'System.Runtime'. Please make sure that it is in the Global Assembly Cache.

I believe it may be because of the following in the project.json file of this repo.

"net4.5": {
  "frameworkAssemblies": {
    "System.Runtime": ""
  }
}

If you add System.Runtime as a straight dependency instead of as a frameworkAssemblies entry this should then work as expected

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