#Question about C# Cloud Code Modules
1 messages · Page 1 of 1 (latest)
Doesn't seem to work either, my module can no longer be instantiated on UGS:
I get the same error when I just copy/paste the example code:
Hi, for those errors, can you check which version of the logging package you have installed? Currently we don't support v8 (working on it), so you may need to downgrade to 7.
For locally creating an instance of your class (e.g. for a unit test), you can either create an instance of a logger (for example new Logger<CombatController>(new NullLoggerFactory()); will create a dummy logger, see the Microsoft docs if you want to attach it to the console), or pass a mock/stub that implements ILogger. You could also pass null as long as you use the null-conditional operator (?.) to avoid throwing a null ref exception (e.g. _logger?.LogInformation(...) .
what do you mean check my version?
this is on the UGS servers
In Nuget package manager (or your .csproj) you should be able to see the version you're referencing
I believe it's just the Logging and DependencyInjection packages you'll need to downgrade