Cannot build solution with code library [Solved]

I am sorry to spam this forum but I am all out of ideas once again.
What I did:
New game,
Update package -> Add Code library
Named library OrangeSystem.Core
Opened Solution in VS 2015
Added .cs files files to the OrangeSystem.Core project
Installed NCalc from "Nuget opackage manager"
In project OrangeSystems.Game References added reference to project OrangeSystem.Core
Saved everithing build now fails with:
scereenshot

Those messages give me absolutely no clue what is wrong.

Looks like to me that the library you added is not PCL(portable subset library), either that or the .net versions aren’t the same. Paradox uses .NET 4.5 I believe.

Thank you fro reply : )
If you mean OrangeSystem.Core I added that library from Game Studio not from VisualStudio. I am not sure about that NCalc nuget package though.

It has something to do with this:
If I want to reference library inside visualstudio, visualstudio has its own way to satisfy dependencies.
However Paradox3d seems to have its own way, by putting it all in main Bin folder. This seems to be not compatible with referencing libraries inside Paradox3d among themselves. But I really need to reference one library from another inside the solution. And that kills everithing.

This is due to the fact that we try to load Game.dll but don’t know about the redirect binding generated by NuGet (which only applies on the final .exe, not the intermediate .dll).

I will check if we can do something about that, I agree it is quite a blocker.

Note that this happens only when the library is signed if I remember correctly.

Couldn’t reproduce, any chance you could share a simple repro project?
Thanks

Yes. :slight_smile:
https://onedrive.live.com/redir?resid=DA75415232937F7B!1795&authkey=!AHq50gBGK6nCtWM&ithint=file%2Czip

The actual error is visible in the “Output” pane:

Serialization of nested types referencing parent's generic parameters is not currently supported. [Nested type=OrangeGenerator.Core.Common.Grid`1/OutOfGridValues Parent=OrangeGenerator.Core.Common.Grid`1]
System.NotSupportedException: Serialization of nested types referencing parent's generic parameters is not currently supported. [Nested type=OrangeGenerator.Core.Common.Grid`1/OutOfGridValues Parent=OrangeGenerator.Core.Common.Grid`1]

You should probably move OutOfGridValues outside of your generic class (otherwise it actually generates one OutOfGridValues enum for every Grid implementation, such as Grid.OutOfGridValues, Grid.OutOfGridValues, etc…).

Another option is to have a non generic parent type Grid that contains this enum, and Grid inherits from it.

Note that we could support this pattern, but it is usually not something the programmer intend.

Thank you very much, I had no idea. Thought It was something with DLLs.
In 1.3.1 I managed to get this project running.
I hope this one is solved for good : )