You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$(WixTasksPath) is not unescaped in this position. Others (like printing a message) work.
Description
The problem is that we don't know a workaround which works "properly" in all situations we have cross platform unit tests and they start failing as soon as we disable escaping for / or \, I guess this is due to the related issues.
What is the proper way to get a string into a property over the command line which works for all special and non-special characters?
Environment data
msbuild /version output:
$ dotnet msbuild /version
Microsoft (R) Build Engine version 15.9.20+g88f5fadfbe for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
15.9.20.62856
OS info: Windows 10
If applicable, version of the tool that invokes MSBuild (Visual Studio, dotnet CLI, etc):
FAKE
Since this behaviour has been there forever, changing it could break existing code. The workaround would be to manually unescape the string in the UsingTask via the [MSBuild]::Unescape intrinsic property function.
Related
#4086
#3468
#2178
Steps to reproduce
Originally reported here:
fsprojects/FAKE#2392
Project file
Command line
Expected behavior
$(WixTasksPath)
is properly unescaped, according to https://docs.microsoft.com/en-us/visualstudio/msbuild/msbuild-special-characters?view=vs-2017Actual behavior
$(WixTasksPath)
is not unescaped in this position. Others (like printing a message) work.Description
The problem is that we don't know a workaround which works "properly" in all situations we have cross platform unit tests and they start failing as soon as we disable escaping for
/
or\
, I guess this is due to the related issues.What is the proper way to get a string into a property over the command line which works for all special and non-special characters?
Environment data
msbuild /version
output:OS info: Windows 10
If applicable, version of the tool that invokes MSBuild (Visual Studio, dotnet CLI, etc):
FAKE
/cc @vbfox
The text was updated successfully, but these errors were encountered: