Build/Test Issues

.Net Core Proto builds

Started by coghlans on 4,188 views

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

Here is the csproj file


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

Post a reply

Log in to reply.