Jump to content

[SOLVED] The type or namespace name "Unigine" could not be found


photo

Recommended Posts

Posted

I am unable to build the C# Samples project because I am getting this and a bunch of other errors.  

Apologies if I'm doing something dumb, this is my first experience with C#.  I downloaded the C# component samples demo.  I clicked "Copy as project" to copy the files to a folder.  I then used the solution file(csharp_component_samples.sln) to open the project in Visual Studio 2022.  I havent made any other changes but the project won't build.  It seems like there's a missing dll or something.  How do I fix this so I can build the project?

Posted

Hi!

Try changing the binaries in VS to double precision. Something like this:

image.png

Will that work?

Thanks!

  • Like 1
Posted
9 hours ago, arizmenda said:

Hi!

Try changing the binaries in VS to double precision. Something like this:

image.png

Will that work?

Thanks!

Yes that fixed it.  I can build now.  Thanks!

  • Like 1
  • silent changed the title to [SOLVED] The type or namespace name "Unigine" could not be found
Posted

After setting the Unigine build configuration to Debug-Double in the Unigine editor, I can make code changes, build, and run fine.

One more question, I am getting intellisense and autocompletion fine in Visual Studio Community 2022, but not in VS Code.  VS Code is still saying Type or Namespace "Unigine" could not be found.  I know I have the SDK installed but it seems like I need to do the same thing for VS Code that I did for Visual Studio, setting the build configuration to Debug-Double.  Is there a way to do this for VS Code?  I'd prefer to use VS Code if I can but only if I can have intellisense working with it.  I have C# Dev kit extension installed.  How do I switch the default configuration in VS Code the same way I did for Visual Studio?

Posted

@webnetweaver

This is certainly not a solution to installing Debug-Double in VS Code, but you can copy those samples into the project with float precision

  • Like 1
×
×
  • Create New...