

After updating the Visual Studio Editor Package to 2.0.28 the scripts will no longer open as a project. Edit > Preferences > External Script Editor > Shows “Microsoft Visual Studio (Internal).” Also, there are many bugs in the console related to this. UnityException: Calls to "AssetDatabase.IsAssetImportWorkerProcess" are restricted during . Please make sure this function is not called from code that runs during code reload (e.g. [OnCodeLoaded]) Microsoft.Unity.VisualStudio.Editor.UnityInstallation.get_IsMainUnityEditorProcess () (at ./Library/PackageCache/com.unity.ide.visualstudio@b5edea5f33f4/Editor/UnityInstallation.cs:18) Microsoft.Unity.VisualStudio.Editor.VisualStudioEditor..cctor () (at ./Library/PackageCache/com.unity.ide.visualstudio@b5edea5f33f4/Editor/VisualStudioEditor.cs:34) Rethrow as TypeInitializationException: The type initializer for 'Microsoft.Unity.VisualStudio.Editor.VisualStudioEditor' threw an exception. Microsoft.Unity.VisualStudio.Editor.VisualStudioIntegration..cctor () (at ./Library/PackageCache/com.unity.ide.visualstudio@b5edea5f33f4/Editor/VisualStudioIntegration.cs:40) Rethrow as TypeInitializationException: The type initializer for 'Microsoft.Unity.VisualStudio.Editor.VisualStudioIntegration' threw an exception. __UnityModuleInitialization.Initialize () (at ./Library/Bee/artifacts/1900b0aEDbg.dag/Unity.Analyzers.Common/Unity.Analyzers.Common.LifecycleAttributes.LifecycleAttributesCodeGenerator/UnityModuleInitialization.lifecycle.generated.cs:8) System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at :0) Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation. System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at :0) System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at :0) Unity.Scripting.LifecycleManagement.LifecycleController.ExecuteInitializationMethods (Unity.Scripting.LifecycleManagement.OrderedAssemblyList loadedAssemblies) (at :0) Unity.Scripting.LifecycleManagement.LifecycleController.OnAssembliesLoaded (Unity.Scripting.LifecycleManagement.OrderedAssemblyList loadedAssemblies) (at :0) Unity.Scripting.LifecycleManagement.AssemblyLoadedScopeBase.Enter (Unity.Scripting.LifecycleManagement.ScopeTransitionHelper scopeTransitionHelper) (at :0) Unity.Scripting.LifecycleManagement.LifecycleScopeBase.OnEnter (Unity.Scripting.LifecycleManagement.ScopeTransitionHelper scopeTransitionHelper) (at :0) Unity.Scripting.LifecycleManagement.ActiveLifecycleScopeWithContext`1[T].OnEnter (Unity.Scripting.LifecycleManagement.ScopeTransitionHelper helper) (at :0) Unity.Scripting.LifecycleManagement.ActiveLifecycleScopesTracker.TryEnterScope[TContext] (Unity.Scripting.LifecycleManagement.LifecycleScopeWithContext`1[T] lifecycleScope) (at :0) Unity.Scripting.LifecycleManagement.ActiveLifecycleScopesTracker+ScopeTransitionRequestWithContext`1[T].Transition (Unity.Scripting.LifecycleManagement.ActiveLifecycleScopesTracker tracker) (at :0) Unity.Scripting.LifecycleManagement.ActiveLifecycleScopesTracker.ExecuteTransitions (System.Boolean executeAndPop) (at :0) Unity.Scripting.LifecycleManagement.ActiveLifecycleScopesTracker.CreateScopeTransitionRequest[T] (Unity.Scripting.LifecycleManagement.LifecycleScopeWithContext`1[T] lifecycleScope, Unity.Scripting.LifecycleManagement.ActiveLifecycleScopesTracker+ScopeTransitionType scopeTransitionType, System.Boolean alsoExitNestedScopes) (at :0) Unity.Scripting.LifecycleManagement.ActiveLifecycleScopesTracker.RequestEnterScope[T] (Unity.Scripting.LifecycleManagement.LifecycleScopeWithContext`1[T] lifecycleScope) (at :0) Unity.Scripting.LifecycleManagement.LifecycleController+<>c__DisplayClass38_0`1[T]. b__0 () (at :0) Unity.Scripting.LifecycleManagement.LifecycleController.ExecuteOnMainThread (System.String transitionType, System.String scopeName, System.Action action) (at :0) Unity.Scripting.LifecycleManagement.LifecycleController.EnterScope[T] (Unity.Scripting.LifecycleManagement.LifecycleScopeWithContext`1[T] scope) (at :0) UnityEngine.DomainReloadLifecycleController.Internal_EnterAssembliesLoadedLifecycleScopes_PreDeserialization () (at :0) UnityEngine.DomainReloadLifecycleController:Internal_EnterAssembliesLoadedLifecycleScopes_PreDeserialization() 1 post - 1 participant Read full topic
Unity Discussions
discussions.unity.com