Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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 mschrayer · Dec 21, 2021 at 03:32 PM · editorvisual studioplugins

Unable to integrate Visual Studio

I am using Unity 2019.4.2. and Visual Studio 2022 Professional. I have already selected VS as the script editor with the editor attaching box checked under Edit > Preferences, and the .csproj and .sln files generate just fine. I also have VS tools for Unity Game Development installed. However, when I open my Unity project in Visual Studio (either directly from the .sln or by opening scripts or C# projects from the Unity editor), VS doesn't seem to "know" it's looking at a Unity project and I am unable to use any of the dev tools for Unity. I got a warning that the project was not built with the VS tools for Unity, but I'm not sure how to fix that since I've had the tools installed the whole time. I have re-generated the project files many times to no avail.,I am using Unity 2019.4.2f1. When I try to add modules to my installation, the only option under "Dev Tools" is "Visual Studio Community 2019;" however, I am using Visual Studio 2022. So even though all the necessary tools are installed for Visual Studio and I have set VS as the external script editor with editor attaching enabled, VS does not "know" that it is editing a Unity project when I open scripts in VS from Unity. How can I install the correct version of this plugin to edit my Unity project in VS?

Comment
Add comment · Show 3
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 metalted · Dec 21, 2021 at 04:39 PM -1
Share

I think VS Community 2019 is installed when you install a version of unity. You can select it during installation. Maybe you have 2 version of VS installed and your preferred editor is 2022, which is not linked to unity, because it says 2019. Maybe if you right click a .cs file in the explorer, and open with... select VS 2019 and check Always use this program. It's just an idea, based on an assumption, but its worth a try. I had some problems too, for me it was as simple as selecting the dev tools and regenerate the project files and i got it working. Maybe you could try reinstalling VS Code from the unity installation so you have a fresh setup. The integration is called Unity Intellisense i think, so maybe you can find some better information using that search term that might solve your problem.

avatar image zORg_alex · Dec 22, 2021 at 07:48 AM 0
Share

Same thing Bro. I've met this few weeks ago, and downgraded to vs2019. But I still want umph of using 2022 when I need to do quite a bit of writing scripts.

avatar image zORg_alex · Dec 22, 2021 at 08:09 AM 0
Share

Seems like some people get it to work by ticking Player Projects in Unity Preferences/External Tools. Others uninstalled VS2019, if I remember correctly that didn't worked for me, on another computer. source

0 Replies

· Add your reply
  • Sort: 

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

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

Can I use multiple plugins in the Unity 5 32-bit editor? 2 Answers

OpenFileAtLineExternal always opens file with MonoDevelop and never Visual Studio? 0 Answers

Visual studio can't attach to unity editor. 7 Answers

Rebuilding (overwriting) a plugin DLL while the editor is open 0 Answers

How to avoid unity plugins long processing time 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