I have an axmodel file that has a C Sharp project inside. I imported this model file to a different environment.
When I tried to compile x++ code that references the assembly from that project, it does not compile and gives me the error: Variable xyz has not been declared. I even tried to open up the project in Visual Studio, doing a deploy to both client and server, then restarting the AOS. Still it would not compile.
The only way which worked for me was to open the .NET project, then doing 'Add myproject to AOT'. It seems like something else is happening in the background when adding to AOT, and this is not being transferred with the model file.
Does this mean that if I deploy code to a client's environment, they will need to have Visual Studio installed?
If someone has had previous experience with doing something similar, please give me your thoughts.
Thank you,
Nehal