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 fashrista · Mar 14, 2018 at 12:28 PM · dllplugins.netframework

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

I am planing on writing a c# plugin for Unity, that is building a plugin.dll file outside of unity environment(in visual studio), and than using it in my unity project.

When researching this topic I found conflicting information, so I decided to ask you guys: In visual studio I now have a project class library. When I click through properties/application/TargetFramework I can see a dropdown with different .NET frameworks. In Unity Editor I have in buildSettings/playerSettings/otherSettings/ApiCompatibilityLevel: .NET 2.0. So which TargetFramevork should I use in Visual studio so my .dll is compatible with my unity project, and why is that. Ofcourse I would like to use something higher than 2.0 but maybe not the latest. to enshure wider (unupdated)machine compatibility (as I understand this).

Thanks for all the info, it is much appreciated. alt text

vs.png (22.4 kB)
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 fashrista · Mar 14, 2018 at 12:32 PM 0
Share

ps: this plugin.dll will be used in other non unity applications, so I guess Target Frameworks like Unity 3.5 full base class libraries are a no-go?

1 Reply

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

Answer by fashrista · Mar 14, 2018 at 03:21 PM

Ok I can now answer this.question myself; Through quick trial and error routine Unity cried out that I should be using .Net 3.5 Framework or lower. So I tried 3.5 visual studio dll bild and it works great. Thanks anyway and hope this thread helps anyone with similar issues. If anyone has something to add on this topic please do so, 'couse my answer does not really explain anything.

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

74 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

Related Questions

NuGetForUnity not working with .NET 4.x? 0 Answers

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

How to change Visual Studio project Target Framework to .net 4.6.X? 0 Answers

Importing a DLL that contains C#-wrapped C++ Code 0 Answers

Unity plugins 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