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
6
Question by ignavus · Jun 12, 2017 at 09:09 AM · .netframework

Problem with changing Unity 2017 to .Net 4.6

I don't know if this is the right place to post this question, if not then my apologies. I am trying to test the .Net 4.6 support in Unity 2017 beta, the problem is: even after I change the script runtime version in player settings to 4.6, the project itself remains on .Net 3.5 so while Unity Editor sees no error, inside VS there is a lot of error, due to it not recognizing the new framework.

I tried restarting changing the framework from the project build settings in VS, but once I go unity it refreshes the .csproj file resetting all the settings I've made.

Is there something I am missing?

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 dbc_orp_kids · Jun 14, 2017 at 07:11 AM 0
Share

We have the same problem here, on one dev's machine it works like a charm, and on the other's it does not. Which is pretty annoying because VS keeps showing a lot of errors.

2 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by dajyareo · Aug 19, 2017 at 10:01 PM

I fixed this by removing the following line from the csproj files:

   <LangVersion Condition=" '$(VisualStudioVersion)' != '10.0' ">4</LangVersion>

Unfortunately this will only last until the csproj file is regenerated :P At least it's a work-around until they fix this bug.

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

Answer by cyliax · Jun 14, 2017 at 07:17 AM

Same problem here. Tried b7 and now b9 with no success. Switched back and forward to 4.6 support, no changes. Is there anything I can do, to have a proper VS2015 solution with C# language version 6 support?

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 cyliax · Jun 14, 2017 at 07:43 AM 0
Share

I found out that something happens with the .csproj files. I had four files, two of them with the appendix .CSharp.csproj and two without. In those *.CSharp.csproj files the v3.5 .Net framework was used. I don't know why Unity has generated them? Now I works with b7 and b9... but I'm not sure why.

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

7 People are following this question.

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

Related Questions

Trying to use SDK as plugin that compiled with .NET Framework 4.0 in Unity 1 Answer

text to speech in webplayer 0 Answers

Unity 5.3.1 and Visual Studio 2015: Project Target Framework Not Installed Error Message? 4 Answers

Monodevelop Net Framework 4 change error 5 Answers

Advantages of .NET framework 4.6 upgrade? 1 Answer


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