BadmintonCat
BadmintonCat

Reputation: 9586

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#.

Upvotes: 1

Views: 4228

Answers (1)

ionutioio
ionutioio

Reputation: 238

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.

Upvotes: 1

Related Questions