0 votes

Hi,

I'm trying to use nunit testing framework along with godot (3.2) on windows 10
(migrating a unity project to godot)

I have created a csproj for tests requiring nunit like so :

<ItemGroup>
  <PackageReference Include="nunit" Version="3.12.0" />
  <PackageReference Include="NUnit3TestAdapter" Version="3.13.0" />
  <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" />
</ItemGroup>

however godot fails to build, says NUnit.Framewok missing assembly [...]
to me it doesn't manage to get the nuget packages

when i try to build on visual studio, everything is find though
and once i've build with vs, godot compiles fine

not very familiar with windows .net & friends
does anyone know how to setup nunit properly ? with vscode preferably

thanks !

asked Jun 6 in Engine by Kotaw (19 points)

1 Answer

0 votes
Best answer

okay nevermind, just found the documentation page...

https://docs.godotengine.org/en/stable/getting_started/scripting/c_sharp/c_sharp_basics.html#using-nuget-packages-in-godot

was not using dotnet resotre instead of nuget restore

answered Jun 8 by Kotaw (19 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.