question

iqworksInformationQualityWorks-8937 avatar image
0 Votes"
iqworksInformationQualityWorks-8937 asked iqworksInformationQualityWorks-8937 commented

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

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


dotnet-aspnet-core-mvc
net-standard1.png (107.5 KiB)
net-standard2.png (181.9 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ZhiLv-MSFT avatar image
0 Votes"
ZhiLv-MSFT answered iqworksInformationQualityWorks-8937 commented

Hi @iqworksInformationQualityWorks-8937,

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


image.png (209.0 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Cant believe I didnt think about cleaning the solution. Its one of my go to's. That fixed it, thank you so much Dillion. Didnt mean to have you do that work to only see it works. Sorry. Should have tried more before I posted it.
Thanks again!!!

0 Votes 0 ·
Bruce-SqlWork avatar image
0 Votes"
Bruce-SqlWork answered

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

iqworksInformationQualityWorks-8937 avatar image
0 Votes"
iqworksInformationQualityWorks-8937 answered

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



net-standard3.png (163.3 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Bruce-SqlWork avatar image
0 Votes"
Bruce-SqlWork answered

the namespace looks ok.

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



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

iqworksInformationQualityWorks-8937 avatar image
0 Votes"
iqworksInformationQualityWorks-8937 answered

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.