退出代码255 [英] exited with code 255

查看:107
本文介绍了退出代码255的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<?xml version =" 1.0"编码= QUOT; UTF-8英寸;?> 
< Project ToolsVersion =" 12.0"的xmlns = QUOT; HTTP://schemas.microsoft.com/developer/msbuild/2003">
< PropertyGroup>
< LocalProjectPath> C:\ Users \rodionov_v\Desktop< / LocalProjectPath>
< LocalizationParameters> ru< / LocalizationParameters>
< DisplayVersion> DisplayVersion< / DisplayVersion>
< PluginVersion> PluginVersion< / PluginVersion>
< AndroidPackage> PluginVersion< / AndroidPackage>
< DropLocation> C:\ Users \rodionov_v \Desktop \ Local< / DropLocation>
< / PropertyGroup>


< Target Name =" KudKpdGenerate2" DependsOnTargets = QUOT; KudKpdGenerate" AfterTargets = QUOT; KudKpdGenerate">
< Message Text =" TEST1"重要性= QUOT;正常" />
< Message Text =" TEST2"重要性= QUOT;正常" />
< Message Text =" TEST3"重要性= QUOT;正常" />
< Message Text =" TEST4"重要性= QUOT;正常" />
< Message Text =" TEST5"重要性= QUOT;正常" />
< Message Text =" TEST6"重要性= QUOT;正常" />
< / Target>

< Target Name =" KudKpdGenerate">

< Message Text =" KudKpdGenerate"重要性= QUOT;正常" />


< CreateItem Include =" $(LocalProjectPath)\ KES _ $(LocalizationParameters).kud">
< Output ItemName =" files" TaskParameter = QUOT;包含" />
< / CreateItem>

< CreateItem Include =" $(LocalProjectPath)\ KES _ $(LocalizationParameters).kpd">
< Output ItemName =" files" TaskParameter = QUOT;包含" />
< / CreateItem>


< Exec Command =" file_generator.exe $(LocalProjectPath)$(LocalizationParameters)$(DisplayVersion)$(PluginVersion)$(AndroidPackage)" WorkingDirectory =" C:\Program Files(x86)\ MSBuild \12.0 \ Bin">< / Exec>
< Copy SourceFiles =" @(files)" DestinationFolder = QUOT; $(DropLocation)" />


< / Target>

< / Project>

我尝试执行脚本,但每当我收到消息时"命令退出代码255"和 构建失败

我做错了什么?


Thx。

解决方案

Hi UIman95,


欢迎来到MSDN论坛。


错误代码"255"通常意味着它无法找到您要求它执行的文件。因此,您应该检查脚本并确保脚本中的所有路径都是正确的。特别是执行命令

"< Exec Command =" file_generator.exe 


(LocalProjectPath)

(LocalizationParameters)

<?xml version="1.0" encoding="utf-8"?>  
<Project ToolsVersion="12.0"   xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 
	<PropertyGroup>  
		<LocalProjectPath>C:\Users\rodionov_v\Desktop</LocalProjectPath>  
		<LocalizationParameters>ru</LocalizationParameters>
		<DisplayVersion>DisplayVersion</DisplayVersion>  
		<PluginVersion>PluginVersion</PluginVersion>    
		<AndroidPackage>PluginVersion</AndroidPackage>    
		<DropLocation>C:\Users\rodionov_v\Desktop\Local</DropLocation>
	</PropertyGroup>  


<Target Name="KudKpdGenerate2" DependsOnTargets="KudKpdGenerate" AfterTargets="KudKpdGenerate">  
	<Message Text="TEST1" Importance="normal" />
	<Message Text="TEST2" Importance="normal" />
	<Message Text="TEST3" Importance="normal" />
	<Message Text="TEST4" Importance="normal" />
	<Message Text="TEST5" Importance="normal" />
	<Message Text="TEST6" Importance="normal" />
 </Target>  

<Target Name="KudKpdGenerate">  

<Message Text="KudKpdGenerate" Importance="normal" />


	<CreateItem Include="$(LocalProjectPath)\KES_$(LocalizationParameters).kud">
      <Output ItemName="files" TaskParameter="Include" />
    </CreateItem>

    <CreateItem Include="$(LocalProjectPath)\KES_$(LocalizationParameters).kpd">
      <Output ItemName="files" TaskParameter="Include" />
    </CreateItem>


    <Exec Command="file_generator.exe $(LocalProjectPath) $(LocalizationParameters) $(DisplayVersion) $(PluginVersion) $(AndroidPackage)" WorkingDirectory="C:\Program Files (x86)\MSBuild\12.0\Bin"></Exec>
	<Copy SourceFiles="@(files)" DestinationFolder="$(DropLocation)" />


 </Target>  

</Project>

I try to execute script but everytime i get message "the command exited with code 255"and  build is failed
What i do wrong?

Thx.

解决方案

Hi UIman95,

Welcome to MSDN forum.

The error code "255" usually means that it is not able to find the file you are asking it to execute. So you should check the script and make sure all the path in the script is correct. Especially the execute command

"<Exec Command="file_generator.exe


(LocalProjectPath)


(LocalizationParameters)


这篇关于退出代码255的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆