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
1
Question by OperationT · Apr 12, 2016 at 03:53 PM · .netupdate problemframeworkwarningsdependency

Getting Unresolved Reference Warnings After Unity Update (To 5.3.4f1 64-bit)

After updating to Unity 5.3.4f1 (64-bit), I am receiving three similar warnings:

"The primary reference "UnityEditor" could not be resolved because it has an indirect dependency on the framework assembly "System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v3.5,Profile=Unity Web v3.5". To resolve this problem, either remove the reference "UnityEditor" or retarget your application to a framework version which contains "System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089". GameProject.CSharp"

..and two similar Warnings that is almost identical but with "UnityEngine.Networking" and "UnityEngine.UI" instead of the above "UnityEditor" (in bold).

From the two solutions listed in the warning, I don't want to remove the references as I might need it in the future. In regards to re-targeting my application, from what I understand, we can only choose between ".NET 2.0" and ".NET 2.0 Subset" from Unity > Edit > Project Settings > Player > Api Compatibility Level, but choosing either did not eliminate the warnings.

Comment
Add comment · Show 1
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 OperationT · Apr 11, 2016 at 08:27 PM 0
Share

Seeing that there are only .NET Framework 4.5 and later versions installed in my Windows OS, I wondered if I needed .NET Framework 3.5 installed specifically on my OS.

I proceeded to "turn on a feature" for .NET Framework 3.5 in Windows > Control Panel > Windows Features. Then I restarted my computer, just to be certain.

This has proved to be ineffective in solving the warnings.

3 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by OperationT · Apr 14, 2016 at 05:11 AM

Setting the Api Compatibility Level from ".NET 2.0 Subset" to ".NET 2.0" does indeed solve the warning, but only after restarting Unity3D and/or Visual Studio is required (I restarted both, so I don't know which one). After restarting Visual Studio, it'll prompt you to reload scripts that have been changed outside of Visual Studio. After reloading, the warnings are gone.

I have confirmed this through reproducing and re-resolving the warning a couple of times.

Comment
Add comment · 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
3

Answer by · Jun 18, 2016 at 05:46 AM

+1. This solution also worked for me. Error appeared in update to 5.3.5f. To summarize solution:

Change Setting:

Unity > Edit > Project Settings > Player > Api Compatibility Level

From:

".NET 2.0 Subset"

To

".NET 2.0"

Comment
Add comment · Show 1 · 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 Phantomb · Nov 13, 2016 at 04:27 AM 0
Share

Thanks, had the same problem. I did have to switch my build platform from Web to PC before the Api Compatibility Level option showed. Also you don't even need to restart Unity nor Visual Studio for this to take effect. Just click 'okay' for the visual studio reload popup.

avatar image
0

Answer by ThomLaurent · Feb 24, 2017 at 12:34 PM

For me it was due to the default platform I was building on. Changing it from Web Player to PC, Mac & Linux Standalone in File > Build Settings... (+ hit Switch Plateform) worked.

Comment
Add comment · 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

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

6 People are following this question.

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

Related Questions

Unity 2021.2 .Net Framework 4.7.2 0 Answers

How to change the target framework to Unity 3.5 .net Subset Base Class Libraries in the MonoDevelop-Unity? 1 Answer

c# .dll and a target .NET framework to use in visual studio build 1 Answer

Unity switches MonoDevelop to .Net 3.5 constantly 0 Answers

i had error while debbuging a code in mono developunity editor i cant ressolve this 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