diff --git a/scripts/make.fsx b/scripts/make.fsx index b8114dba6..bc15f2ca7 100755 --- a/scripts/make.fsx +++ b/scripts/make.fsx @@ -157,7 +157,7 @@ let BuildSolution if buildTool.StartsWith "dotnet" then sprintf "--configuration %s" (binaryConfig.ToString()) else - sprintf "/p:Configuration=%s" (binaryConfig.ToString()) + sprintf "-property:Configuration=%s" (binaryConfig.ToString()) let defineConstantsFromBuildConfig = match buildConfigContents |> Map.tryFind "DefineConstants" with @@ -191,11 +191,11 @@ let BuildSolution | "xbuild", _ -> // xbuild: legacy of the legacy! // see https://github.com/dotnet/sdk/issues/9562 - sprintf "%s /p:DefineConstants=\"%s\"" configOption (String.Join(semiColonEscaped, defineConstants)) + sprintf "%s -property:DefineConstants=\"%s\"" configOption (String.Join(semiColonEscaped, defineConstants)) | builtTool, Misc.Platform.Windows when buildTool.ToLower().Contains "msbuild" -> - sprintf "%s /p:DefineConstants=\"%s\"" configOption (String.Join(semiColon, defineConstants)) + sprintf "%s -property:DefineConstants=\"%s\"" configOption (String.Join(semiColon, defineConstants)) | _ -> - sprintf "%s /p:DefineConstants=\\\"%s\\\"" configOption (String.Join(semiColon, defineConstants)) + sprintf "%s -property:DefineConstants=\\\"%s\\\"" configOption (String.Join(semiColon, defineConstants)) else configOption let buildArgs = sprintf "%s %s %s %s"