You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I adopted Paket, I was expecting paket.targets files per NuGet package to soon happen. It was mentioned before in #197. I'd really like to see this happen. Something like this:
There are way to many changes being made to the project files and this causes lots of noise in the diff and some frustration when merging. An example is this pull request I just made for FAKE: fsprojects/FAKE#602
I know that this is a requested feature and I already started working on it. But it's not an easy one.
Regarding the FAKE changes. That's not that bad. The real issue was that I didn't make that Paket 0.17 transition before, so that you had both, the improved Paket output and your FSharp.Core changes in one Commit. But it's still good progress:
You may wish to stick with lowercase paket.targets instead of Paket.targets since all the other files are lowercase. Since they are auto-generated, it doesn't matter much to me. May be that actually helps differentiate it from the other paket.targets used for msbuild targets.
We can't create the targets files per package since we have to create different When clauses if the csproj file already contains the same framework assemblies.
So we have two options:
Create a targets file per package and project and put it under packages
How can we create a good naming pattern to match projects and targets files?
Create a targets file per project (which contains all packages) and put it next to the project.
If the project is call MyProject.csproj we could call these MyProject.paket.targets
Ok I think there is no good solution to this. I propose the following:
we add the targets feature
people who want to use VS restore have to commit the targets file for now
people who trust their build.cmd can gitignore the file
This is far from perfect, but even for the autorestore people this might be a small benefit since they know they can nuke the targets file if a merge error occurs.
We will look for better solutions. Maybe we can talk to @jeffhandley and propose to open up the nuget addin.
As was pointed out, these problems are precisely why we ditched msbuild-integrated restore. Within VS, our extension hooks into the SolutionBuild event and executes restore BEFORE VS launches msbuild. Outside VS, it requires that build scripts run nuget.exe restore. That achieved the results that we wanted: no-touch restore in VS, but very scriptable outside VS. It's worked out great.
@jeffhandley we know that. The only issue for paket is: we are not in the
Visual Studio box and I don't see a good chance to get in.
On Dec 10, 2014 9:25 PM, "Jeff Handley" [email protected] wrote:
As was pointed out, these problems are precisely why we ditched
msbuild-integrated restore. Within VS, our extension hooks into the
SolutionBuild event and executes restore BEFORE VS launches msbuild.
Outside VS, it requires that build scripts run nuget.exe restore. That
achieved the results that we wanted: no-touch restore in VS, but very
scriptable outside VS. It's worked out great.
—
Reply to this email directly or view it on GitHub #417 (comment).
@ovatsus why is an extension such a bad thing? there's a plug-in for nuget, there could (should?) be one for paket as well. In addition to doing the Nuget-esque pre-build steps, it could do other things as well such as integrated ability to modify paket via a GUI integrated into VS rather than having to fall back to the command line (or fsx).
I'm not saying the extension is a bad thing, would be great to have the extension. What I'm saying is that I want all my projects to be able to just work by a simple git clone + open the .sln and build, without any special requirements.
Yes we all want this. But MS closed the door for us. Instead of fixing the
root cause they shipped an addin. Btw: this is not only bad for us it's
also a really bad solution for other IDEs. Simply calling MSBuild doesn't
work anymore - so every other IDE has to build a plug-in.
Now we have to find the best workaround.
On Dec 11, 2014 11:26 AM, "Gustavo Guerra" [email protected]
wrote:
I'm not saying the extension is a bad thing, would be great to have the
extension. What I'm saying is that I want all my projects to be able to
just work by a simple git clone + open the .sln and build, without any
special requirements.
—
Reply to this email directly or view it on GitHub #417 (comment).
Well, right now, if you don't change anything, restore is working, so Paket even has that as added benefit on top of Nuget, it will work fine on other IDEs
I'm closing this because the new MSBuild world moves dependencies to an external project.lock.json that should be .gitignored which solves this issue and also my biggest grievance. Adding support for project.lock.json is in #736.
Activity
forki commentedon Dec 4, 2014
I know that this is a requested feature and I already started working on it. But it's not an easy one.
Regarding the FAKE changes. That's not that bad. The real issue was that I didn't make that Paket 0.17 transition before, so that you had both, the improved Paket output and your FSharp.Core changes in one Commit. But it's still good progress:
forki commentedon Dec 9, 2014
sneak peek for v0.19:
Create paket.targets file per package - references #417
isaacabraham commentedon Dec 9, 2014
awesome
ctaggart commentedon Dec 9, 2014
That is so beautiful!
You may wish to stick with lowercase
paket.targetsinstead ofPaket.targetssince all the other files are lowercase. Since they are auto-generated, it doesn't matter much to me. May be that actually helps differentiate it from the otherpaket.targetsused for msbuild targets.panesofglass commentedon Dec 9, 2014
Lovely! Does this mean packages need to publish
paket.targetsfiles?ctaggart commentedon Dec 9, 2014
No, they get generated by Paket when it unzips the
nupkg.Create paket.targets file per package - references #417
Create paket.targets file per package - references #417
forki commentedon Dec 10, 2014
how about
generated.paket.targetsthis will make it easy to find?forki commentedon Dec 10, 2014
There is still one issue left:
We can't create the targets files per package since we have to create different When clauses if the csproj file already contains the same framework assemblies.
So we have two options:
packagesWhat do you guys think?
/cc @agross @mexx
TWith2Sugars commentedon Dec 10, 2014
I'd prefer option 1 with MyProject.paket.targets
forki commentedon Dec 10, 2014
that wouldn't work since in one repository can be man MyProject.csproj files in different folders.
agross commentedon Dec 10, 2014
If we go for option 1 we should regenerate the project structure and put the targets there.
agross commentedon Dec 10, 2014
32 remaining items
agross commentedon Dec 10, 2014
@Uli-Armbruster also wouldn't be pleased to learn that automatic restore in VS was discontinued.
forki commentedon Dec 10, 2014
Ok I think there is no good solution to this. I propose the following:
This is far from perfect, but even for the autorestore people this might be a small benefit since they know they can nuke the targets file if a merge error occurs.
We will look for better solutions. Maybe we can talk to @jeffhandley and propose to open up the nuget addin.
What do you think?
TWith2Sugars commentedon Dec 10, 2014
Sounds like a reasonable workaround
jeffhandley commentedon Dec 10, 2014
As was pointed out, these problems are precisely why we ditched msbuild-integrated restore. Within VS, our extension hooks into the SolutionBuild event and executes restore BEFORE VS launches msbuild. Outside VS, it requires that build scripts run nuget.exe restore. That achieved the results that we wanted: no-touch restore in VS, but very scriptable outside VS. It's worked out great.
forki commentedon Dec 10, 2014
@jeffhandley we know that. The only issue for paket is: we are not in the
Visual Studio box and I don't see a good chance to get in.
On Dec 10, 2014 9:25 PM, "Jeff Handley" [email protected] wrote:
isaacabraham commentedon Dec 11, 2014
@ovatsus why is an extension such a bad thing? there's a plug-in for nuget, there could (should?) be one for paket as well. In addition to doing the Nuget-esque pre-build steps, it could do other things as well such as integrated ability to modify paket via a GUI integrated into VS rather than having to fall back to the command line (or fsx).
ovatsus commentedon Dec 11, 2014
I'm not saying the extension is a bad thing, would be great to have the extension. What I'm saying is that I want all my projects to be able to just work by a simple git clone + open the .sln and build, without any special requirements.
forki commentedon Dec 11, 2014
Yes we all want this. But MS closed the door for us. Instead of fixing the
root cause they shipped an addin. Btw: this is not only bad for us it's
also a really bad solution for other IDEs. Simply calling MSBuild doesn't
work anymore - so every other IDE has to build a plug-in.
Now we have to find the best workaround.
On Dec 11, 2014 11:26 AM, "Gustavo Guerra" [email protected]
wrote:
ovatsus commentedon Dec 11, 2014
Well, right now, if you don't change anything, restore is working, so Paket even has that as added benefit on top of Nuget, it will work fine on other IDEs
isaacabraham commentedon Dec 11, 2014
@ovatsus but Nuget takes this approach via an addin - out of the box VS won't restore conventional NuGet packages either.
forki commentedon Dec 11, 2014
I might have found a (hacky) way. Stay tuned.
isaacabraham commentedon Dec 11, 2014
forki commentedon Jan 6, 2015
We need to check out http://stackoverflow.com/a/24055340/145701
ctaggart commentedon Nov 11, 2015
I'm closing this because the new MSBuild world moves dependencies to an external
project.lock.jsonthat should be.gitignored which solves this issue and also my biggest grievance. Adding support forproject.lock.jsonis in #736.