Last post May 29, 2017 06:29 AM by kaushalparik27
May 02, 2017 10:03 AM|Jack Hunt|LINK
I have one solution Main.sln , in this there few projects 1,2 and 3.
i add reference of 1 and 2 into 3 and when i find reference of my function (in project 1) from project 3 and project 1 , bnoth give me diff. result.
May 02, 2017 12:18 PM|kaushalparik27|LINK
How did you add reference in Project 3? Did you try adding Project Reference and then do a clean rebuild?
May 03, 2017 09:18 AM|Eric Du|LINK
Hi Jack Hunt,
After read your description, I am not clear you how to add the reference and you function code, please give us more detailed description and code. This will better help you!
Also I hope you could add a breakpoint at the beginning of the function, check it how to run from project3 and project1.
May 29, 2017 05:41 AM|Jack Hunt|LINK
Thanks Kaushal and Eric for replying me.
1) I just right click on project 3 and select option add reference.
2) Select reference from Solution option
3)Project 1 and Project 2 and Add it.
4) Build the solution and its succeed.
1) I done want to debug my code, there is not any issue in debug.
2) Simply i add reference of project 1 and 2 into project 3 by add reference option and i also find respective dlls into project 3 bin folder. its fine there are not any issue.
But following is the scenario at which i am confused on behaviour of visual studio.
1)function called SUMProj2() defined in project 2 and used in project 3. Now i go to the function defenation (Project2) and using shift+F12 try to find at where function is used. Its give 5 result (1 is defination and at 4 place its used)
2)Now i open the project 3 (at where function used) and using shift+F12 try to find at where function is used and i got different result then point 1.
I think it should be give me same result always.
May 29, 2017 06:29 AM|kaushalparik27|LINK
I suggest you do a clean and then rebuild and notice the bin folder; check out the date and time of the DLLs, are they being updated when you do a clean rebuild?