Why can’t my .net console app framework reference my .net Standard project?

iqworks Information Quality Works 196 Reputation points
2022-05-11T14:23:18.917+00:00

I was following this video video “ https://www.youtube.com/watch?v=Ph_jSGq6vIA at 16.49 and got stuck. I Cannot see why this is happening. I enclose 2 attatchments

Thanks for any suggestions or advice
201066-net-standard1.png201111-net-standard2.png

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,079 questions
0 comments No comments
{count} votes

Accepted answer
  1. Zhi Lv - MSFT 31,756 Reputation points Microsoft Vendor
    2022-05-12T02:45:56.393+00:00

    Hi @iqworks Information Quality Works ,

    According to the screenshot, I create a sample to test it, everything works well. check this result:

    201205-image.png

    You can try to clean and rebuild the application or create a new solution and test it.

    If still not working, can you share the relate projects via Github or OneDrive. So that we can check it and help you find the issue.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best regards,
    Dillion


4 additional answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 53,501 Reputation points
    2022-05-11T15:31:37.877+00:00

    you don't show the operator source code, so we don't know what namespace it used.

    0 comments No comments

  2. iqworks Information Quality Works 196 Reputation points
    2022-05-11T19:24:49.487+00:00

    Here it is, thanks!!201138-net-standard3.png

    0 comments No comments

  3. Bruce (SqlWork.com) 53,501 Reputation points
    2022-05-11T20:54:28.247+00:00

    the namespace looks ok.

    probably the MbsaConsoleUI project does not have a reference to the MbsaDotNetStandard project.

    0 comments No comments

  4. iqworks Information Quality Works 196 Reputation points
    2022-05-11T22:30:06.057+00:00

    it does have a reference to it, look at the 2nd image under the console project and you can see it under references.
    thanks

    0 comments No comments