Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/flutter/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
MSBuild将数据追加到配置字符串_Msbuild_Build Process_Build Automation - Fatal编程技术网

MSBuild将数据追加到配置字符串

MSBuild将数据追加到配置字符串,msbuild,build-process,build-automation,Msbuild,Build Process,Build Automation,我从MSBuild中得到了奇怪的行为 我使用命令: msbuild.exe/p:Configuration=“Release | Windows Mobile 5.0 Pocket PC SDK(ARMV4I)”“MySolution.sln”和退出%%ERRORLEVEL%% 这给了我一个错误: MySolution.sln:错误MSB4126:指定的解决方案配置“版本| Windows Mobile 5.0 Pocket PC SDK(ARMV4I)|混合平台”无效。请使用配置和平台属性(例

我从MSBuild中得到了奇怪的行为

我使用命令:

msbuild.exe/p:Configuration=“Release | Windows Mobile 5.0 Pocket PC SDK(ARMV4I)”“MySolution.sln”和退出%%ERRORLEVEL%%

这给了我一个错误:

MySolution.sln:错误MSB4126:指定的解决方案配置“版本| Windows Mobile 5.0 Pocket PC SDK(ARMV4I)|混合平台”无效。请使用配置和平台属性(例如MSBuild.exe solution.sln/p:configuration=Debug/p:Platform=“Any CPU”)指定有效的解决方案配置,或将这些属性留空以使用默认的解决方案配置

我的解决方案中有Windows Mobile 5.0 Pocket PC SDK(ARMV4I)发行版的目标。我的问题是:为什么MSBuild会在我提供的配置中附加“|混合平台”?我怎样才能摆脱这种行为

我试过:

msbuild.exe/p:Configuration=Release“MySolution.sln”&退出%%ERRORLEVEL%%

但它说:

构建解决方案配置“发布|混合平台”

谢谢你的帮助,

Fred

符号
Something1 | Something2
用于
配置|平台
。因此,对于默认的C#项目,您将有可能的值,如
Debug | Any CPU
Release | Any CPU
。从您的片段来看,您似乎正在尝试指定配置和平台。如果是这样的话,你应该像这样做:

msbuild.exe /p:Configuration="Release",Platform="Windows Mobile 5.0 Pocket PC SDK (ARMV4I)" MySolution.sln
在这种情况下,您需要确保MySolution.sln中的所有项目都包含发布配置和定义的“Windows Mobile 5.0 Pocket PC SDK(ARMV4I)”


这是你需要的吗?我不确定,因为我对你的说法感到困惑,“我的解决方案中有发布Windows Mobile 5.0 Pocket PC SDK(ARMV4I)的目标”

符号
Something1 | Something2
用于
配置|平台
。因此,对于默认的C#项目,您将有可能的值,如
Debug | Any CPU
Release | Any CPU
。从您的片段来看,您似乎正在尝试指定配置和平台。如果是这样的话,你应该像这样做:

msbuild.exe /p:Configuration="Release",Platform="Windows Mobile 5.0 Pocket PC SDK (ARMV4I)" MySolution.sln
在这种情况下,您需要确保MySolution.sln中的所有项目都包含发布配置和定义的“Windows Mobile 5.0 Pocket PC SDK(ARMV4I)”


这是你需要的吗?我不确定,因为我对您的说法感到困惑:“我的解决方案中有发布Windows Mobile 5.0 Pocket PC SDK(ARMV4I)的目标”

谢谢您的帮助。确保每个项目都定义了“发布版”和“Windows Mobile 5.0 Pocket PC SDK(ARMV4I)”,这就成功了。感谢您的帮助。确保每个项目都定义了“发布版”和“WindowsMobile 5.0PocketPCSDK(ARMV4I)”,这就成功了。