Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why used Rebuild task instead Build in build.template file? #258

Open
Chicker opened this issue Jun 10, 2016 · 2 comments
Open

Why used Rebuild task instead Build in build.template file? #258

Chicker opened this issue Jun 10, 2016 · 2 comments

Comments

@Chicker
Copy link

Chicker commented Jun 10, 2016

Hi, all!

Maybe answer will be obvious, but I can't understand why in the target Build in the file build.template, used task Rebuild instead Build for build solution (project).

As far as I know, only Build task allows incremental build that gives us the big boost in the build speed.

@adamchester
Copy link

Good question. I don't have the answer, but here's my thoughts.

Maybe rebuild is considered more "safe", and I was OK with that before I started using ionide plugins to build from my editor.

These days, I think the default should be build (incremental) unless you are doing a release (where perhaps rebuild is more appropriate).

@Chicker
Copy link
Author

Chicker commented Jun 11, 2016

About the task Rebuild in MSDN documentation says: initially, will delete all temporary files and artifacts, and then will build the project, include recompilation of all the source files.

In practice, in most cases, it is recommended to run Build project as it runs much faster. And just in case "strange" errors when building, it is recommended to try Rebuild, because temporary files are cleared, due to which the project could fail build.

So, in my opinion, would be perfect to make the following changes:

  1. In the target Build to set the task to Build. In 99% of cases, it will be OK and faster.
  2. Add the target Rebuild, where to set the taskRebuild.

Actually, it is done in MS Visual Studio, where we have two items in the application build menu.

If there is no objection, I can make a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants