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

No way to prevent building when running from Cake #2

Open
agc93 opened this issue Jun 7, 2017 · 9 comments
Open

No way to prevent building when running from Cake #2

agc93 opened this issue Jun 7, 2017 · 9 comments
Assignees
Labels

Comments

@agc93
Copy link
Owner

agc93 commented Jun 7, 2017

For some reason, ForceBuild in the ClickTwiceManager is always set to true, so the call to GetTargets always uses the same PublishBehaviour

Issue reported by @phillipsj

@agc93 agc93 added the bug label Jun 7, 2017
@agc93 agc93 self-assigned this Jun 7, 2017
@agc93 agc93 changed the title No way to prevent building No way to prevent building when running from Cake Jun 7, 2017
@agc93
Copy link
Owner Author

agc93 commented Jun 7, 2017

Current plan is to add a new DoNotBuild() extension method as an opposite to ForceRebuild(), would that work @phillipsj?

@phillipsj
Copy link

phillipsj commented Jun 8, 2017 via email

@agc93
Copy link
Owner Author

agc93 commented Jun 8, 2017

Sweet. I'll implement that (and a quick fix for #1) tonight and hopefully release should be out shortly after :)

agc93 added a commit that referenced this issue Jun 8, 2017
@agc93
Copy link
Owner Author

agc93 commented Jun 8, 2017

@phillipsj Prerelease version 0.2.0-unstable0001 available on NuGet now with fix for this. Try it out, and if it works for you, I'll release a stable 0.1.2 package.

@phillipsj
Copy link

@agc93 When I call with DoNotBuild() set I get the following

Error:  Sequence contains no elements.

@agc93
Copy link
Owner Author

agc93 commented Jun 12, 2017

Oh damn sorry for dodgy patches @phillipsj I'll have a look and hopefully get these two cleaned up and working 😑

@phillipsj
Copy link

phillipsj commented Jun 12, 2017 via email

@agc93
Copy link
Owner Author

agc93 commented Aug 7, 2017

@phillipsj Sorry for the monster delay on this one, it slipped too far down the to-do list 😢 I'm finally back on a Windows machine and trying to reproduce this one now: I don't suppose the project you were using is on GitHub or anything?

I think I know what it is and it's probably a standard "ClickTwice is a bit special" affair, but need to verify..

@agc93
Copy link
Owner Author

agc93 commented Aug 7, 2017

@phillipsj I think I've found it actually. Can you try out unstable0003 and see if you get the same error?

I think it's just a directory not existing when I look for it

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

No branches or pull requests

2 participants