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
Sorry if a similar question was submitted before. Couldn't find anything similar.
Packaging project Pkg with net472 TFM has a dependency on a project NetStandardLib with netstandard2.0 TFM. NetStandardLib has a package reference on say Serialize.Linq package. I'd like to use Pkg package from another net472 project and transitively depend on Serialize.Linq
I'm okay with any proper alternative solution. The only walkaround I found is to change NetStandardLib TFM to net472 or multi-target it with net472 and netstandard2.0.
The text was updated successfully, but these errors were encountered:
kzu
changed the title
Question on referencing netstandard2.0 project from netfx (472) packing project
Support transitive package dependency of referenced (non-packing) project
Jul 15, 2022
We were previously not re-targeting dependencies from referenced (non-packing) projects, which would end up as dependencies in the originating project TFM, instead of the packing (TFM-specific) project, causing a runtime failure since the dependency wouldn't be present, even if the referenced assembly would.
This is now supported, including in multi-targeting scenarios for the packing project.
Fixes#199
We were previously not re-targeting dependencies from referenced (non-packing) projects, which would end up as dependencies in the originating project TFM, instead of the packing (TFM-specific) project, causing a runtime failure since the dependency wouldn't be present, even if the referenced assembly would.
This is now supported, including in multi-targeting scenarios for the packing project.
Fixes#199
Thanks for reporting this issue @khamza85! It was indeed a foresight on my part, and is now working properly across multiple transitive reference levels and multi-targeting 💪
Describe the Bug
Sorry if a similar question was submitted before. Couldn't find anything similar.
Packaging project Pkg with net472 TFM has a dependency on a project NetStandardLib with netstandard2.0 TFM. NetStandardLib has a package reference on say Serialize.Linq package. I'd like to use Pkg package from another net472 project and transitively depend on Serialize.Linq
Steps to Reproduce
NetStandardLib.zip
Run nugetize on Pkg. In the generated nuspec, I see
which makes Serialize.Linq package impossible to be transitive dependency if you refer Pkg package from another net472 project.
Expected Behavior
Not even sure. Maybe nuspec should be generated something like this:
Version Info
NuGetizer: v0.8.0
Additional Info
I'm okay with any proper alternative solution. The only walkaround I found is to change NetStandardLib TFM to net472 or multi-target it with net472 and netstandard2.0.
The text was updated successfully, but these errors were encountered: