我正在使用VisualStudio2015Update2。根据csi.exe的说法,有“C#脚本文件”这样的东西:
如果指定的话执行script-file.csx
有这种格式的文档吗?如何在中创建它们?
> csi.exe /?
Microsoft (R) Visual C# Interactive Compiler version 1.2.0.60317
Copyright (C) Microsoft Corporation. All rights reserved.
Usage: csi [option] ... [script-file.csx] [script-argument] ...
Executes script-file.csx if specified, otherwise launches an interactive REPL (Read Eval Print Loop).
Options:
/help Display this usage message (alternative form: /?)
/i Drop to REPL after executing the specified script.
/r:<file> Reference metadata from the specified assembly file (alternative form: /reference)
/r:<file list> Reference metadata from the specified assembly files (alternative form: /reference)
/lib:<path list> List of directories where to look for libraries specified by #r directive.
(alternative forms: /libPath /libPaths)
/u:<namespace> Define global namespace using (alternative forms: /using, /usings, /import, /imports)
@<file> Read response file for more options
-- Indicates that the remaining arguments should not be treated as options.发布于 2016-04-26 13:55:50
发布于 2016-05-19 22:35:35
我能够在VisualStudio2015Update2中创建一个C#脚本( .csx )文件,方法是在IDE中创建一个文本文件,并将其保存为一个.csx扩展名。然后,通过右键单击和选择,我能够在C#交互(csi.exe)中的C#脚本文件中执行C#代码。它确实在运行,但是没有intellisense支持。
https://stackoverflow.com/questions/36866654
复制相似问题