Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Is there any way to use only .NET Standard nuget package and also keep it referenced with .NET Framework project?

$
0
0

I have created server in C# Grpc and my main project is written in .NET Framework. So I created .NET Standard library which I referenced in my .NET Framework project. I got few errors but I quickly fixed them by adding to target frameworks version of my .NET Framework main project. Then I tried installing Grpc.Net.Client 2.34.0 nuget package on the .NET Standard library but I got an error that Grpc.Net.Client is available only for .NET Standard and it's not available for .NET Framework and because of that I cannot use their library in my .NET Standard project (I get an error when I try to add "using Grpc.Net.Client"). Is there any way to keep .NET Standard library referenced in .NET Framework project and still be able to use only .NET Standard nuget packages? Or I will have to use different server?

<PropertyGroup><TargetFrameworks>netstandard2.1;net472</TargetFrameworks></PropertyGroup>

Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>