1

I am using NuGetPackageExplorer to publish a nuGet package on our private nuget feed. Before publishing I used menu option Tools->Analyze Package and getting a warning "Assembly not inside a framework folder".

(Note: I also got an error related to lib folder earlier but corrected it by adding lib folder as suggested by NuGetPackageExplorer)

Following is my nuGet package structure:

->lib
     MyDll.Dll

I have not mentioned any specific framework in the Package Metadata.
(I also tried NuGet Assembly outside lib folder, but it is talking about "lib" folder)

Does anyone know a solution to this?

SSD
  • 1,373
  • 2
  • 13
  • 20

2 Answers2

0

If you go through the source-code of nuget, you will find that this error can be ignored if your dll is targeted for multi-frameworks.

One unit test for nuget core seems to prove this.

Vijay Gill
  • 1,508
  • 1
  • 14
  • 16
  • Then you will have to put it in the framework specific folder which you have already done as mentioned in your own solution. – Vijay Gill Jul 15 '16 at 08:00
0

I finally found how to do this.

In NuGetPackageExplorer, point to Package Contents -> "lib" folder, if you right click on it (lib folder) then a menu appears and that menu has option to add Framework folder.

SSD
  • 1,373
  • 2
  • 13
  • 20