Skip to content

Commit

Permalink
Using IndexOf as before gives errors with dotnet/msbuild#5502
Browse files Browse the repository at this point in the history
Using string seem to solve this issue for now
  • Loading branch information
hknielsen committed Jul 3, 2024
1 parent 3240393 commit bb8e241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traversal/Sdk/Traversal.props
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
-->
<TraversalProjectNames Condition=" '$(TraversalProjectNames)' == '' ">dirs.proj</TraversalProjectNames>

<IsTraversal Condition=" '$(IsTraversal)' == '' And $(TraversalProjectNames.IndexOf($(MSBuildProjectFile), System.StringComparison.OrdinalIgnoreCase)) >= 0 ">true</IsTraversal>
<IsTraversal Condition=" '$(IsTraversal)' == '' And '$(TraversalProjectNames.IndexOf($(MSBuildProjectFile), System.StringComparison.OrdinalIgnoreCase))' != '0' ">true</IsTraversal>

<!--
NuGet should always restore Traversal projects with "PackageReference" style restore. Setting this property will cause the right thing to happen even if there aren't any PackageReference items in the project.
Expand Down

0 comments on commit bb8e241

Please sign in to comment.