【问题标题】:Building atom text editor from visual studio 2015从 Visual Studio 2015 构建 atom 文本编辑器
【发布时间】:2017-09-21 19:26:00
【问题描述】:

我一直在尝试从github 上发布的源代码为 atom 文本编辑器做出贡献。我正在从源代码构建应用程序。

这里是一些快速的系统信息。

操作系统: Windows 10(x64)

命令结果: apm -v

apm  1.16.1
npm  3.10.5
node 6.9.5 x64
python 2.7.13
git 2.11.0.windows.3
visual studio 2015

我已经运行了原子documentation (windows build) 给出的命令,它已经正确地创建了一个输出文件。(命令在下面列出)

cd C:\
git clone https://github.com/atom/atom.git
cd atom
script\build 

我在 Visual Studio 2015 中将 atom 文件夹作为网站打开。我认为这是正确的,但我并不完全确定。下面是我在 Visual Studio 2015 中的解决方案资源管理器的图像。对于项目 atom,如前所述,它作为网站打开。

现在,当我尝试在 Visual Studio 中构建此应用程序时(它表示构建成功),但我收到错误 HTTP 错误 403.14 - Forbidden(Visual Studios 打开本地主机)。我遵循了微软支持website的方法,但这些解决方案并没有解决我的错误。我想知道是否应该将应用程序构建为 Visual Studio 中的网站。这可能是导致此错误的原因吗?

其他信息:

Web.config 内容:

<?xml version="1.0"?>
 <configuration>
 <system.web>
   <compilation debug="true" targetFramework="4.0"/>
 </system.web>
 </configuration>

【问题讨论】:

    标签: build coffeescript atom-editor


    【解决方案1】:

    这个问题是我在 atom 讨论区Link Here 上再次提出的。这是其他人的答案,所有学分都归于 Wliu 和 Scholar 的回答。

    使用脚本\构建。如果 Visual Studio 有一个嵌入式终端,那么您可以使用它,这样您就不必离开编辑器。 Atom 确实有一个嵌入式终端。

    out\ 应该在运行 script\build 时自动为您清除:https://github.com/atom/atom/blob/071ee3a06076f67e7708f4fdeffe85ac0e9d89c6/script/lib/clean-output-directory.js1 如果您不断对 Atom 核心进行更改并希望快速测试您的更改,您可以在开发人员模式下运行 Atom,这比重建要快得多:atom --dev。

    【讨论】:

      猜你喜欢
      • 2016-06-15
      • 2015-12-01
      • 1970-01-01
      • 2017-04-23
      • 2021-10-21
      • 1970-01-01
      • 1970-01-01
      • 2015-10-16
      • 1970-01-01
      相关资源
      最近更新 更多