Trouble using ConfigurationManager in C#

Hassan Usman 0 Reputation points
2023-09-10T19:05:24.7333333+00:00

I am having difficulty using ConfigurationManager in my C# code. I have tried various solutions but have not been successful. I am also unable to add a reference. Can someone provide guidance on how to use ConfigurationManager properly?Screenshot 2023-09-11 at 12.04.58 AM

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,080 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
9,043 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Hassan Usman 0 Reputation points
    2023-09-12T07:27:37.1733333+00:00

    I've found the solution just hardcode the path of within the project put your text file in bin folder of the project and change it's extension to .vs and hardcode like this'./Emptytextfile.vs'

    0 comments No comments