fsprojects / FAKE

FAKE - F# Make
https://fake.build
Other
1.28k stars 582 forks source link

msbuild parameter add code in command line #2754

Open DerKleinePunk opened 11 months ago

DerKleinePunk commented 11 months ago

C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\MSBuild.exe SimpleAppAndService.sln /t:Build /m /nodeReuse:False /tv:Current /v:m /flp1:LogFile=build.log;Verbosity=d;Append /p:RestorePackages=False /p:Configuration=Release /p:Platform=x86 /p:dummy=test"fun:quoteString@686" D:\Projects\DevOps\TestBuildPipeLine> "C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\MSBuild.exe" SimpleAppAndService.sln /t:Build /m /nodeReuse:False /tv:Current /v:m /flp1:LogFile=build.log;Verbosity=d;Append /p:RestorePackages=False /p:Configuration=Release /p:Platform=x86 /p:dummy=test"fun:quoteString@686" (In: false, Out: false, Err: false)

fun:quoteString@686 this added by Fake Why ?

Fake Version 6.0.0

Code in build.fs

let setParams (defaults: MSBuildParams) = 
    { defaults with
        ToolsVersion = Some("Current")
        Verbosity = Some(Minimal)
        FileLoggers = Some(loggerConfig)
        Targets = [mode]
        NodeReuse = false
        DisableInternalBinLog = true
        Properties =
            [
                "Configuration", buildMode
                "Platform", "x86"
                "dummy", "test"
            ]
    }

Fake.DotNet.MSBuild.build setParams (solutionFile)
github-actions[bot] commented 11 months ago

Welcome to the FAKE community! Thank you so much for creating your first issue and therefore improving the project!

poroburu commented 10 months ago

Seems related to: https://github.com/fsprojects/FAKE/issues/2738, which also adds fun:quoteString@686