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
{{ message }}
Repository navigation
Using Paket with Shared projects - referencing different package versions from different projects #405
I'm trying to use Paket on a project (a R# plugin) which uses Shared projects, and duplicated .csproj/packages.config files for referencing different R# SDK versions.
The packages.*.config contains a reference to a particular version of ReSharper SDK, either 8.2 or 9.0. NuGet is smart enough to update the relevant csproj file.
I'm using this to avoid #if/#else hell in my project, so I'm using partial classes to accommodate for the differences in the API.
I want to migrate this structure to Paket.
Couple of questions:
Can I even do this? Can Paket support different packet.dependencies in the same directory?
Same question about paket.references - how do I add a reference to a different version of the SDK in different projects?
Where do I put those files? Per-project? At solution level?
Paket currently supports only one version per dependency. For the ReSharper SDK that basically means that by default you would have to compile against a single SDK.
While the solution is not perfect (as you currently cannot override the dependency file name), you would have to have a folder per ReSharper SDK version with a dependencies file in each. Your projetcs would all have to link its source files from /src or their partials under /versions.
That would give you a dependency tree per SDK version. Updates of other dependencies would become cumbersome as you would have to repeat the update process for each of your SDK version roots.
Yes, also chatting with @forki, he made the same suggestion.
Possibly I'll just leave 8.2 as it is, and use Paket for 9.0... the difference is that R# team decided to split up the SDK into several packages, and it creates a nuget mess :(
At the moment I think we should not do this. But this feature will come at
some point in the future.
On Nov 29, 2014 6:16 PM, "Alexander Groß" [email protected] wrote:
As a suggestion, if we
allow to use specify the dependencies file name and also
so that I could place a "main" paket.dependencies file (containing the SDK only) in the /versions/8.2 root, and have an additional one under /versions/8.2/tests/ that has the "SDK.Tests" package:
Activity
agross commentedon Nov 29, 2014
Hi Igal,
I know where you're coming from ;-)
Paket currently supports only one version per dependency. For the ReSharper SDK that basically means that by default you would have to compile against a single SDK.
While the solution is not perfect (as you currently cannot override the dependency file name), you would have to have a folder per ReSharper SDK version with a dependencies file in each. Your projetcs would all have to link its source files from
/srcor their partials under/versions.That would give you a dependency tree per SDK version. Updates of other dependencies would become cumbersome as you would have to repeat the update process for each of your SDK version roots.
hmemcpy commentedon Nov 29, 2014
Hey Alex :)
Yes, also chatting with @forki, he made the same suggestion.
Possibly I'll just leave 8.2 as it is, and use Paket for 9.0... the difference is that R# team decided to split up the SDK into several packages, and it creates a nuget mess :(
(I only added the highlighted one)
agross commentedon Nov 29, 2014
As a suggestion, if we
... it might as well just work. Wondering what @forki thinks about this. Sounds like a lot of complexity.
forki commentedon Nov 29, 2014
At the moment I think we should not do this. But this feature will come at
some point in the future.
On Nov 29, 2014 6:16 PM, "Alexander Groß" [email protected] wrote:
hmemcpy commentedon Nov 29, 2014
In the meantime, I'm going to try your suggestion using version directories (can't be less painful than having separate .csproj/package.config files).
Can Paket do nested .dependencies?
I want to place all the .csproj files into their own directory, e.g.
so that I could place a "main"
paket.dependenciesfile (containing the SDK only) in the/versions/8.2root, and have an additional one under/versions/8.2/tests/that has the "SDK.Tests" package:etc?
forki commentedon Apr 6, 2016
I think this can be done with groups since v2