Visual Studio loses ability to attach to Unity, why?Using Git with Visual Studio.gitignore for Visual Studio Projects and SolutionsThe breakpoint will not currently be hit. No symbols have been loaded for this document in a Silverlight applicationDifference between Build Solution, Rebuild Solution, and Clean Solution in Visual Studio?Writing to output window of Visual Studio?How do I fix the Visual Studio compile error, “mismatch between processor architecture”?Can you force Visual Studio to always run as an Administrator in Windows 8?Visual Studio debugging/loading very slowWhy does visual studio 2012 not find my tests?Visual Studio Debugger not attaching to Unity

What's the point of DHS warning passengers about Manila airport?

Zombie diet, why humans?

Should I include salary information on my CV?

Symbol for "not absolutely continuous" in Latex

Three column layout

Is there a short way to check uniqueness of values without using 'if' and multiple 'and's?

Bash echo $-1 prints hb1. Why?

Going to get married soon, should I do it on Dec 31 or Jan 1?

Analog is Obtuse!

Why is the Turkish president's surname spelt in Russian as Эрдоган, with г?

Are there any vegetarian astronauts?

Was "I have the farts, again" broadcast from the Moon to the whole world?

Dual statement category theory

How to modify the uneven space between separate loop cuts, while they are already cut?

How to write or read powers (math) by words?

SPI Waveform on Raspberry Pi Not clean and I'm wondering why

Should I hide continue button until tasks are completed?

Is there any set of 2-6 notes that doesn't have a chord name?

Intuitively, why does putting capacitors in series decrease the equivalent capacitance?

Should I tell my insurance company I have an unsecured loan for my new car?

What happens when your group is victim of a surprise attack but you can't be surprised?

How do I find and plot the intersection of these three surfaces?

can’t run a function against EXEC

How come I was asked by a CBP officer why I was in the US when leaving?



Visual Studio loses ability to attach to Unity, why?


Using Git with Visual Studio.gitignore for Visual Studio Projects and SolutionsThe breakpoint will not currently be hit. No symbols have been loaded for this document in a Silverlight applicationDifference between Build Solution, Rebuild Solution, and Clean Solution in Visual Studio?Writing to output window of Visual Studio?How do I fix the Visual Studio compile error, “mismatch between processor architecture”?Can you force Visual Studio to always run as an Administrator in Windows 8?Visual Studio debugging/loading very slowWhy does visual studio 2012 not find my tests?Visual Studio Debugger not attaching to Unity






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1


















I'm using Visual Studio with Unity. In general in VS I can simply click "Attach to Unity" and it will build the solution and indeed attach to Unity. Sometimes, however, a project loses the "ability" to do so, what means that suddenly clicking the button will only build the solution and not attach to Unity.
I really would like to know what's happening there as I'm not aware of doing anything that could result in such a behaviour.

There are some parameters that might have an effect:



  • it happens only for some Unity projects: a project is either "infected" or it happens never (on my watch)

  • if it starts happening it will always happen until I reboot the PC (closing VS and Unity is not enough)

Thank you










share|improve this question




























    1


















    I'm using Visual Studio with Unity. In general in VS I can simply click "Attach to Unity" and it will build the solution and indeed attach to Unity. Sometimes, however, a project loses the "ability" to do so, what means that suddenly clicking the button will only build the solution and not attach to Unity.
    I really would like to know what's happening there as I'm not aware of doing anything that could result in such a behaviour.

    There are some parameters that might have an effect:



    • it happens only for some Unity projects: a project is either "infected" or it happens never (on my watch)

    • if it starts happening it will always happen until I reboot the PC (closing VS and Unity is not enough)

    Thank you










    share|improve this question
























      1












      1








      1











      I'm using Visual Studio with Unity. In general in VS I can simply click "Attach to Unity" and it will build the solution and indeed attach to Unity. Sometimes, however, a project loses the "ability" to do so, what means that suddenly clicking the button will only build the solution and not attach to Unity.
      I really would like to know what's happening there as I'm not aware of doing anything that could result in such a behaviour.

      There are some parameters that might have an effect:



      • it happens only for some Unity projects: a project is either "infected" or it happens never (on my watch)

      • if it starts happening it will always happen until I reboot the PC (closing VS and Unity is not enough)

      Thank you










      share|improve this question

















      I'm using Visual Studio with Unity. In general in VS I can simply click "Attach to Unity" and it will build the solution and indeed attach to Unity. Sometimes, however, a project loses the "ability" to do so, what means that suddenly clicking the button will only build the solution and not attach to Unity.
      I really would like to know what's happening there as I'm not aware of doing anything that could result in such a behaviour.

      There are some parameters that might have an effect:



      • it happens only for some Unity projects: a project is either "infected" or it happens never (on my watch)

      • if it starts happening it will always happen until I reboot the PC (closing VS and Unity is not enough)

      Thank you







      c# visual-studio debugging unity3d visual-studio-debugging






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 25 at 11:47









      Benjamin ZachBenjamin Zach

      799 bronze badges




      799 bronze badges






















          3 Answers
          3






          active

          oldest

          votes


















          1














          Normally just restarting visual studio is sufficient, this issue was addressed and fixed by MS in VS around early december. Previously it happened each time you made a new script file.



          Make sure you have installed the latest visual studio patch, as well as the "visual studio tools for unity"






          share|improve this answer























          • I updated VS; so far it did not happen. I will mark your answer with reservation it won't happen anymore.

            – Benjamin Zach
            Mar 27 at 15:35


















          1














          I had a similar issue, underneath the file tabs does it say miscellaneous files? To fix it I right clicked the Assembly C-Sharp in the solution explorer and rebuilt the project as shown in the picture.



          Hope this helps.






          share|improve this answer


















          • 1





            Rebuilding the solution or the project does not resolve the problem

            – Benjamin Zach
            Mar 25 at 14:32


















          1














          I had this issue once, what fixed it for me was reconnecting Visual Studio to Unity Edit > Preferences > External Tools > External Script Editor



          Also check the correct version of Visual Studio is listed there.






          share|improve this answer

























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55337121%2fvisual-studio-loses-ability-to-attach-to-unity-why%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            3 Answers
            3






            active

            oldest

            votes








            3 Answers
            3






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1














            Normally just restarting visual studio is sufficient, this issue was addressed and fixed by MS in VS around early december. Previously it happened each time you made a new script file.



            Make sure you have installed the latest visual studio patch, as well as the "visual studio tools for unity"






            share|improve this answer























            • I updated VS; so far it did not happen. I will mark your answer with reservation it won't happen anymore.

              – Benjamin Zach
              Mar 27 at 15:35















            1














            Normally just restarting visual studio is sufficient, this issue was addressed and fixed by MS in VS around early december. Previously it happened each time you made a new script file.



            Make sure you have installed the latest visual studio patch, as well as the "visual studio tools for unity"






            share|improve this answer























            • I updated VS; so far it did not happen. I will mark your answer with reservation it won't happen anymore.

              – Benjamin Zach
              Mar 27 at 15:35













            1












            1








            1







            Normally just restarting visual studio is sufficient, this issue was addressed and fixed by MS in VS around early december. Previously it happened each time you made a new script file.



            Make sure you have installed the latest visual studio patch, as well as the "visual studio tools for unity"






            share|improve this answer













            Normally just restarting visual studio is sufficient, this issue was addressed and fixed by MS in VS around early december. Previously it happened each time you made a new script file.



            Make sure you have installed the latest visual studio patch, as well as the "visual studio tools for unity"







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Mar 25 at 13:45









            BugFinderBugFinder

            14.2k2 gold badges30 silver badges46 bronze badges




            14.2k2 gold badges30 silver badges46 bronze badges












            • I updated VS; so far it did not happen. I will mark your answer with reservation it won't happen anymore.

              – Benjamin Zach
              Mar 27 at 15:35

















            • I updated VS; so far it did not happen. I will mark your answer with reservation it won't happen anymore.

              – Benjamin Zach
              Mar 27 at 15:35
















            I updated VS; so far it did not happen. I will mark your answer with reservation it won't happen anymore.

            – Benjamin Zach
            Mar 27 at 15:35





            I updated VS; so far it did not happen. I will mark your answer with reservation it won't happen anymore.

            – Benjamin Zach
            Mar 27 at 15:35













            1














            I had a similar issue, underneath the file tabs does it say miscellaneous files? To fix it I right clicked the Assembly C-Sharp in the solution explorer and rebuilt the project as shown in the picture.



            Hope this helps.






            share|improve this answer


















            • 1





              Rebuilding the solution or the project does not resolve the problem

              – Benjamin Zach
              Mar 25 at 14:32















            1














            I had a similar issue, underneath the file tabs does it say miscellaneous files? To fix it I right clicked the Assembly C-Sharp in the solution explorer and rebuilt the project as shown in the picture.



            Hope this helps.






            share|improve this answer


















            • 1





              Rebuilding the solution or the project does not resolve the problem

              – Benjamin Zach
              Mar 25 at 14:32













            1












            1








            1







            I had a similar issue, underneath the file tabs does it say miscellaneous files? To fix it I right clicked the Assembly C-Sharp in the solution explorer and rebuilt the project as shown in the picture.



            Hope this helps.






            share|improve this answer













            I had a similar issue, underneath the file tabs does it say miscellaneous files? To fix it I right clicked the Assembly C-Sharp in the solution explorer and rebuilt the project as shown in the picture.



            Hope this helps.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Mar 25 at 12:54









            JamblaJambla

            638 bronze badges




            638 bronze badges







            • 1





              Rebuilding the solution or the project does not resolve the problem

              – Benjamin Zach
              Mar 25 at 14:32












            • 1





              Rebuilding the solution or the project does not resolve the problem

              – Benjamin Zach
              Mar 25 at 14:32







            1




            1





            Rebuilding the solution or the project does not resolve the problem

            – Benjamin Zach
            Mar 25 at 14:32





            Rebuilding the solution or the project does not resolve the problem

            – Benjamin Zach
            Mar 25 at 14:32











            1














            I had this issue once, what fixed it for me was reconnecting Visual Studio to Unity Edit > Preferences > External Tools > External Script Editor



            Also check the correct version of Visual Studio is listed there.






            share|improve this answer



























              1














              I had this issue once, what fixed it for me was reconnecting Visual Studio to Unity Edit > Preferences > External Tools > External Script Editor



              Also check the correct version of Visual Studio is listed there.






              share|improve this answer

























                1












                1








                1







                I had this issue once, what fixed it for me was reconnecting Visual Studio to Unity Edit > Preferences > External Tools > External Script Editor



                Also check the correct version of Visual Studio is listed there.






                share|improve this answer













                I had this issue once, what fixed it for me was reconnecting Visual Studio to Unity Edit > Preferences > External Tools > External Script Editor



                Also check the correct version of Visual Studio is listed there.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 25 at 15:14









                HoloLadyHoloLady

                9421 gold badge8 silver badges25 bronze badges




                9421 gold badge8 silver badges25 bronze badges



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55337121%2fvisual-studio-loses-ability-to-attach-to-unity-why%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                    Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript