Skip to content

Grpc.Tools: Accented characters in nuget path breaks c# grpc tool compiler #17995

@ludydoo

Description

@ludydoo

@kkm000

1.18.0. C#

Windows 10 Pro x64

Reproduce :

  1. Create a .proto file in a project (Follow "Greeter" example)
  2. Add a nuget.config file and specify the globalPackagesFolder to a path containaing either a space or an accented character (éèàé...)
  3. Restore packages
  4. Build.

What did you expect to see?

Successful build

What did you see instead?

--grpc_out could not find the path specified

"C:\Users\Dré Lot\.nuget\packages\grpc.tools\1.18.0\tools\windows_x64\protoc.exe" --proto_path="C:\Repositories\MyRepo" --grpc_out="C:\Repositories\MyRepo\MyRepo.Server" --plugin=protoc-gen-grpc="C:\Users\Dré Lot\.nuget\packages\grpc.tools\1.18.0\tools\windows_x64\grpc_csharp_plugin.exe" "C:\Repositories\MyRepo\MyRepo\book.proto

This is what the Task executes. If I run this myself in a cmd, it works. For some reason, the task itself fails with --grpc-out The path specified could not be found

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions