'Any change in existing dot net core console app results in change in dll but not in exe

I have an existing .net core console app. Now I need to make some changes in one of its .cs file. I made the changes and clean and re-build the solution. and then Published it. Inside the published folder I observed that only dll of that program is updated but not exe. I ran the exe to see if made change is effective or not and found that change is there. My question is: is there a chance that actual change goes to dll and exe makes use of that? And I need to check-in only dll this time as its the only one which is actually updated and no need to check-in exe as its has not changed in actual. Note: I've selected Deployment Mode as Self-Contained so publishing the app generates both dll and exe.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source