Build vs rebuild?
JetBrains Rider 2019.3.
Issue 1:
I have a simple project with one nuget dll. When I "Build" the dll is included in the output directory. When I "rebuild" (no "clean" first) it is not merely ignored, but any copy in the output directory is deleted. If I "Clean" or manually delete everything from the output directory, I have the same results - "build" includes the dll, "rebuild" does not. This is the opposite of what I would expect, namely, that "rebuild" would "rebuild" and include all source whether it was strictly required or not. I also would certainly not expect a required file to be deleted without also being replaced when rebuilding. What's the deal here?
Issue 2:
In this same project I have 2 plain text data files. Both are in the top level directory with "build action 'none' " and "copy if newer" set to copy them to the output directory. "Build" respects this and does not overwrite any newer copies that exist in the output directory. "Rebuild" always overwrites them. Should not "copy if newer" be respected in all cases?
Please sign in to leave a comment.
I have just gone through the same exercise but using MonoDevelop rather than Rider. Launched from MonoDevelop, "Rebuild" does NOT clobber my dll, but includes it in the output both for "build all" and "rebuild all".
I have also built/rebuilt directly from command line msbuild and in this case also my dll is included and existing newer files are NOT overwritten.
This is looking to me like bugs in Rider. ? Or is there something I'm missing?
Hello,
Could you please install the latest Rider version available and if the issue still occurs, collect the logs with right-click on the project and choosing Rebuild/Build with diagnostics. Attach the resulting logs with a new issue to our tracker. Thank you in advance!