Closed sideeffffect closed 7 years ago
build
rather than rebuild
. For releases etc, rebuild
with full clean is probably best.yep at least for proper release we need rebuild
so in that case let's still keep Build
, but make sure Release
depends on Clean
as first
fixed. can we merge this now?
Point of order, invoking the "clean" target followed by the (newly edited) "build" target is not the same as telling MSBuild to rebuild
the solution. My suggestion, if we're settled on not always rebuilding, is to create a "rebuild" FAKE target, which does tell MSBuild to rebuild
the solution. Then have the "release" target depend on the (to be created) "rebuild" target.
hmm, are we sure? if the solution is Build
able from zero, calling first Clean
and then Build
should yield the same result as just Rebuild
. That would mean Rebuild
is redundant here.
a question with answers on StackOverflow
ping :)
My suggestion, if we're settled on not always rebuilding, is to create a "rebuild" FAKE target, which does tell MSBuild to rebuild the solution. Then have the "release" target depend on the (to be created) "rebuild" target.
+1
create a "rebuild" FAKE target ... have the "release" target depend on the (to be created) "rebuild" target
but Release
already depends on Clean
-- what difference would adding Rebuild
make?
@tpetricek could you please have a look at this?
@sideeffffect @pblasucci Is this ready to go in?
@dsyme I think we're still trying to come to an agreement. Two options currently on the table:
Rebuild
action (for "Release" builds)versus
Clean
+ MSBuild Build
(again, for "Release" builds)Personally, I'm not really concerned either way (Project Scaffold was always meant to be learning aide -- not an all-encompassing tool). But @forki raised the point and I wanted to give it full "airing". Especially, since there are some subtle differences between the two sequences, as seen here.
What are your thoughts?
@dsyme from my side we can merge
@pblasucci I've found a SO answer that basically says that my changes won't hurt -- Rebuild = Clean + Build (step by step, project by project) my changes just Clean everything first and only after that Build everything
Gonna merge this because -- hey -- we can always patch it later if there are issues (and folks are meant to be customizing their scripts anyway).
thanks a lot @pblasucci if some issues happen to turn out, I would be glad to help fix them
Why is it using build target instead of rebuild?