Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Type removed from nuget is still available to consumer

$
0
0

Process:

  1. Create a NuGet package called FooPackage. The package consists of two DLLs: BarDLL is a C# wrapper, BazDLL is an F# library which defines a type called QuxType. The package and the DLLs it contains are all version 1.0.0.
  2. Publish the package to our private NuGet host.
  3. Install FooPackage in solution CorgeSolution and reference QuxTpe.
  4. Remove QuxType from FooPackage and replaced it with QuuxType, meanwhile updating the package and the DLLs to version 2.0.0
  5. Update the package in CorgeSolution without removing the reference to QuxType.

Expected result: compile error in CorgeSolution. Since the type is no longer included in the installed package, it should not be possible to reference it.

Actual result: no compile error.

Other details

Using ReSharper I can navigate to a decompiled version of QuxType. There, I find the DLL version number is reported as 1.0.0, and a folder reference is given. I can delete the folder containing V1.0.0, but NuGet restores it in the blink of an eye.

Question

What's going on here? Why is the deprecated type still available?


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>