Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
0
Question by jpcul · Mar 26, 2018 at 07:17 AM · visual studiodllassemblyclass library

Assembly-CSharp as Default Class Library for Scripts?

So i'm new to Unity and I have a question about the Libraries for created scripts.

When I make a new script, I find that this is under a Class Library in Visual Studio 2017 with the name: Assembly-CSharp.

https://i.imgur.com/PPXpAIj.png

Any video I find online for a Unity walkthrough has the Library named differently, usually it's the same as the solution name(Project Name) for the basic ones.

Here is a screenshot of this video at 1:09(https://www.youtube.com/watch?v=9ZEu_I-ido4)

https://i.imgur.com/rYrycQA.png

I find this is wrong, or i'm just concerned i'm starting off on the wrong foot, why is it defaulting this way for me?

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
1
Best Answer

Answer by Martin_Gonzalez · Mar 26, 2018 at 10:42 AM

Unity creates a project based on a Solution File (.sln) that contains the assemblies references (.csproj files)

When a script is in Assets root it will be in Assembly-Csharp

When a script is under an Editor folder then it will be in Assembly-CSharp-Editor

When a script is under Standard Assets it will be in Assembly-CSharp-firstpass

When a script is under Standard Assets/Editor it will be under Assembly-CSharp-Editor-firstpass

This is because Unity separate editor code and third party code.

Comment
Add comment · Show 4 · 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 jpcul · Mar 26, 2018 at 12:53 PM 0
Share

So what is something like https://i.imgur.com/rYrycQA.png , this will still be under Assembly-CSharp but the na$$anonymous$$g convention is changed at default?

avatar image Martin_Gonzalez jpcul · Mar 26, 2018 at 01:04 PM 1
Share

In the .sln file you can name the assmeblies.

if you inspect the .sln file you will find a line like this

 Project("{E097FAD1-6243-4DAD-9C02-E9B9EFC3FFC1}") = "Assembly-CSharp", "Assembly-CSharp.csproj", "{1AF10902-9781-58C1-C1BA-8EC10E1CFC9A}"

Where is a simple map of name - file. Both can be anything else.

avatar image jpcul Martin_Gonzalez · Mar 26, 2018 at 04:49 PM 0
Share

Do you happen to know why it goes to "Assembly-CSharp" ins$$anonymous$$d of the name of the project like the picture I posted above? IE Class Library the same name as Project Name.

Also are they the same technically? I see that the icons are different.

Show more comments

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

76 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to compile Class Library using Visual Studio 1 Answer

Unity/VS not recognising new scripts as "Assembly-CSharp" 0 Answers

Enumerators and pdb2mdb 1 Answer

Access a file after build in unity 0 Answers

Metadata file Debug\Assembly-UnityScript-firstpass.dll' could not be found 4 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