Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/bash/18.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
MacOS使用bash和msbuild更改生成配置_Bash_Msbuild - Fatal编程技术网

MacOS使用bash和msbuild更改生成配置

MacOS使用bash和msbuild更改生成配置,bash,msbuild,Bash,Msbuild,我想用bash脚本构建发布配置。 我的问题是默认情况下它构建调试配置 如何将配置传递给bash命令行 目前我使用的是: find "MyUITestPATH" -regex '.*UITest.*\.csproj' -exec msbuild {} \; 它内置于调试配置中。我需要在版本配置中构建UITest。找到它: find "MyUITestPATH" -regex '.*UITest.*\.csproj' -exec msbuild {} -p:Configuration=Releas

我想用bash脚本构建发布配置。 我的问题是默认情况下它构建调试配置

如何将配置传递给bash命令行

目前我使用的是:

find "MyUITestPATH" -regex '.*UITest.*\.csproj' -exec msbuild {} \;
它内置于调试配置中。我需要在版本配置中构建UITest。

找到它:

find "MyUITestPATH" -regex '.*UITest.*\.csproj' -exec msbuild {} -p:Configuration=Release \;
找到它:

find "MyUITestPATH" -regex '.*UITest.*\.csproj' -exec msbuild {} -p:Configuration=Release \;

调用msbuild.exe时,可以传入命令行参数。

要设置的命令行参数是一个属性(即
-property
,简称
-p
)。 在您的情况下,您将指定:

-p:Configuration=Release

调用msbuild.exe时,可以传入命令行参数。

要设置的命令行参数是一个属性(即
-property
,简称
-p
)。 在您的情况下,您将指定:

-p:Configuration=Release