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

Fix #869 #1905

Merged
merged 1 commit into from
May 4, 2018
Merged

Fix #869 #1905

merged 1 commit into from
May 4, 2018

Conversation

sliepie
Copy link
Contributor

@sliepie sliepie commented May 1, 2018

Fix for #869, a double \\ is added to outputpath param
Did also some cleanup and fix of warnings.

What is the indention to use for Fake? Parts of this file are indented with 2 spaces, and other parts with 4 spaces.

Copy link
Member

@matthid matthid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes lets try that, thanks!

@theimowski
Copy link
Member

This seems to break older versions of mono, for
XBuild Engine Version 14.0
Mono, Version 4.6.1.0

xbuild tries to copy assemblies to a path with a backslash:

Copying file from '$BUILD_DIR/packages/NUnit/lib/nunit.framework.dll' to '$BUILD_DIR/test\nunit.framework.dll'

and fails to do so because that's a unix box.

I'm using MSBuild.runRelease helper, how can I workaround that?

@sliepie
Copy link
Contributor Author

sliepie commented Jul 10, 2018

@theimowski
You can workaround this by specifying the outpath as a msbuild property, using the MSBuild.runReleaseExt helper as such:

let props = [ "OutputPath", outputPath ]
MSBuild.runReleaseExt setParams null props targets projects

@theimowski
Copy link
Member

Thanks, the workaround with MSBuild.runReleaseExt works fine for me.
What's the reason the backslash is added to the OutputPath parameter anyway?

@sliepie
Copy link
Contributor Author

sliepie commented Jul 10, 2018

@theimowski MSBuild expects that OutputPath ends with a (back)slash. If you pass a path without a slash at the end, MSBuild substitutes paths without a slash in between.
When you expected C:\Build\Project\bin\Example the result would be C:\Build\Project\binExample

I've opened #2020 as tracking issue.

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