-
Notifications
You must be signed in to change notification settings - Fork 525
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
Problems building a single project in a larger solution that imports paket.targets using "msbuild" from the command line #172
Comments
See this comment: a29b9f6#commitcomment-7945050 |
any ideas how to fix this? |
It looks like they don't set the WorkingDirectory, but instead compute the explicit path to the packages.config:
and then pass
|
Is there an OSS project where I can reproduce? |
I ran into this as well. My local fix to paket.targets was to use
|
Could you please send me your paket.targets?
|
@ctaggart thanks. I modified it a bit. Could please check? |
Hello <SolutionDir>$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), .paket))</SolutionDir> ded' |
cool. any chance to submit this as PR? would help us a lot. |
To put it shortly : the fix in paket.targets is OK. And paket.targets import in projects is OK while we have one .paket dir per solution directory (SolutionDir must be defined relatively to $(MSBuildProjectDirectory) to be able to build projects directly). But if we are in the large repository (like mine at work) with 1500+ projects and where solutions are automatically generated, in this case we might need one .paket dir at the root of the repo (not at the solution level). Then it would be better to use GetDirectoryNameOfFileAbove for paket.targets imports in projects. This would work for current cases (one solution in repo root) and my large case (many solutions, one .paket dir in repo root). |
I think we actually want one .paket folder per repo. I'd also love to see a "one paket install per solution build". AFAIK we
|
Ok I will try to push a PR then
|
I have a solution containing two projects in "src\X\X.fsproj" and "src\Y\Y.fsproj". Both import paket.targets in the usual way:
If I build the solution everything i fine. However if I do
then there is an error
I believe that "....\paket.exe" is being run in the SolutionDir, which is "....". This means that we are looking for paket.exe in two directories above the SolutionDir.
The text was updated successfully, but these errors were encountered: