- Home /
MSVSC2013: failed to find SLN File
I have this working for my current main project, though i've no idea how i managed it. But i get the following error on attempting to open scripts in any newly created project:
Microsoft Visual Studio
The following files were specified on the command line:
E:\Projects\Testing Ground\($File)\UnityVS.($File).sln
These files could not be found and will not be loaded.
OK
---------------------------.'
I'm trying to open them via doubleclicking the script asset within unity. Things are supposed to be all setup to go. what's wrong here?
Do I have to import vs tools for each project? is it possible to setup to be there by default ?
Answer by OldUnityFool · Mar 25, 2015 at 08:58 AM
You must import Visualstudio 2013 tools .unitypackage in your new project. Then it works in my projects!
is that a default package? i dont recall ever using that before
No, it´s not a default package. That are the former UNITY VS tools. Now owned and developed by $$anonymous$$icrosoft. See link: https://visualstudiogallery.msdn.microsoft.com/20b80b8c-659b-45ef-96c1-437828fe7cf2
If you import it, you get a new tab ine menu-bar: Visual Studio Tools.
oh yes. I missed this package also and found it there:
C:\Program Files (x86)\$$anonymous$$icrosoft Visual Studio Tools for Unity\2013
Yes, if you install the Visual Studio 2013 tools from my link above, they are located in this folder.
Answer by Hrungdak · Mar 25, 2015 at 03:24 PM
Have you tried to use the Visual Studio menu in Unity?
Create a new project in unity.
in Unity: Menu Visual Studio Tools/Generate Project Files
in Unity: Menu Visual Studio Tools/Open in Visual Studio
works for me.
Answer by DAVcoHL · Mar 04, 2018 at 02:43 PM
I encountered this error after upgrading my project to Unity 2018.1.0 beta. Hopefully this can help someone:
I was able to re-generate the .sln files by right-clicking a .cs file in the project view and selecting "Reimport". Unity then recompiled the project and generated the .sln files.
Answer by binarie · May 30, 2018 at 06:46 PM
I had the same issue when creating a new project with 2018.1.0f2.
In Unity go to Edit>Preferences>External Tools
Switch External Script Editor from 'Visual Studio 2015' to 'Visual Studio 2017'.
Not sure why 2015 was in there as an option but this solved it for me.
Your answer