Skip to content
| Marketplace
Sign in
Visual Studio>Tools>CSPreProcessor
CSPreProcessor

CSPreProcessor

Zeus

|
178 installs
| (1) | Free
use c# PreProcesser like c/c++ PreProcesser
Download

让c# 能够使用c语言的预处理功能。

使用方法:

创建一个名为AnyName.csh的文件,这个扩展会自动在该文件下创建一个名为AnyName.cs。

Let c# be able to use the preprocessing function of the c language.

Instructions:

Create a file named AnyName.csh, this extension will automatically create a file named AnyName.cs under the file.

Like It:

#define ZeP1 "Test" namespace Test1 { class Class4 { public const string read = ZeP1; } }

will convert to namespace Test1 { class Class4 { public const string read = "Test"; } }

Reference:

CppNet :https://github.com/xtravar/CppNet

[Ver 2.0 Fix / Add 2020/8/18]

Support Add Macro/Define From Project DefineConsts

[Ver 2.1 Fix 2020/8/19]

Fix name "CSPreProcesser"->"CSPreProcessor"
Fix a bug with c# alias

问题:

如果不能自动创建*.cs文件,请选择任意文件, 并在该文件的属性面板的自定义工具上填写 ”CSPreprocessor“

中文教程:

https://gitee.com/fyindex/CSpreProcessor/issues/I1S1CT

Issue:

If the *.cs file cannot be created automatically, please select any file and fill in "CSPreprocessor" in the custom tool in the property panel of the file

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft