Skip to content

How to override the compiler with a custom compiler shipped in a NuGet package #449

Closed
@gfraiteur

Description

@gfraiteur

I would like to integrate PostSharp with DNX. PostSharp needs to post-process the output of the Roslyn compiler.

I'm trying to override the default project compiler by adding this to project.json:

 "compiler" : {
        "name" : "C#-PostSharp", 
        "compilerAssembly" : "PostSharp.Dnx",
        "compilerType" : "PostSharp.Dnx.PostSharpProjectCompiler"
    }

where PostSharp.Dnx is a NuGet package.

The problem is that the PostSharp.Dnx assembly cannot be found. The LoadContext into which the assembly is loaded is empty, so only the dnx\bin directory is being scanned.

How can I use a custom compiler shipped in a NuGet package?

Thank you.

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