x


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.

more ▼

asked Oct 13 '10 at 10:19 AM

Woutor gravatar image

Woutor
103 4 5 12

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

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).

more ▼

answered Oct 13 '10 at 05:09 PM

raypendergraph gravatar image

raypendergraph
1.6k 15 21 37

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.

Oct 14 '10 at 09:29 AM Woutor

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?

Oct 14 '10 at 11:18 AM raypendergraph
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

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

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x663
x269
x95
x46

asked: Oct 13 '10 at 10:19 AM

Seen: 1753 times

Last Updated: Oct 14 '10 at 09:29 AM