You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I build this on linux using donet build I get errors about MDouble2D not being defined. The errors are from generated .cs files which reference the MDouble2D message. This is weird since the same project build on Windows 10 without issues.
I had a look at the obj/debug/netstandard2.0 folder in the project folder and I noticed that for every compiled proto file there was a corresponding .cs file, except for the generated files for MDouble2D there were 2 .cs files instead of one namely: MDouble2d.cs and MDouble2D.cs. The first file MDouble2d.cs is empty and the other was correctly generated.
I checked the output of dotnet build and I saw the following:
Protobuf_ReconcileOutputs:
Creating "obj/Debug/netstandard2.0//MDouble2d.cs" because "AlwaysCreate" was specified.
This file is fed to csc when doing dotnet build instead of the correctly generated MDouble2D.cs, I have the same issue for MDouble3D. It seems that having a number in the filename triggers this issue.
The text was updated successfully, but these errors were encountered:
What version of gRPC and what language are you using?
1.19.0 C#
What operating system (Linux, Windows,...) and version?
Linux (Debian 9)
What runtime / compiler are you using (e.g. python version or version of gcc)
.NET Core SDK 2.2.101
What did you do?
We have the following message defined in a file named m_double_2d.proto:
And some more proto files that we need in a project. Using these steps I created the following csproj:
When I build this on linux using donet build I get errors about MDouble2D not being defined. The errors are from generated .cs files which reference the MDouble2D message. This is weird since the same project build on Windows 10 without issues.
I had a look at the obj/debug/netstandard2.0 folder in the project folder and I noticed that for every compiled proto file there was a corresponding .cs file, except for the generated files for MDouble2D there were 2 .cs files instead of one namely: MDouble2d.cs and MDouble2D.cs. The first file MDouble2d.cs is empty and the other was correctly generated.
I checked the output of dotnet build and I saw the following:
This file is fed to csc when doing dotnet build instead of the correctly generated MDouble2D.cs, I have the same issue for MDouble3D. It seems that having a number in the filename triggers this issue.
The text was updated successfully, but these errors were encountered: