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 /
  • Help Room /
avatar image
0
Question by kzagon · Aug 14, 2017 at 10:26 AM · .net

How to change .NET to 4.6 in Unity 2017.1.0f3?

I want to use a .dll which I used with a previous version of Unity, for another project (on the latest version of unity v2017.1.0f3). When I add the file to the assest folder and click on it it says, "Plugin targets .NET 4.x and Editor can only use .NET 3.5 or lower". I tried changing the configuration setting as instructed in the post here: http://answers.unity3d.com/questions/1385721/net-framework-46-support-issue.html

But I can't seem to find the configuration option. I have checked the Edit> Project Settings> Player AND Editor panes but I can't find this. I even tried changing the .csproj file by editting the and unity subset to 4.6. Still when I select the dll it says "Plugin targets .NET 4.x and Editor can only use .NET 3.5 or lower".

There is also an unanswered post: http://answers.unity3d.com/questions/1364065/problem-with-changing-unity-2017-to-net-46.html

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 gargd · Nov 23, 2017 at 01:45 AM 0
Share

Hi @$$anonymous$$zagon, I ran into the same problem, please let me know if you could fix this issue. Thanks!

avatar image Henry_Lau · Feb 02, 2018 at 12:25 PM 0
Share

This problem is very troublesome, now Unity2017.3 can switch, in the Project Setting - > Other Setting - > Script RunTime Version, after the change need to restart the Project, this is a test function, can only temporarily solve the problem of new resources to import, in fact, under the framework of your Project or 3.5 so there are a lot of dependence is not, even if you go to manually download dependencies, but some kinds is still under the System of the old, and you cannot update, so now, for the moment can only solve some basically depend on the package less DLL import resources

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Henry_Lau · Feb 02, 2018 at 12:24 PM

This problem is very troublesome, now Unity2017.3 can switch, in the Project Setting - > Other Setting - > Script RunTime Version, after the change need to restart the Project, this is a test function, can only temporarily solve the problem of new resources to import, in fact, under the framework of your Project or 3.5 so there are a lot of dependence is not, even if you go to manually download dependencies, but some kinds is still under the System of the old, and you cannot update, so now, for the moment can only solve some basically depend on the package less DLL import resources

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
0

Answer by gStormDesign · Jul 24, 2020 at 11:54 AM

THIS

.

I'm only surprised this issue is not more widespread across this site, stack overflow, etc because it relates to making a .dll for the Unity Editor, perhaps as opposed to making a Unity build that uses .NET 4x at runtime with raw C#. (and, if the internet is any indication, these .NET 3.5 / .NET 4.x issues with editor vs runtime have been going on for three of four years now)

.

Out of the box, with Visual Studio (2017), Unity 2017,18,19+ have been providing .NET 4 from VS, not 3.5 or less.

.

Which means, out of the box, C# Unity code cannot make a dll for the editor. While one may use the player setting to allow their project to use .NET 4.x at runtime, the editor uses 3.5.

.

This was less of a problem until very recently (a cascade of Unity updates in the last two weeks), when suddenly older dll .NET 3.5 (or probably less) references made with a much older version of Unity that came with MonoDevelop could not link properly with the editor.

.

The main question is: Why on earth would the Unity editor use a .NET version that is not supported out-of-the-box by using the provided code editor, Visual Studio? (Is it that a dll is never expected to be made by Visual Studio for the Unity editor? And how can this recent assembly reference breakage not break every dll asset on the Asset Store?) oof.

.

Let's hope this does raise heck, and prompt the included .NET assembly references for Visual Studio to actually be compatible with the Unity editor, so we can actually build a dll that works for the editor.

.

It would be a let down if what is expected is for all dll developers to chase down compatibility issues based on changes to frequent Unity updates, while not supplying them with the necessary dll build assembly references. :\

.

Unity 2019.4.4f1 (now just popping up there's another new version, that's four in as many weeks)

VS Community 2017 v.15.9.24

.

my $0.02

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

114 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

Related Questions

Windows Store build errors inside Unity 1 Answer

.Net 3.5 to 4.6 Upgrade --> messed up scales at Collada Models 0 Answers

System.Net.WebRequest on Xbox One? 0 Answers

Unity .NET 4.6 Socket Exception 2 Answers

[ASP.NET] [WEB API] Problem with HttpWebRequest.ContentType 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