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

Notification

Icon
Error

.Net Core Proto builds
coghlans
#1 Posted : Wednesday, August 26, 2020 2:06:29 PM(UTC)
Rank: Member

Groups: Registered
Joined: 7/26/2012(UTC)
Posts: 12
Location: United Kingdom

Thanks: 2 times
Could not make proto path relative (0, 0): ..\..\..\Common\Prod\Ingest.Proto\IngestSvcApis.proto: No such file or directory

Here is the csproj file

Code:

<Project Sdk="Microsoft.NET.Sdk">

    <PropertyGroup>
        <TargetFramework>netcoreapp3.1</TargetFramework>

        <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
    </PropertyGroup>

    <ItemGroup>
        <PackageReference Include="Google.Protobuf" Version="3.13.0" />
        <PackageReference Include="Grpc" Version="2.31.0" />
        <PackageReference Include="Grpc.Tools" Version="2.31.0">
            <PrivateAssets>all</PrivateAssets>
            <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
        </PackageReference>
        <PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="16.7.54" />
    </ItemGroup>

    <ItemGroup>
        <ProjectReference Include="..\..\..\Common\Prod\Ingest.Proto\Ingest.Proto.csproj" />
    </ItemGroup>

    <ItemGroup>
        <Protobuf Include="..\..\..\Common\Prod\Ingest.Proto\IngestMsg.proto" Link="IngestMsg.proto" ProtoCompile="false" GrpcServices="None" />
        <Protobuf Include="..\..\..\Common\Prod\Ingest.Proto\IngestSvcApis.proto">
            <Link>IngestSvcApis.proto</Link>
        </Protobuf>
    </ItemGroup>

</Project>


NCrunch 4.4.0.12
Visual Studio Pro 16.7.2
Remco
#2 Posted : Thursday, August 27, 2020 12:58:39 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,138

Thanks: 795 times
Was thanked: 1050 time(s) in 1000 post(s)
Hi, thanks for sharing this problem.

The Protobuf build items are a custom type that NCrunch hasn't been programmed to auto detect. To resolve this problem, you'll need to include these files using the 'Additional files to include' setting so they are copied to the NCrunch workspace.
1 user thanked Remco for this useful post.
coghlans on 8/27/2020(UTC)
coghlans
#3 Posted : Thursday, August 27, 2020 6:50:46 AM(UTC)
Rank: Member

Groups: Registered
Joined: 7/26/2012(UTC)
Posts: 12
Location: United Kingdom

Thanks: 2 times
Seems to have solved those projects that need "Proto" files.
Thanks
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.188 seconds.