0

After adding to .csproj

  <PropertyGroup>
    <CompileDependsOn>$(CompileDependsOn.ToString())</CompileDependsOn>
  </PropertyGroup>

I'm getting error MSB4057: The target does not exist in the project.

error MSB4057: The target "CheckFileSystemCaseSensitive;
...other stuff...
;" does not exist in the project.

Nevertheless string between quotes looks correct.

Edit: Looks like duplication of strange behavior of Property functions

CrazyMORF
  • 268
  • 2
  • 8

1 Answers1

0

Like in accepted answer from https://stackoverflow.com/a/10024381/915546 solution is to use [MSBuild]::Unescape function:

  <PropertyGroup>
    <CompileDependsOn>$([MSBuild]::Unescape(CompileDependsOn.ToString()))</CompileDependsOn>
  </PropertyGroup>
CrazyMORF
  • 268
  • 2
  • 8