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 sephiroth4269_unity · Jan 25, 2020 at 10:09 PM · compiler errorcs

Unable to overcome Assembly-CSharp.csproj assembly Error

I have been having the same script compilation error as many other people on this forum, however, using the answers I came to the conclusion that it was the compile file that was the issue. So when I opened up Visual Studio I simply saved the project name as the main file name of the project I was working on. It worked, it actually saved as a new .csproj file type. However, the script itself still showed the file path of Assembly-CSharp.dll which is what was causing my issue.

The other infuriating aspect is whenever I reopen the project in unity it defaults back to and recreates the Assembly-CSharp.csproj file and does not allow me to change it under any circumstances. I am 100% positive everything else in the code is correctly formatted, whether or not the code itself will do what I want it to do is NOT the issue. This problem persisted even with free to test program files that were tested in Unity before.

The code is formatted as follows

 using System.Collections;
 using System.Collections.Generic;
 using UnityEngine;
 
 public class Movement : MonoBehaviour
 {
     void Update()
     {
         if (GetComponent<Health>().current > 0)
         {
             if (clickedSomewhere())
             {
                 moveToDestination();
             }
         }
     }
 }

I saved the .cs file name as the Class name, I ensured MonoBehaviour was spelled with the "u", I even tried replacing the colon with "extends" to see if it was a programming language error. Absolutely nothing I have attempted has resolved this issue and it is getting very frustrating to attempt to use this program to even learn how to program let alone have a functional piece of software when all is said and done.

Comment
Add comment · Show 2
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 unity_Yh_5KEl-Gn1CBg · Jul 22, 2020 at 07:47 PM 0
Share

Hi $$anonymous$$ate,

Did you fix it ? I have same problem and i couldnt find any solution since 1 week.

avatar image logicandchaos · Jul 22, 2020 at 09:39 PM 0
Share

can you show the error and where in your code it's breaking I don't really know what the issue you are having is, are you sure there is a health stript on the object? what are cickedSomewhere() and moveToDestination()? where is that code?

0 Replies

· Add your reply
  • Sort: 

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

120 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 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

can mono touch be used to make unity iPhone plugins 0 Answers

how to select which object i want to use in itween C# 0 Answers

Problem with 3D platform tutorial 2 Answers

AssetPostprocessor (in dll) doesn't work when there's a compiler error in another script 0 Answers

I test to build a WebGL app and got a compiler error 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