Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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 /
  • Help Room /
avatar image
0
Question by Adagio-81 · Jan 28, 2021 at 02:23 PM · visual studioassemblyreferencesassemblies

My projects can't find each other in Visual Studio

I'm currently using version 20.20.2.2f1 and the newest version of Visual Studio Community 2019 (16.8.4)

In my project I'm using SimpleInput found in Asset Store. This has worked fine until yesterday when I tried to add a CustomEditor script. Now neither SimpleInput or my CustomEditor works

The problems are that CustomEditor (Assembly-CSharp-Editor project) can't find the classes from the main project (Assembly-CSharp) and the main project can't find SimpleInput (SimpleInput.Runtime project)

At first when I added my CustomEditor script, the SimpleInput was fine, but in search of a solution for CustomEditor I managed to break any connection to SimpleInput. This was done by adding Assembly Definition and Assembly Definition Reference objects to the main project and the editor folder. While this did fix the CustomEditor problem, it created the problem for CustomEditor. I tried to roll it back to before, but now nothing works. I tried reimporting SimpleInput

The Build Order seems fine. It has the following: SimpleInput.Runtime SimpleInput.Editor Assembly-CSharp Assembly-CSharp-Editor

The problem is only when it's open in visual Studio. I can still run it in Unity, but it makes scripting much more difficult

I tried to delete all .sln and .csproj files to get Unity to rebuild them, but that didn't help

SimpleInput.Editor requires SimpleInput.Runtime, but as with all others, this one can't find the required project. I can see under references that the reference seems to be correct. Here's what's written in the csproj files:

SimpleInput.Runtime.csproj:

 <PropertyGroup>
     <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
     <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
     <ProductVersion>10.0.20506</ProductVersion>
     <SchemaVersion>2.0</SchemaVersion>
     <RootNamespace></RootNamespace>
     **<ProjectGuid>{E2857400-636D-B3CC-C6EB-0802E8039CF4}</ProjectGuid>**
     <OutputType>Library</OutputType>
     <AppDesignerFolder>Properties</AppDesignerFolder>
     <AssemblyName>SimpleInput.Runtime</AssemblyName>
     <TargetFrameworkVersion>v4.7.1</TargetFrameworkVersion>
     <FileAlignment>512</FileAlignment>
     <BaseDirectory>.</BaseDirectory>
   </PropertyGroup>


Assembly-CSharp.csproj:

 <ItemGroup>
     <ProjectReference Include="SimpleInput.Runtime.csproj">
       **<Project>{E2857400-636D-B3CC-C6EB-0802E8039CF4}</Project>**
       <Name>SimpleInput.Runtime</Name>
       <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
     </ProjectReference>
     <ProjectReference Include="SimpleInput.Editor.csproj">
       <Project>{2054931F-D4C4-1192-5058-067B703F24F3}</Project>
       <Name>SimpleInput.Editor</Name>
       <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
     </ProjectReference>
   </ItemGroup>

The references are there, Visual Studio just can't seem to figure it out

Anybody else who has experienced this?

Comment
Add comment · Show 5
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 xxmariofer · Jan 28, 2021 at 04:05 PM 0
Share

Have you tried removig all the solution and leaving visual generate them again?

avatar image Adagio-81 xxmariofer · Jan 29, 2021 at 06:34 AM 0
Share

Yeah, I have tried that, didn't do anything I also tried reinstalling Visual Studio

avatar image xxmariofer Adagio-81 · Jan 29, 2021 at 08:53 AM 0
Share

Have you tried creating an empty project, import the assets and the editor script, see if it works fine and try to find diference in the csproj or visual config?

Show more comments

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

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

Visual studio cannot find references to dlls from custom assembly definitions 2 Answers

Where is the Definition for Unity AsmDef Files? 0 Answers

Getting "copying assembly from temp folder to library script assemblies failed". Tried everything, nothing works. 2 Answers

How to get started with Azure Blobg Storage? (How to I add the correct namespace?) 1 Answer

UnityEngine .DLL files are buried under Managed/UnityEngine/ 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