简体   繁体   中英

Visual Studio C# Project Reference not working

I created a solution in VS with two projects, one "Core" is a class library project, the other is my app project. I added a class NumberUtil (uses namespace Core.Util) and want to reference it in the app project so I choose r-click, add ref... pick Projects and add my Core project as a reference. The ref to Core appears under References in the project explorer but if I try to use the NumberUtil in a class in my app project it can't find it.

Anyone know what I'm doing wrong here? I'm not new to programming but new to VS and C#.

Did you use the using Core.Util instruction? Normally when you try to use the class, the VS will propose the using instruction for you. You can also click on the code where the error is and press alt+shift+F10.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM