I got it working on VS 2019 for Mac by adding this to my csproj file.

  <Target Name="Protobuf_Compile_Before_AssemblyReferences"
BeforeTargets="ResolveAssemblyReferences">
    <CallTarget Targets="_Protobuf_Compile_BeforeCsCompile" />
  </Target>

This solution did not work for .net standard libraries though, only .net
core 3 targets.

On Mon, Jul 15, 2019 at 7:28 AM Jan Tattermusch <[email protected]>
wrote:

> For VS on windows, you need to launch using this script:
> https://github.com/grpc/grpc-dotnet/blob/master/startvs.cmd Perhaps a
> similar trick would be needed for VS for Mac.
>
> On Mon, Jul 15, 2019 at 4:26 PM Jan Tattermusch <[email protected]>
> wrote:
>
>> Hello,
>>
>> I had a similar problem (VS Code intellisense not working when using .NET
>> Core 3 preview). I think it boils down to the omnisharp's .NET core version
>> being different to the .NET core version of your project. Feel free to post
>> the solution if you resolve it.
>>
>> On Wed, Jul 10, 2019 at 10:11 PM <[email protected]> wrote:
>>
>>> Hello,
>>>
>>> I am developing an application using GRPC in .NET Core 3 (Preview) and
>>> it is very difficult to develop the service implementations because I have
>>> no intellisense. The using statements are not resolving either. I have
>>> verified Grpc.Tools is generating the source code in /obj/debug and the
>>> application does compile fine, but the IDE is not including these generated
>>> files are part of its source files.
>>>
>>> My csproj item group looks like this:
>>>
>>> <ItemGroup>
>>> <PackageReference Include="Grpc.AspNetCore.Server" Version="0.1.21-pre1"
>>> />
>>> <PackageReference Include="Google.Protobuf" Version="3.8.0" />
>>> <Protobuf Include="Grpc\Protos\*.proto" GrpcServices="Server" />
>>> <Content Include="@(Protobuf)" LinkBase="" />
>>> <PackageReference Include="Grpc.Tools" Version="1.22.0" PrivateAssets=
>>> "All" />
>>> </ItemGroup>
>>>
>>> I have the same issue with all the demo applications I've downloaded,
>>> and even the GRPC Template. I am wondering if it's an issue with just the
>>> Mac version of VS 2019 or am I missing something?
>>>
>>> Thanks in advance.
>>> -Mike
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "grpc.io" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/grpc-io/d7f1aace-6a2f-4643-b9a5-01e1401a068f%40googlegroups.com
>>> <https://groups.google.com/d/msgid/grpc-io/d7f1aace-6a2f-4643-b9a5-01e1401a068f%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>> --
>>
>> Jan
>>
>
>
> --
>
> Jan
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/CACjJBY7aMZOFQxb0qWyqKsnHRw7gt3dFU%2Bqz18d4SOdCLy8j%2Bw%40mail.gmail.com.

Reply via email to