Skip to content

Commit c790492

Browse files
authored
Merge pull request #3082 from rainersigwald/patch-2
MSBuild: Property function returns are escaped
2 parents 1bcff52 + d19ad0c commit c790492

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/msbuild/property-functions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ ms.workload:
1616
In the .NET Framework versions 4 and 4.5, property functions can be used to evaluate MSBuild scripts. Property functions can be used wherever properties appear. Unlike tasks, property functions can be used outside of targets, and are evaluated before any target runs.
1717

1818
Without using MSBuild tasks, you can read the system time, compare strings, match regular expressions, and perform other actions in your build script. MSBuild will try to convert string to number and number to string, and make other conversions as required.
19+
20+
String values returned from property functions have [special characters](msbuild-special-characters.md) escaped. If you want the value to be treated as though it was put directly in the project file, use `$([MSBuild]::Unescape())` to unescape the special characters.
1921

2022
## Property function syntax
2123

0 commit comments

Comments
 (0)