Poul K. Sørensen
Poul K. Sørensen

Reputation: 17530

how to add a assembly from .net framework in the new csproj based dotnet core class libraries

I cant figure out how i add a assembly from .net framework in the new csproj based dotnet core class libraries.

enter image description here

There used to be a framework tab in add reference.

Upvotes: 0

Views: 409

Answers (1)

Chesare
Chesare

Reputation: 383

:I was able to add a reference to 'System.Runtime.Serialization.Json' by editing directly the Project file (csproj) and add the following lines:

<ItemGroup>
  <PackageReference Include="System.Runtime.Serialization.Json" Version="4.3.0" />
</ItemGroup>

After adding it, I notice it was added inside NuGet packages, so I remove the lines, then go to NuGet administratior, select the 'Search' tab and type the assembly name, when it appears, I selected it an click 'Install'

See how do I see the Nuget package

Have a great day!

Upvotes: 2

Related Questions