Click here to Skip to main content
15,880,608 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello all,
am using Visual Basic .NET and C# in the same solution but different project and namespace. am trying to call a method from different project in VS 2015 and was working perfectly because I just added project reference. now I upgraded VS 2015 to VS 2019, here the old methods still working perfectly but I got problem when I created new methods in the same class as before, mean it doesn't recognize my new method like others which created by VS 2015. Here below i just added for giving u my code style .
VB
public ArrayList categoryList()
{
dInvent = new DInventory();
    return dInvent.GetData("GetCategoryName", true, "Category_Name");
}

public ArrayList ITList()
{
    dInvent = new DInventory();

    return dInvent.GetData("GetItemType", true, "Item_Type");
}
The First method (categoryList()) was created in VS 2015 and still working perfectly but I can not able to call the Second method (ITList()) , but i used the same procedure for calling both in VB.Net.

What I have tried:

I have tried to check all again even just trying to add a reference again but still i can't able to call a new method.
Posted
Updated 6-May-22 8:52am
v2

1 solution

It depends what type of Reference you added - remove the existing one, and add a Project reference instead of an Assembly / DLL reference.
That way, it should detect the change and update the other project when you have rebuilt the reference assembly.
 
Share this answer
 
Comments
Member 15627090 7-May-22 15:21pm    
Great, it works well now
OriginalGriff 7-May-22 17:07pm    
You're welcome!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900