Reference System.Configuration

Asked

Viewed 183 times

0

I’m trying to use the System.Configuration reference to finish integrating the instances of my code with a block .txt. However, I noticed that unlike the Visual Studios present in youtube videos, mine does not have the References tab below the Dependencies tab in the Solution Manager.

inserir a descrição da imagem aqui

Therefore, I tried to add another way by clicking on Project > Add reference, but I come across the situation that there is no reference to be added:inserir a descrição da imagem aqui

I can’t find anything about it on the Internet. Any of you have been there or would know how to help me?

If that is not the purpose of the forum, I apologize!

  • 2

    Knob direto no projeto> Add Reference > Aba Assemblies> Framework > Procure por System.Configuration, that would be it?

  • Doing this way, he takes me the same screen of the second image.

2 answers

2


Your project is . NET Core, so you need to add this reference by Nuget

PM> Install-Package CoreCompat.System.Configuration -Version 4.2.3-r4 -Pre
  • Linq, the addition of the reference occurred without errors. However, it continues the same way. It is necessary to perform some more action?

  • 1

    The using now?

  • Now it was! Just so I understand: it is not necessary to perform the procedures to add manually by Reference Manager, correct?

  • 1

    It’s not. . NET Core is different from . NET Framework.

0

Only you go in the Assemblies, and not in your own Solution:

In your project, References, Right-click, Add Reference:

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

  • Could you tell me how I get on that screen?

  • updated, if it’s the same screen you were on, I don’t know why the Assemblies options didn’t appear. give us more information about the project

  • My solution manager is different from yours, note the first image I attached to the post. :/

  • which version of visual studio is using ? which type of project are you creating ?

  • I’m using Visual Studio 2017 Enterprise, and the type of project I’m creating is Consoleapp.

  • See the LINQ response

Show 1 more comment

Browser other questions tagged

You are not signed in. Login or sign up in order to post.