Unity project changes not in executable

I have a unity project that I am building to an executable (windows x86).

I have built the project previously and have made some changes to the project again that shows up in the unity editor and all is well with these changes.

These changes are however not showing up in the executable.

I have tried everything, rebuilding scripts, reload all, forcing the rebuilding of scripts through editor commands (Force script recompilation - Unity Engine - Unity Discussions) and nothing seems to force the rebuilding of the exe with all the needed changes.

Unless there is a compiler bug that is extremely specific, then unity must be using a cached version. I am seeing it as entirely possible that I may have to reinstall unity to ensure full a rebuild is done.

Also on c# - Unity project changes not in executable - Stack Overflow

Not sure if this is still the case but in the past you had to copy and paste your resources folder from the Unity directory into the exe directory (so the exe folder would have Assets\Resources*). If it’s code you’re updating then I’m not sure why it wouldn’t update - does deleting the exe force it to rebuild?

p.s. Copying/pasting might have just been for loading dynamic resources

Sanity check first, are you sure you are building the same executable that you are trying to run?

Create an empty new folder and build it in there, then use the explorer window that Unity opens automatically and try running that executable?

I worked this out eventually see stack overflow thread, yeah basically when unity builds it builds more than the .exe file you really need to copy across all of the <project_name>_Data folder to get all of the changes to go through.

I probably rebuilt my exe 20 times or more before realizing it was the <project_name>_Data folder that needed to be updated.