You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following the sample, I am running into the following error when running the .csx file for the webapi server:
C:\dev\temp\scriptcs2> scriptcs server.csx
ERROR: Roslyn.Compilers.CompilationErrorException: C:\dev\temp\scriptcs2\server.csx(7,14): error CS7012: The name 'Require' does not exist in the current context (are you missing a reference to assembly 'ScriptCs.Contracts, Version=0.7.0.0, Culture=neutral, PublicKeyToken=null'?)
at Roslyn.Scripting.CommonScriptEngine.CompilationError(DiagnosticBag localDiagnostics, DiagnosticBag diagnostics)
at Roslyn.Scripting.CommonScriptEngine.Compile(String code, String path, DiagnosticBag diagnostics, Session session, Type delegateType, Type returnType, CancellationToken cancellationToken, Boolean isInteractive, Boolean isExecute, CommonCompilation& compilation, Delegate& factory)
at Roslyn.Scripting.CommonScriptEngine.CompileSubmission[T](String code, Session session, String path, Boolean isInteractive)
at ScriptCs.Engine.Roslyn.RoslynScriptEngine.Execute(String code, Session session)
Cheers!
The text was updated successfully, but these errors were encountered:
Ugh that sounds like something is seriously broken.
-----Original Message-----
From: "Federico Silva Armas" [email protected]
Sent: 8/15/2013 11:44 PM
To: "scriptcs/scriptcs-webapi" [email protected]
Subject: [scriptcs-webapi] Error <The name 'Require' does not exist> whentrying the sample for webapi server (#6)
Following the sample, I am running into the following error when running the .csx file for the webapi server:
C:\dev\temp\scriptcs2> scriptcs server.csx
ERROR: Roslyn.Compilers.CompilationErrorException: C:\dev\temp\scriptcs2\server.csx(7,14): error CS7012: The name 'Require' does not exist in the current context (are you missing a reference to assembly 'ScriptCs.Contracts, Version=0.7.0.0, Culture=neutral, PublicKeyToken=null'?)
at Roslyn.Scripting.CommonScriptEngine.CompilationError(DiagnosticBag localDiagnostics, DiagnosticBag diagnostics)
at Roslyn.Scripting.CommonScriptEngine.Compile(String code, String path, DiagnosticBag diagnostics, Session session, Type delegateType, Type returnType, CancellationToken cancellationToken, Boolean isInteractive, Boolean isExecute, CommonCompilation& compilation, Delegate& factory)
at Roslyn.Scripting.CommonScriptEngine.CompileSubmissionT
at ScriptCs.Engine.Roslyn.RoslynScriptEngine.Execute(String code, Session session)
Cheers!
—
Reply to this email directly or view it on GitHub.
Following the sample, I am running into the following error when running the .csx file for the webapi server:
C:\dev\temp\scriptcs2> scriptcs server.csx
ERROR: Roslyn.Compilers.CompilationErrorException: C:\dev\temp\scriptcs2\server.csx(7,14): error CS7012: The name 'Require' does not exist in the current context (are you missing a reference to assembly 'ScriptCs.Contracts, Version=0.7.0.0, Culture=neutral, PublicKeyToken=null'?)
at Roslyn.Scripting.CommonScriptEngine.CompilationError(DiagnosticBag localDiagnostics, DiagnosticBag diagnostics)
at Roslyn.Scripting.CommonScriptEngine.Compile(String code, String path, DiagnosticBag diagnostics, Session session, Type delegateType, Type returnType, CancellationToken cancellationToken, Boolean isInteractive, Boolean isExecute, CommonCompilation& compilation, Delegate& factory)
at Roslyn.Scripting.CommonScriptEngine.CompileSubmission[T](String code, Session session, String path, Boolean isInteractive)
at ScriptCs.Engine.Roslyn.RoslynScriptEngine.Execute(String code, Session session)
Cheers!
The text was updated successfully, but these errors were encountered: