buildDotnetModule: explicitly set UseAppHost to true

On macOS, the native executable is not generated by default
on Catalina and above. See https://github.com/dotnet/sdk/issues/10780
This commit is contained in:
mdarocha 2022-07-04 11:06:16 +02:00
parent 3d79e4871b
commit 98db245db7
2 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,7 @@ dotnetBuildHook() {
-p:BuildInParallel=$parallelBuildFlag \
-p:ContinuousIntegrationBuild=true \
-p:Deterministic=true \
-p:UseAppHost=true \
--configuration "@buildType@" \
--no-restore \
${versionFlag-} \

View File

@ -11,6 +11,7 @@ dotnetInstallHook() {
dotnet publish "$project" \
-p:ContinuousIntegrationBuild=true \
-p:Deterministic=true \
-p:UseAppHost=true \
--output "$out/lib/${pname}" \
--configuration "@buildType@" \
--no-build \