Skip to content

Precompiler functionality broken #366

@rconde01

Description

@rconde01

Using 4.8.12.0
test.cs

//css_precompiler Precompiler.cs;

using System;

class Program {
    static void Main(){
        System.Console.WriteLine("Hello");
    }
}

Precompiler.cs

public class Precompiler
{
    public static bool Compile(ref string code, string scriptFile, bool isPrimaryScript, Hashtable context)
    { 
        return false; //false as the code has not been modified
    }
}

running:

cscs test.cs

gives:

Error: Specified file could not be compiled.

Cannot load precompiler D:\third_party_bug_reports\cs-script\precompiler_broken\Precompiler.cs: Object reference not set to an instance of an object.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions