-
-
Notifications
You must be signed in to change notification settings - Fork 731
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
ParseProject fails on an aboslute HintPath #2498
Comments
veselfil
changed the title
ParseProject fails on an aboslute reference HintPath
ParseProject fails on an aboslute HintPath
Mar 13, 2019
Had same on a project that added a reference to System.Management.Automation (needed for PowerShell automation). Item group in the project looks like following:
Removing the hint path node allows the project to be parsed. |
agc93
added a commit
to agc93/cake
that referenced
this issue
Oct 26, 2019
When parsing HintPath values, "rooted" path values will be preserved. Relative path values will still be "rooted" to current dir.
agc93
added a commit
to agc93/cake
that referenced
this issue
Oct 26, 2019
When parsing HintPath values, "rooted" path values will be preserved. Relative path values will still be "rooted" to current dir.
devlead
added a commit
that referenced
this issue
Oct 26, 2019
Fixed by #2649 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What You Are Seeing?
When attempting to parse a .csproj file which contains an absolute HintPath, Cake exits with the following exception:
Cannot combine a directory path with an absolute file path.
What is Expected?
The project should be parsed successfully, never had any issues with it in Visual Studio.
What version of Cake are you using?
0.32.1, also tried with 0.30.0.
Are you running on a 32 or 64 bit system?
64-bit.
What environment are you running on? Windows? Linux? Mac?
Windows 10 Pro, all updates installed.
Are you running on a CI Server? If so, which one?
No.
How Did You Get This To Happen? (Steps to Reproduce)
I'm not sure what you have to do to add a HintPath, but the library that did it for me is DotNetBar. I'm not the original author of the project, and he's not around anymore, so I cannot really give you more details as how it was added.
Here's a snippet from one of the failing projects:
Commenting out the HintPath line fixes the issue.
Output Log
Here's the stack trace:
The text was updated successfully, but these errors were encountered: