Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
5
Question by Woutor · Oct 13, 2010 at 10:19 AM · buildprojectversionassembly

AssemblyInfo or alternative - How to add version number

I would like to add several properties to the executable of my project. The properties I would like to add are: version number, trademark, copyright and guid. Can I add an AssemblyInfo anywhere in the project? There is no special Properties directory as in normal Visual Studio projects.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
3

Answer by Ray-Pendergraph · Oct 13, 2010 at 05:09 PM

The problem with your concept is that Unity actually builds several DLLs for your project based on the compile phases. If you look in the Library\ScriptAssemblies folder under your project you can see what I am talking about. Secondly, I quickly tried to add an AssemblyInfo to the root of a couple of those phase folders defined in the link but I did not notice that that information got assembled into the DLL. Maybe they ignore them? That's an internal Unity thing. I may have just missed something maybe you could play around with sticking the AssemblyInfo in certain folders and see what happens. I have built AssemblyInfo into DLLs before with prebuild DLLs for libraries in Unity and they showed up in Red Gate right away (for those DLLs).

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Woutor · Oct 14, 2010 at 09:29 AM 0
Share

Thanks for the comment. I only need properties on the main .exe that is created. I don't care much about any of the other dlls in the data directory.

avatar image Ray-Pendergraph · Oct 14, 2010 at 11:18 AM 0
Share

Exactly, but I guess what I mean is that your only hope (unless you can insert that stuff to the exe post build) is that Unity would take it from one of those DLLs when it was building the exe. Other than that it's pretty much a black box unless there are some build pipeline tricks. If someone from Unity is reading, are there any custom build script tricks to insert this?

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

Distribute terrain in zones 3 Answers

different project for different platforms 0 Answers

Unity (2017.3.0f3) won't start 1 Answer

Unity project building stuck, need help. 1 Answer

How do I choose the Android SDK version for Unity Cloud Build? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges