Build/Test Issues

Issue when building project with protobuf files

Started by Joshlo on 2,069 views

Hi,

I have 3 projects, a server, a client and a contract project.

The server and client both inheriets from contract that contains a folder "Protos" and a file "Request.proto" and the files build action is set to "Protobuf compiler" and it is set to generate both client and server.

When I try to build the project through ncrunch to run the tests it fails on the contract project saying "Protos\Request.proto (0, 0): No such file or directory".

Any idea on how I can get it to build??

I'm running VS 16.4.0 and ncrunch 4.1.0.1
dotnet core 3.1

Best regards
Kenneth

Edited

Hi Kenneth,

Can you confirm whether these proto files are included in the projects themselves? If not, does adding them make any difference?

Something you can also use if you don't want to add them is to try including them using the 'Additional files to include' project-level configuration setting.
Hi,

In the project file it said

<ItemGroup>
<None Remove="Protos\Request.proto" />
</ItemGroup>

so I changed "Remove" to "Include" and now it works.

Thanks

Best regards
Kenneth

Post a reply

Log in to reply.