So, I recently updated from Unity 5 to 2017.3.0f3. I had some problems getting this back in order but things are slowly returning to normal. I’m trying to open a Unity script in Visual Studio. Unity will launch Visual Studio and you even see the files in the project, but it keeps showing error windows. Also, MonoDevelop will additionally start up. At first, MonoDevelop was having trouble running until I updated the Gtk# for Windows. Now, I still get those error windows in Visual Studio.
The popup window that keeps coming up says “The ‘Microsoft.VisualStudio.Editor.Implementation.EditorPackage’ package did not load correctly. The problem may have been caused bya configuration change or by the installation of another extension…”
When I try to open the script file in Visual Studio as I see it there in the Solution panel, I get an error window saying “Unrecognized Guid format”.
So, how might I get Unity to open scripts in Visual Studio without a problem…?
Just wanted to add that when I open the .sln file Unity created, I’m able to open the script file just fine. It’s only when opening the script from Unity that I get all the errors. Working with the script file after opening the Solution file directly in VS appears to be a workaround for now.
According to %APPDATAA%\Roaming\Microsoft\VisualStudio\15.0_8df82ecc\ActivityLog.xml, I think the bulk of the real error is:
LegacySitePackage failed for package
[Microsoft.VisualStudio.Editor.Implementation.EditorPackage]Source:
‘mscorlib’ Description: Unrecognized
Guid format. System.FormatException:
Unrecognized Guid format. at
System.Guid.TryParseGuid(String g,
GuidStyles flags, GuidResult& result)
at System.Guid…ctor(String g) at
Microsoft.VisualStudio.Editor.Implementation.LanguageServiceToContentTypeMapper.MakeLanguageServiceContentTypes(SettingsStore
settingsStore) at
Microsoft.VisualStudio.Editor.Implementation.LanguageServiceToContentTypeMapper.InitLanguageServiceToContentTypeMapper(IServiceProvider
serviceProvider) at
Microsoft.VisualStudio.Editor.Implementation.EditorPackage.Initialize()
at
Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider
sp)
And I have a feeling the incorrect GUID Unity is using might be E269B994-EF71-4CE0-8BCD-581C217372E8 instead of the EE04719D-5C14-A3C9-B8B3-A1914BD2798B as defined in the <ProjectGuid> element in the .csproj file.
Hi, does anyone have this problem still? I got it now in 2020 and, 2018, and 2021. Same as @enderandpeter said. Can start script from VS but whenever I go from Unity it gives me an error and “Unrecognized Guid Format” issue.