【问题标题】:Creating cs2php compiler using Visual Studio 2017使用 Visual Studio 2017 创建 cs2php 编译器
【发布时间】:2020-03-19 14:43:04
【问题描述】:

我在 GitHub 上发现了一个有趣的项目,它允许将 C# 代码转换为 PHP。链接:https://github.com/isukces/cs2php

他们说:“您必须自己下载和构建 cs2php 编译器。源代码可在 GitHub 上获得。由于 Microsoft Rosylin 许可限制,目前不分发二进制版本。”

我很难创建一个 cs2php.exe 编译器。我尝试构建一个类库项目,但我得到的只是 dll 文件,当我将输出类型更改为 Windows 应用程序时,我收到我缺少 main 方法。

如何编译cs2php.exe?

【问题讨论】:

    标签: c# visual-studio visual-studio-2017 class-library


    【解决方案1】:

    根据我的研究,您可以在您提供的https://github.com/isukces/cs2php 中下载该文件。

    首先,请打开 CSToPHP 解决方案。

    其次,选择Engine->Lang.Php.Compiler。

    第三,右键Rebuild。

    最后你会得到路径'cs2php-master\cs2php-中的cs2php.exe文件

    master\Lang.Cs2Php\bin\Debug\net472\cs2php.exe'。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-12-08
      • 2017-08-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多