Setup test VB workspace more like a real project

Allows use of Visual Basic constants etc.
This commit is contained in:
GrahamTheCoder 2017-12-05 23:31:08 +00:00
Родитель 5ad601a52d
Коммит 02a21d69c1
2 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -20,6 +20,7 @@ namespace RefactoringEssentials.Tests
static MetadataReference systemAssembly;
static MetadataReference systemXmlLinq;
static MetadataReference systemCore;
private static MetadataReference visualBasic;
internal static MetadataReference[] DefaultMetadataReferences;
@ -33,11 +34,13 @@ namespace RefactoringEssentials.Tests
systemAssembly = MetadataReference.CreateFromFile(typeof(System.ComponentModel.BrowsableAttribute).Assembly.Location);
systemXmlLinq = MetadataReference.CreateFromFile(typeof(System.Xml.Linq.XElement).Assembly.Location);
systemCore = MetadataReference.CreateFromFile(typeof(Enumerable).Assembly.Location);
visualBasic = MetadataReference.CreateFromFile(typeof(Microsoft.VisualBasic.Constants).Assembly.Location);
DefaultMetadataReferences = new[] {
mscorlib,
systemAssembly,
systemCore,
systemXmlLinq
systemXmlLinq,
visualBasic
};
foreach (var provider in typeof(DiagnosticAnalyzerCategories).Assembly.GetTypes().Where(t => t.GetCustomAttributes(typeof(ExportCodeFixProviderAttribute), false).Length > 0))

Просмотреть файл

@ -65,6 +65,7 @@
<HintPath>..\packages\Microsoft.CodeAnalysis.Elfie.0.10.6\lib\net46\Microsoft.CodeAnalysis.Elfie.dll</HintPath>
</Reference>
<Reference Include="Microsoft.CSharp" />
<Reference Include="Microsoft.VisualBasic" />
<Reference Include="System" />
<Reference Include="System.AppContext, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.AppContext.4.3.0\lib\net46\System.AppContext.dll</HintPath>