locked
reference in .net core project RRS feed

  • Question

  • User450763225 posted

    Hi, I have customized folders added to the .Net core project, however, when I reference in class, it shows error, I am not sure what causes the issue, please advise.

    reference error

    Friday, August 7, 2020 2:55 PM

Answers

  • User475983607 posted

    sdnd2000

    Hi, I just created the folders in the same project, what else project reference I need ?

    Folder are irrelevant.  The namespace is what matters. 

    If all the code is in the same project then the using statement does not match the namespace.  Open the class files and look at the namespace.  This namespace is what's needed in the using statement.  Please see the C# programming guide.

    https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/namespaces/

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, August 7, 2020 3:49 PM

All replies

  • User475983607 posted

    There's not enough information to give you an accurate solution.  Either you are missing a project reference or the using statements are simply wrong.  

    Friday, August 7, 2020 3:03 PM
  • User450763225 posted

    Hi, I just created the folders in the same project, what else project reference I need ?

    Friday, August 7, 2020 3:40 PM
  • User1358036820 posted

    Can you show the solution explorer as well, along with one of the custom classes open?

    Friday, August 7, 2020 3:42 PM
  • User450763225 posted

    yes, please scroll the image to the right. 

    Friday, August 7, 2020 3:47 PM
  • User475983607 posted

    sdnd2000

    Hi, I just created the folders in the same project, what else project reference I need ?

    Folder are irrelevant.  The namespace is what matters. 

    If all the code is in the same project then the using statement does not match the namespace.  Open the class files and look at the namespace.  This namespace is what's needed in the using statement.  Please see the C# programming guide.

    https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/namespaces/

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, August 7, 2020 3:49 PM