naviomg 4 Posted September 29, 2018 Share Posted September 29, 2018 im trying to get my quest profiles work with a .dll. With .cs files it works without any problems but after converting them to .dll it doesnt work anymore. My .dll: using robotManager.Helpful; namespace Testdll { public class MyTestScript { static MyTestScript() { Logging.Write("Init"); } public static void Test() { Logging.Write("Test1"); } } } Added them into the Script Tag in .xml: <Script>Scripts\testdll.dll </Script> Trying to call my testfunction with RunCode in Quester: Both are not working MyTestScript.Test(); Testdll.MyTestScript.Test(); Error in Wrobot: wjnzco2s.0.cs(13,3) : error CS1056: Unexpected character '�' wjnzco2s.0.cs(13,1) : error CS0116: A namespace cannot directly contain members such as fields or methods wjnzco2s.0.cs(13,4) : error CS1513: } expected Do i miss something or is it attented to not work with .dll? Link to comment https://wrobot.eu/forums/topic/10188-using-dll-in-quest-profiles/ Share on other sites More sharing options...
Matenia 627 Posted October 5, 2018 Share Posted October 5, 2018 Pretty sure you can't have your own namespace. But I'm also not sure if DLLs work to begin with naviomg 1 Link to comment https://wrobot.eu/forums/topic/10188-using-dll-in-quest-profiles/#findComment-48323 Share on other sites More sharing options...
naviomg 4 Posted October 6, 2018 Author Share Posted October 6, 2018 ahhh true, might be the namespace problem, will test again. Link to comment https://wrobot.eu/forums/topic/10188-using-dll-in-quest-profiles/#findComment-48339 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now