In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
In this issue, the editor will bring you Project build about how unity3d links to mysql. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.
Some .net libraries are used in the development of unity3d, but there is no problem when you run it, but once you release the problem, you try to solve the problem.
one。 Problems arise
In a current U3D project, we use StriveEngine as a communication component to communicate with the server. In the U3D environment, the compilation runs normally, but when Build is the PC version executable, there is an error: "ArgumentException: The Assembly System.Management is referenced by StriveEngine. But the dll is not allowed to be included or could not be found."
At first, I thought it was a problem of signature or encryption confusion, so I used the StriveEngine.dll generated by the original compilation, and the problem also existed.
Then, I guessed that it might be the problem of selecting the platform when StriveEngine.dll was compiled, so I changed the target platform from anycpu to x86, regenerated StriveEngine.dll, and chose x86 for packaging and distribution in U3D, as shown in the following figure:
However, the problem remains.
two。 Solution
After some twists and turns, I finally found that I needed to set the .NET version used by U3D-click the Player Settings button, find the Api Compatibility Level option, and select ".net 2.0" instead of ".net 2.0 Subset", as shown in the following figure:
This option means that you should use the full version of .NET 2.0 instead of a subset of it. After this setting, you can finally package and release successfully.
The reason seems to be that StriveEngine uses the full version of .NET 2.0.
three。 There is another dilemma.
Since our game is going to release a lightweight Web version, we tried to package it as Web, god, and the same problem arises again, and in the case of a Web version, Api Compatibility Level is not optional.
Guess that the release of the Web version can only use .net 2.0 Subset.
four。 How to get out of the predicament?
If the conjecture that you can only use .net 2.0 Subset to release a version of Web is correct, then I want to develop a StriveEngine.U3D.dll based on .net 2.0 Subset so that it can be packaged and released to various platforms that do not work. However, which subset does the .Net 2.0 Subset refer to? Is it the .NET Compact Framework? Or the .NET Framework provided by SilverLight? Or something else? I hope you can leave a message if you know the children's shoes.
The above is the editor for you to share the unity3d how to link the Project build of mysql, if you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.