The '.' operator cannot be applied of type 'IPlayerItemDefinition'Fixed

Error While Compiling: NPCDropGun.cs (211,76): error CS0023: The '.' operator cannot be applied of type 'IPlayerItemDefinition'

Basically that, the plugin does not compile and consequently does not load.
 
Ty for translating it and fixing the title, people were asking for other problems in the server at the same time.
This will be fixed in both a new plugin version and Oxide update.

As a temporary fix, you can comment out these lines:
			//if (idef.skins2 != null && idef.skins2.Length > 0)
			//{
			//	skins.AddRange(from skin in idef.skins2 where skin != null select skin.id);
			//}
Thanks, now it does compile
as in remove those lines?
So I removed this from the CS file 

if (idef.skins2 != null && idef.skins2.Length > 0)
{
skins.AddRange(from skin in idef.skins2 where skin != null select skin.Id);
}

and I get this message

Unloaded plugin NPC Drop Gun v2.0.3 by 2CHEVSKII

(08:06:52) | [NPC Drop Gun] BotSpawn plugin found! Some ammo and loot might not be handled correctly!

(08:06:52) | Loaded plugin NPC Drop Gun v2.0.3 by 2CHEVSKII

but my scientists still don't drop any guns ?

Same issues here :) hopefully fix is soon
I wish there was a way to eliminate the offending skin option and just have them drop unskinned guns and bypass this error in code. I am not sure how much more you would have to tell it to ignore to accomplish this, but it would be a nice alternative.
5e13a8d5b2bc5.jpg Wulf
This will be fixed in both a new plugin version and Oxide update.

As a temporary fix, you can comment out these lines:
			//if (idef.skins2 != null && idef.skins2.Length > 0)
			//{
			//	skins.AddRange(from skin in idef.skins2 where skin != null select skin.id);
			//}

This does allow the plugin to compile and load, but the NPCs no longer drop their weapons. I have not changed the config file from the previously working version.

ALANMAN

This does allow the plugin to compile and load, but the NPCs no longer drop their weapons. I have not changed the config file from the previously working version.

I don't think that would cause the issue.

Yeah, I also commented out those lines, and the NPCs don't drop, even though the mod compiles...
This plugin was working until the new game update. I added the workaround from Wulf and it compiles but the NPC do not drop guns anymore.
5e13a8d5b2bc5.jpg Wulf

I don't think that would cause the issue.

It seems that others are experiencing this issue also after the workaround is applied.

Hi it says: 

Error while compiling: NPCDropGun.cs(211,76): error CS1061: Type `IPlayerItemDefinition' does not contain a definition for `Id' and no extension method `Id' of type `IPlayerItemDefinition' could be found. Are you missing an assembly reference?

Any clue whats going on?

ALANMAN

It seems that others are experiencing this issue also after the workaround is applied.

The compiler fix is just to fix compiling related to skins, nothing related to how this plugin works otherwise.
I am not sure why, but when i added the fix to the mod it compiled fine as well. However then NPC's are killed the items no longer show up in the backpack.
Locked automatically