0
votes

I'm following this article: https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-dotnet-standard-getstarted-receive-eph.

The article tells you to add the following to the project.json file:

Add the string "portable-net45+win8" to the "imports" declaration, within the "frameworks" section like this:

 "frameworks": {
   "netcoreapp1.0": {
     "imports": [
       "dnxcore50",
       "portable-net45+win8"
     ]
   }
 }

The problem is that with the new versions of the tooling (I'm using VS 2017), there is no project.json file in the .NET Core solution.

How is this done now?

1

1 Answers

1
votes

When you migrate to .csproj you'll find the following:

<PackageTargetFallback>$(PackageTargetFallback);dotnet5.6;dnxcore50;portable-net45+win8</PackageTargetFallback>

Perform the migration from project.json with dotnet migrate and it'll be done for you.