Skip to content

Fix MSB4259 by removing whitespace in Google.Protobuf.Tools.props#41549

Open
colincmac wants to merge 1 commit intogrpc:masterfrom
colincmac:patch-1
Open

Fix MSB4259 by removing whitespace in Google.Protobuf.Tools.props#41549
colincmac wants to merge 1 commit intogrpc:masterfrom
colincmac:patch-1

Conversation

@colincmac
Copy link
Copy Markdown

Fixes #41548

Grpc.Tools 2.76.0 currently contains a property function invocation in:

build/_protobuf/Google.Protobuf.Tools.props
that triggers the following error:

Unexpected space at position "3" of property reference "$( [System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)../../tools) )". Did you forget to remove a space?

This PR removes the invalid whitespace from that property reference so that projects consuming Grpc.Tools load and build correctly under the newer MSBuild validation.

Reference: dotnet/msbuild PR introducing the validation/error: dotnet/msbuild#13076

…perty function (VS 18.5 Insiders / MSBuild)

Fixes grpc#41548

Grpc.Tools 2.76.0 currently contains a property function invocation in:

build/_protobuf/Google.Protobuf.Tools.props
that triggers the following error:

Unexpected space at position "3" of property reference "$( [System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)../../tools) )". Did you forget to remove a space?

This PR removes the invalid whitespace from that property reference so that projects consuming Grpc.Tools load and build correctly under the newer MSBuild validation.

Reference: dotnet/msbuild PR introducing the validation/error: dotnet/msbuild#13076
@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla bot commented Feb 3, 2026

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: colincmac / name: Colin McCullough (559a819)

@colincmac
Copy link
Copy Markdown
Author

The MSBuild changes that caused this error have been reverted as of this PR Release dotnet/dotnet#5204
Specifically here: dotnet/msbuild#13184
This still may be an issue going forward, so keeping this open for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MSB4259 in VS 18.5 Insiders / newer MSBuild: invalid property reference whitespace in Google.Protobuf.Tools.props (Grpc.Tools 2.76.0)

1 participant