2017-02-14 46 views
2

我试图使用PowerShell脚本作为预编译过程的一部分。在project.json文件中有一个部分,您可以在编译期间在不同级别指定脚本,其中之一是预编译的。对于前:.NET核心1.1是否有可能与project.json脚本使用PowerShell脚本

"scripts": { 
    "precompile": [ 
    "assemblyInfo.ps1" 
    ] 
} 

当我这样做,我编译出现以下错误:

The specified executable is not a valid application for this OS platform. 

是没可能做到这一点?

+0

你有没有想过这个问题呢? – Jon49

+2

@ Jon49它不支持powershell脚本,但是你可以使用一个批处理脚本,然后调用别的东西 – Exocomp

回答

0

ExoComp

it doesn't support powershell scripts, you could however use a batch script that then calls something else

最终我只是使用Node.js的CLI脚本。

相关问题