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 DarkSlash · Oct 25, 2015 at 02:25 PM · visual studiojson.netvisualstudio

Unity changes my VS solution configuration

Im using Unity 5.2 and Visual Studio Professional 2013. I use json.net to serialize/deserialize json text into objects. I have to set up the solution to Framework 3.5 to work. But Unity constantly changes the project to Framework 3.5 full base class library, changes the solution target platform to "Any CPU" (I need "x86"), and adds a references of json to the EDITOR project (I just need it on the regular project).

How I prevent Unity to do this?

NOTE: In previous version of UnityVS plugin (where you import in Unity) you can wrote a script for this. But in this versions Microsoft already has the UnityVS integrated in Visual Studio.

Anyone else having this issue?

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Myrtanim · Jan 19, 2016 at 08:28 AM

1. Check import settings

If you are using the json.net DLL, then first check the import settings of it in the Unity editor.

Just navigate to your Plugins folder and check the Selected platforms and Platform settings for the DLL.

Since you say, that the reference is added to the Editor project you should also check, if the DLL is within any Editor folder. Only then the reference is moved to the editor project.

2. Alter the project settings of VS project

Beware this is the complicated but more flexible solution!

You could hook up to the Project File Generation API of Visual Studio Tools for Unity.

But first you should compare your own *.csproj files (with all the hand-made setting) with the one Unity generates. In the end *.csproj files are just XMLs, so just open them in a text editor.

I think, you need to adjust some nodes in the <PropertyGroup> node, namly <Platform> (for changing the target platform), <TargetFrameworkVersion> and <TargetFrameworkProfile> (for the .Net framework settings).

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

31 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

Related Questions

move object when player reach trigger 0 Answers

Unity 5.4.2f2 Project Target Framework issues with Visual Studio on Windows 10 0 Answers

Setting App Compatibility level to 4.6, not 4.x 0 Answers

csc.exe has stopped working ,csc.exe has stoped working 0 Answers

Unity freezes when opening Visual Studio 6 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