-
Notifications
You must be signed in to change notification settings - Fork 583
Description
Description
MSBuild.build adds always a bad string at the end of properties.
Like: /p:foo=bar<fun:quoteString@686>
Repro steps
path
|> MSBuild.build (fun o ->
{ o with
Properties = [
"Configuration", "Release"
"DeployOnBuild", "True"
"DeployDefaultTarget", "WebPublish"
"WebPublishMethod", "FileSystem"
"PublishUrl", __SOURCE_DIRECTORY__ </> "publish" </> name
"Version", version
]
})Expected behavior
"C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\MSBuild.exe" MyProject.csproj /m /nodeReuse:False /p:RestorePackages=False /p:Configuration=Release /p:DeployOnBuild=True /p:DeployDefaultTarget=WebPublish /p:WebPublishMethod=FileSystem /p:PublishUrl=publish%5CMyProject /p:Version=1.1.0-beta
Actual behavior
"C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\MSBuild.exe" MyProject.csproj /m /nodeReuse:False /p:RestorePackages=False /p:Configuration=Release /p:DeployOnBuild=True /p:DeployDefaultTarget=WebPublish /p:WebPublishMethod=FileSystem /p:PublishUrl=publish%5CMyProject /p:Version=1.1.0-beta<fun:quoteString@686>
Known workarounds
Add a dummy property at the end.
Related information
- Windows 11
- .NET 6
- FAKE 6