Dependency version not set when using version field #56

Open
opened 2026-01-29 16:28:20 +00:00 by claunia · 1 comment
Owner

Originally created by @claunia on GitHub (Jun 24, 2019).

On .csproj:

  <ItemGroup>
    <DebDependency Include="iproute2"/>
    <DebDependency Include="net-tools"/>
  </ItemGroup>

  <ItemGroup Condition="'$(RuntimeIdentifier)' == 'debian.8-x64' Or '$(RuntimeIdentifier)' == 'ubuntu.14.04-x64' Or '$(RuntimeIdentifier)' == 'ubuntu.16.04-x64'">
    <DebDependency Include="initscripts" Version=">= 2.88dsf-13.3"/>
  </ItemGroup>

On control file gets:

Depends: iproute2, net-tools, initscripts, libc6, libcurl3, libgcc1, libgssapi-krb5-2, liblttng-ust0, libssl0.9.8 | libssl1.0.0 | libssl1.0.1 | libssl1.0.2, libstdc++6, libunwind8, libuuid1, zlib1g, libicu52 | libicu53 | libicu54 | libicu55 | libicu56 | libicu57 | libicu58 | libicu59 | libicu60 | libicu61 | libicu62 | libicu63
Originally created by @claunia on GitHub (Jun 24, 2019). On .csproj: ```xml <ItemGroup> <DebDependency Include="iproute2"/> <DebDependency Include="net-tools"/> </ItemGroup> <ItemGroup Condition="'$(RuntimeIdentifier)' == 'debian.8-x64' Or '$(RuntimeIdentifier)' == 'ubuntu.14.04-x64' Or '$(RuntimeIdentifier)' == 'ubuntu.16.04-x64'"> <DebDependency Include="initscripts" Version=">= 2.88dsf-13.3"/> </ItemGroup> ``` On control file gets: ``` Depends: iproute2, net-tools, initscripts, libc6, libcurl3, libgcc1, libgssapi-krb5-2, liblttng-ust0, libssl0.9.8 | libssl1.0.0 | libssl1.0.1 | libssl1.0.2, libstdc++6, libunwind8, libuuid1, zlib1g, libicu52 | libicu53 | libicu54 | libicu55 | libicu56 | libicu57 | libicu58 | libicu59 | libicu60 | libicu61 | libicu62 | libicu63 ```
Author
Owner

@claunia commented on GitHub (Jun 26, 2019):

Ok just looked at the source code and it seems that the include is copied verbatim.

On .csproj:

  <ItemGroup>
    <DebDependency Include="iproute2"/>
    <DebDependency Include="net-tools"/>
  </ItemGroup>

  <ItemGroup Condition="'$(RuntimeIdentifier)' == 'debian.8-x64' Or '$(RuntimeIdentifier)' == 'ubuntu.14.04-x64' Or '$(RuntimeIdentifier)' == 'ubuntu.16.04-x64'">
    <DebDependency Include="initscripts (>= 2.88dsf-13.3)"/>
  </ItemGroup>

does the trick.

@claunia commented on GitHub (Jun 26, 2019): Ok just looked at the source code and it seems that the include is copied verbatim. On .csproj: ```xml <ItemGroup> <DebDependency Include="iproute2"/> <DebDependency Include="net-tools"/> </ItemGroup> <ItemGroup Condition="'$(RuntimeIdentifier)' == 'debian.8-x64' Or '$(RuntimeIdentifier)' == 'ubuntu.14.04-x64' Or '$(RuntimeIdentifier)' == 'ubuntu.16.04-x64'"> <DebDependency Include="initscripts (>= 2.88dsf-13.3)"/> </ItemGroup> ``` does the trick.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dotnet-packaging#56