Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Issue when building project with protobuf files
Joshlo
#1 Posted : Wednesday, December 11, 2019 9:38:19 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 12/11/2019(UTC)
Posts: 2
Location: Denmark

Thanks: 1 times
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
Remco
#2 Posted : Wednesday, December 11, 2019 11:10:51 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,144

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
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.
1 user thanked Remco for this useful post.
Joshlo on 12/11/2019(UTC)
Joshlo
#3 Posted : Wednesday, December 11, 2019 12:04:00 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 12/11/2019(UTC)
Posts: 2
Location: Denmark

Thanks: 1 times
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
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.027 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download