Hey,
I am having issues trying to use my C# code in Maxscript. I just wrote a test cs code and Maxscript to test the two's functionality. The code isn't anything complex at all but I keep getting the following output and error:
dotNetObject:System.Reflection.RuntimeAssembly
-- Error occurred in anonymous codeblock; filename: C:\Users\diepreye\Desktop\.net 3ds max plugin prac\dotnet_api_test.ms; position: 117; line: 3
-- Runtime error: Cannot resolve type: Sandbox.TestObject
-- MAXScript callstack:
-- thread data: threadID:22972
-- ------------------------------------------------------
-- [stack level: 0]
-- In top-level
I have also attached a copy of the C# code and the Maxscript code below. I have no idea why it isn't working especially since I search and see others doing the same and having no issues.
Solved! Go to Solution.
Solved by diepreyeYRJFU. Go to Solution.
Have you installed the latest dotNET update for Windows?
Rob Holmes
Alright, I have seen the issue. It seems 3ds Max doesn't like/fully support .NET 8.0 SDK yet. I retried writing my plugins and test code using the .NET 4.8 Framework which works perfectly.
Can't find what you're looking for? Ask the community or share your knowledge.