Skip to content

Commit 41cf69a

Browse files
committed
Remove legacy assembly check
1 parent ef9dae0 commit 41cf69a

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

Packages/com.unity.ide.visualstudio/Editor/VisualStudioIntegration.cs

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -59,35 +59,6 @@ static VisualStudioIntegration()
5959
});
6060

6161
EditorApplication.update += OnUpdate;
62-
63-
CheckLegacyAssemblies();
64-
}
65-
66-
private static void CheckLegacyAssemblies()
67-
{
68-
var checkList = new HashSet<string>(new[] { KnownAssemblies.UnityVS, KnownAssemblies.Messaging, KnownAssemblies.Bridge });
69-
70-
try
71-
{
72-
var assemblies = AppDomain
73-
.CurrentDomain
74-
.GetAssemblies()
75-
.Where(a => checkList.Contains(a.GetName().Name));
76-
77-
foreach (var assembly in assemblies)
78-
{
79-
// for now we only want to warn against local assemblies, do not check externals.
80-
var relativePath = FileUtility.MakeRelativeToProjectPath(assembly.Location);
81-
if (relativePath == null)
82-
continue;
83-
84-
Debug.LogWarning($"Project contains legacy assembly that could interfere with the Visual Studio Package. You should delete {relativePath}");
85-
}
86-
}
87-
catch (Exception)
88-
{
89-
// abandon legacy check
90-
}
9162
}
9263

9364
private static void RunOnceOnUpdate(Action action)

0 commit comments

Comments
 (0)