Hello Zishan,
The changes in SharedProject should be immediately available to Project1. May I ask, if you try to reproduce your issue again, I mean create another new project > Add Shared Project > Add references > Add a new .cs file in Shared Project, will this issue appear again?
This will be useful to narrow down this issue, if this issue appears(always) again, the cause should be from VS, some extensions, impacts from caches and so on. If this issue doesn’t appear, or appear suddenly or appear only on a specified project, there should be some special reasons.
I checked on my side by using VS2017 and VS2019, this issue didn’t appear. However, I noticed that once I unloaded the project and opened .csproj file then added a new .cs(class) file(without saving this file and after that I closed the .cs file) in Shared Project, after that I reloaded main project but the class and methods were not visible to main project immediately. This may be caused by not syncing(save, configure, update…) and I resolved it by changing something in newly created .cs file > saved it > unloaded main project > reloaded it. And I didn’t reproduce this issue for the second time.
I may share you some suggestions:
- Update VS2017 to the latest version(or try to use VS2019 Community which Viorel mentioned above).
- Repair VS2017.
- Try to disable some related extensions and check again.
- Create a new project and test again.
Sincerely,
Tianyu
- If the answer is helpful, please click "Accept Answer" and upvote it.
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.