Jump to content

[SOLVED] NuGet Package Usage Breaks Unigine Build


photo

Recommended Posts

I added a NuGet Package to my project, and whenever I build I received this error.

image.thumb.png.6a19df9b5aab452d68959f69764106e8.png

 

Whenever I comment out the code actually using the package the project will build fine like before. Below is the code that breaks the build process. 

 

using System;
using System.Collections;
using System.Collections.Generic;
using Unigine;
using LiteNetLib;

[Component(PropertyGuid = "80c9ad2c0af8469b9c4f4b3e1d7e7985fe431d20")]
public class Server : Component
{
   NetManager LiteServer;

    private void Init() {
        Log.Message("Server component init finished!\n\n");
    }

    ~Server() {
    }

	private void Update()
	{
        if(Engine.VideoApp == "null") {
            
        }

    }
}

Commenting out the NetManager line allows builds to continue.

Link to comment

Another solution I tried as copying the .dll for the library into my project and adding it as an assembly reference. I still receive the same type of error as above.

Link to comment
  • silent changed the title to [SOLVED] NuGet Package Usage Breaks Unigine Build
×
×
  • Create New...