Implemented interface member:
method
LoadFromPath
Microsoft.CodeAnalysis.IAnalyzerAssemblyLoader.LoadFromPath(System.String)
53 references to LoadFromPath
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
39
/// This type generally assumes that files on disk aren't changing, since it ensure that two calls to <see cref="
LoadFromPath
(string)"/>
Microsoft.CodeAnalysis.UnitTests (51)
AnalyzerAssemblyLoaderTests.cs (51)
279
Assert.ThrowsAny<Exception>(() => loader.
LoadFromPath
(path));
290
Assembly alpha = loader.
LoadFromPath
(testFixture.Alpha);
309
Assembly alpha = loader.
LoadFromPath
(testFixture.Alpha);
314
Assembly beta = loader.
LoadFromPath
(testFixture.Beta);
331
/// <see cref="AnalyzerAssemblyLoader.
LoadFromPath
(string)"/> call has occurred. If the file
345
Assert.Throws<ArgumentException>(() => loader.
LoadFromPath
(analyzerPath));
357
Assert.Throws<ArgumentException>(() => loader.
LoadFromPath
(testFixture.Beta));
371
Assembly beta = loader.
LoadFromPath
(testFixture.Beta);
550
Assembly gamma = loader.
LoadFromPath
(testFixture.Gamma);
581
Assembly gamma = loader.
LoadFromPath
(gammaFile);
696
Assembly gamma = loader.
LoadFromPath
(gammaFile);
735
Assembly gamma = loader.
LoadFromPath
(gammaFile);
796
Assembly gamma = loader.
LoadFromPath
(testFixture.Gamma);
800
Assembly epsilon = loader.
LoadFromPath
(testFixture.Epsilon);
852
Assembly epsilon = loader.
LoadFromPath
(testFixture.Epsilon);
911
Assembly epsilon = loader.
LoadFromPath
(testFixture.Epsilon);
942
Assembly delta2 = loader.
LoadFromPath
(testFixture.Delta2);
943
Assembly delta2B = loader.
LoadFromPath
(testFixture.Delta2B);
991
Assembly epsilon = loader.
LoadFromPath
(epsilonPath);
1048
Assembly epsilon = loader.
LoadFromPath
(epsilonFile);
1082
Assembly gamma = loader1.
LoadFromPath
(testFixture.Gamma);
1086
Assembly epsilon = loader2.
LoadFromPath
(testFixture.Epsilon);
1142
Assembly gamma = loader.
LoadFromPath
(testFixture.Gamma);
1146
Assembly epsilon = loader.
LoadFromPath
(testFixture.Epsilon);
1239
var assembly = loader.
LoadFromPath
(assemblyFilePath);
1273
var assembly = loader.
LoadFromPath
(assemblyFilePath);
1321
var gamma = loader.
LoadFromPath
(testFixture.GammaReferencingPublicSigned);
1325
var epsilon = loader.
LoadFromPath
(testFixture.EpsilonReferencingPublicSigned);
1351
var delta1Assembly = loader.
LoadFromPath
(testFixture.DeltaPublicSigned1);
1355
var delta2Assembly = loader.
LoadFromPath
(testFixture.DeltaPublicSigned2);
1380
Assembly analyzerAssembly = loader.
LoadFromPath
(testFixture.AnalyzerReferencesSystemCollectionsImmutable1);
1407
Assembly analyzerAssembly = loader.
LoadFromPath
(testFixture.AnalyzerReferencesSystemCollectionsImmutable2);
1429
var copiedAssembly = loader.
LoadFromPath
(destFile);
1444
Assembly analyzerAssembly = loader.
LoadFromPath
(testFixture.AnalyzerWithNativeDependency);
1462
_ = loader.
LoadFromPath
(deltaCopy);
1487
Assembly? delta = loader.
LoadFromPath
(deltaCopy);
1527
Assembly gamma = loader.
LoadFromPath
(gammaFile);
1554
var expected = loader.
LoadFromPath
(path);
1559
var actual = loader.
LoadFromPath
(path);
1578
var expected = loader.
LoadFromPath
(path);
1588
var actual = loader.
LoadFromPath
(path);
1614
var assembly = loader.
LoadFromPath
(analyzerPath);
1637
var assembly = loader.
LoadFromPath
(analyzerPath);
1674
Assembly analyzerAssembly = loader.
LoadFromPath
(testFixture.AnalyzerReferencesSystemCollectionsImmutable1);
1693
Assembly delta = loader.
LoadFromPath
(testFixture.Delta1);
1710
Assembly alpha = loader.
LoadFromPath
(testFixture.Alpha);
1714
Assembly delta = loader.
LoadFromPath
(testFixture.Delta1);
1731
Assembly delta = loader.
LoadFromPath
(testFixture.Delta1);
1754
Assembly loaded = loader.
LoadFromPath
(assembly.Location);
1774
Assembly loaded = loader.
LoadFromPath
(testFixture.Delta1);
1796
Assert.Throws<InvalidOperationException>(() => loader.
LoadFromPath
(testFixture.Delta1));
VBCSCompiler.UnitTests (1)
AnalyzerConsistencyCheckerTests.cs (1)
213
Assert.True(assemblyLoader.
LoadFromPath
(dllFile.Path).GlobalAssemblyCache);