Easy Hack to get a .NET Standard REST API

Everyone’s favorite Visual Studio Feature! LINKED ITEMS! 😊

I literally generated a client using the ‘Add REST API Client’ in the .NET Framework project and the PCL project and then linked them into a .NET Standard project and neither codebases threw compiler errors.

However, this is no reason for the good folks on the Visual Studio tooling for Azure team not to update the ‘REST API Client’ wizard to support .NET Standard assemblies. Clearly it would be very, very close to a recompile.

You just need to add a few NuGet packages and you’re all set!

  • Microsoft.Rest.ClientRuntime v2.3.10
  • Newtonsoft.Json v.10.0.3

dotnetstd_restapi

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s