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

MSBuildHelper: new property ToolPath #1703

Merged
merged 1 commit into from
Oct 28, 2017

Conversation

0x53A
Copy link
Contributor

@0x53A 0x53A commented Oct 5, 2017

I need CI, CI, CI is what I need 💲 💵 💲

@baronfel
Copy link
Contributor

baronfel commented Oct 5, 2017

Love it. Slight nitpick: maybe expand your comment on toolpath to tell the user that the value can be a path and if so the executable will be inferred according to the rules you've used? One thing I regret from the old msbuild resolution is that the rules were documented in internal code comments but not surfaced to the users.

@0x53A
Copy link
Contributor Author

0x53A commented Oct 5, 2017

I actually don't like Toolpath accepting a directory. The user should always provide the full path to the exe.

I only did it this way because the existing ToolPaths in the code base are inconsistent between dir and file, and because the environment variable MSBuild also accepts both.

@0x53A 0x53A changed the title MSBuildHelper: new property ToolPath [Ready] MSBuildHelper: new property ToolPath Oct 6, 2017
@0x53A
Copy link
Contributor Author

0x53A commented Oct 6, 2017

/poke @matthid

@matthid
Copy link
Member

matthid commented Oct 6, 2017

?

Is there an open question or something?
Will take a look when I have some time ;)

@matthid
Copy link
Member

matthid commented Oct 15, 2017

Well, it looks good, but the same changes have to go into the FAKE 5 module (or only there actually): here

The MsBuildHelper is obsolete (yes we forgot to add the obsolete attributes - sorry about that, please feel free to add them ;))

@matthid matthid added the waiting for author Some information or action was requested and it needs to be addressed. Or a response from author label Oct 15, 2017
@matthid
Copy link
Member

matthid commented Oct 15, 2017

And sorry for the very long delay ...

@0x53A 0x53A changed the title [Ready] MSBuildHelper: new property ToolPath [Wip] MSBuildHelper: new property ToolPath Oct 16, 2017
@0x53A
Copy link
Contributor Author

0x53A commented Oct 16, 2017

Well, it looks good, but the same changes have to go into the FAKE 5 module (or only there actually): here

Q:

Will there be another release for Fake 4.x? If yes, I would like this change to be included.
If no, then whatever.

The MsBuildHelper is obsolete (yes we forgot to add the obsolete attributes - sorry about that, please feel free to add them ;))

Will do

And sorry for the very long delay ...

No problem, I just took the version from the CI server. IF I had really needed it, I would have pinged you again ;D

Thanks!

@matthid
Copy link
Member

matthid commented Oct 16, 2017

Will there be another release for Fake 4.x? If yes, I would like this change to be included.
If no, then whatever.

@forki likes to do them for hotfixes if needed. I personally have technical problems releasing FAKE 4 (something always fails and I basically have given up). But I also don't really see the reason, if you ignore the obsolete attributes then the v5 version of the nuget package should be exactly the same, so as long as you don't upgrade to new API (ie ignore the obsolete warning) you are on the stable branch.
Maybe you can hook in --nowarn:44 or something to even get rid of the warnings.
If we broke something with the v5 package in the OLD API we need to consider to revert that change.

I would have pinged you again ;D

Yes sometimes that is indeed needed, thanks ;)

@0x53A
Copy link
Contributor Author

0x53A commented Oct 25, 2017

but the same changes have to go into the FAKE 5 module

done, I changed both.

The MsBuildHelper is obsolete

added attribute.


I also changed my opinion regarding allowing directories:

In my opinion the user should always specify the full path, guessing an executable name doesn't make much sense.

So I removed that logic.

What do you think? If you really want, I can add it back.

@0x53A 0x53A changed the title [Wip] MSBuildHelper: new property ToolPath [Review Pls] MSBuildHelper: new property ToolPath Oct 25, 2017
@matthid matthid added ready/reviewed and removed waiting for author Some information or action was requested and it needs to be addressed. Or a response from author labels Oct 25, 2017
@matthid
Copy link
Member

matthid commented Oct 25, 2017

Changes look good to me! I'll add it into the next release/round of changes.

What do you think? If you really want, I can add it back.

I don't have a strong opinion either way, only that specifying the full executable path should probably work (which it does at the moment).

Thanks for taking care of this.

@matthid matthid changed the title [Review Pls] MSBuildHelper: new property ToolPath MSBuildHelper: new property ToolPath Oct 25, 2017
@matthid matthid mentioned this pull request Oct 28, 2017
@matthid matthid merged commit 57f363d into fsprojects:master Oct 28, 2017
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 this pull request may close these issues.

3 participants