@@ -29,7 +29,7 @@ protected virtual void OnPropertyChanged([CallerMemberName] string propertyName
2929 }
3030 }
3131}" ) ;
32- var compilation = CSharpCompilation . Create ( "test" , new [ ] { syntaxTree } , MetadataReferences . FromAttributes ( ) ) ;
32+ var compilation = CSharpCompilation . Create ( "test" , new [ ] { syntaxTree } , Settings . Default . MetadataReferences ) ;
3333 var semanticModel = compilation . GetSemanticModel ( syntaxTree ) ;
3434 var classDeclaration = syntaxTree . FindClassDeclaration ( "C" ) ;
3535 var type = semanticModel . GetDeclaredSymbol ( classDeclaration ) ;
@@ -57,7 +57,7 @@ protected virtual void OnPropertyChanged([CallerMemberName] string propertyName
5757 }
5858 }
5959}" ) ;
60- var compilation = CSharpCompilation . Create ( "test" , new [ ] { syntaxTree } , MetadataReferences . FromAttributes ( ) ) ;
60+ var compilation = CSharpCompilation . Create ( "test" , new [ ] { syntaxTree } , Settings . Default . MetadataReferences ) ;
6161 var semanticModel = compilation . GetSemanticModel ( syntaxTree ) ;
6262 var classDeclaration = syntaxTree . FindClassDeclaration ( "C" ) ;
6363 var type = semanticModel . GetDeclaredSymbol ( classDeclaration ) ;
@@ -91,7 +91,7 @@ protected virtual void OnPropertyChanged([CallerMemberName] string propertyName
9191 }
9292 }
9393}" ) ;
94- var compilation = CSharpCompilation . Create ( "test" , new [ ] { syntaxTree } , MetadataReferences . FromAttributes ( ) ) ;
94+ var compilation = CSharpCompilation . Create ( "test" , new [ ] { syntaxTree } , Settings . Default . MetadataReferences ) ;
9595 var semanticModel = compilation . GetSemanticModel ( syntaxTree ) ;
9696 var classDeclaration = syntaxTree . FindClassDeclaration ( "C" ) ;
9797 var type = semanticModel . GetDeclaredSymbol ( classDeclaration ) ;
@@ -125,7 +125,7 @@ protected virtual void OnPropertyChanged([CallerMemberName] string propertyName
125125 }
126126 }
127127}" ) ;
128- var compilation = CSharpCompilation . Create ( "test" , new [ ] { syntaxTree } , MetadataReferences . FromAttributes ( ) ) ;
128+ var compilation = CSharpCompilation . Create ( "test" , new [ ] { syntaxTree } , Settings . Default . MetadataReferences ) ;
129129 var semanticModel = compilation . GetSemanticModel ( syntaxTree ) ;
130130 var classDeclaration = syntaxTree . FindClassDeclaration ( "C" ) ;
131131 var type = semanticModel . GetDeclaredSymbol ( classDeclaration ) ;
@@ -163,7 +163,7 @@ public class C : N.ViewModelBase
163163 }
164164}" ) ;
165165
166- var compilation = CSharpCompilation . Create ( "test" , new [ ] { viewModelBaseCode , code } , MetadataReferences . FromAttributes ( ) ) ;
166+ var compilation = CSharpCompilation . Create ( "test" , new [ ] { viewModelBaseCode , code } , Settings . Default . MetadataReferences ) ;
167167 var semanticModel = compilation . GetSemanticModel ( code ) ;
168168 var classDeclaration = code . FindClassDeclaration ( "ViewModel" ) ;
169169 var type = semanticModel . GetDeclaredSymbol ( classDeclaration ) ;
@@ -201,7 +201,7 @@ public class C : N.ViewModelBase
201201 }
202202}" ) ;
203203
204- var compilation = CSharpCompilation . Create ( "test" , new [ ] { viewModelBaseCode , code } , MetadataReferences . FromAttributes ( ) ) ;
204+ var compilation = CSharpCompilation . Create ( "test" , new [ ] { viewModelBaseCode , code } , Settings . Default . MetadataReferences ) ;
205205 var semanticModel = compilation . GetSemanticModel ( code ) ;
206206 var classDeclaration = code . FindClassDeclaration ( "ViewModel" ) ;
207207 var type = semanticModel . GetDeclaredSymbol ( classDeclaration ) ;
@@ -250,7 +250,7 @@ protected virtual void OnPropertyChanged([CallerMemberName] string propertyName
250250 }
251251}" ) ;
252252
253- var compilation = CSharpCompilation . Create ( "test" , new [ ] { syntaxTree } , MetadataReferences . FromAttributes ( ) ) ;
253+ var compilation = CSharpCompilation . Create ( "test" , new [ ] { syntaxTree } , Settings . Default . MetadataReferences ) ;
254254 var semanticModel = compilation . GetSemanticModel ( syntaxTree ) ;
255255 var classDeclaration = syntaxTree . FindClassDeclaration ( "C" ) ;
256256 var type = semanticModel . GetDeclaredSymbol ( classDeclaration ) ;
@@ -277,7 +277,7 @@ private static void OnPropertyChanged([CallerMemberName] string propertyName = n
277277 }
278278 }
279279}" ) ;
280- var compilation = CSharpCompilation . Create ( "test" , new [ ] { syntaxTree } , MetadataReferences . FromAttributes ( ) ) ;
280+ var compilation = CSharpCompilation . Create ( "test" , new [ ] { syntaxTree } , Settings . Default . MetadataReferences ) ;
281281 var semanticModel = compilation . GetSemanticModel ( syntaxTree ) ;
282282 var classDeclaration = syntaxTree . FindClassDeclaration ( "C" ) ;
283283 var type = semanticModel . GetDeclaredSymbol ( classDeclaration ) ;
@@ -311,7 +311,7 @@ protected virtual void OnPropertyChanged([CallerMemberName] string propertyName
311311 }
312312 }
313313}" ) ;
314- var compilation = CSharpCompilation . Create ( "test" , new [ ] { syntaxTree } , MetadataReferences . FromAttributes ( ) ) ;
314+ var compilation = CSharpCompilation . Create ( "test" , new [ ] { syntaxTree } , Settings . Default . MetadataReferences ) ;
315315 var semanticModel = compilation . GetSemanticModel ( syntaxTree ) ;
316316 var classDeclaration = syntaxTree . FindClassDeclaration ( "C" ) ;
317317 var type = semanticModel . GetDeclaredSymbol ( classDeclaration ) ;
@@ -342,7 +342,7 @@ protected virtual void OnPropertyChanged([CallerMemberName] string propertyName
342342 }
343343 }
344344}" . AssertReplace ( "propertyName ?? string.Empty" , expression ) ) ;
345- var compilation = CSharpCompilation . Create ( "test" , new [ ] { syntaxTree } , MetadataReferences . FromAttributes ( ) ) ;
345+ var compilation = CSharpCompilation . Create ( "test" , new [ ] { syntaxTree } , Settings . Default . MetadataReferences ) ;
346346 var semanticModel = compilation . GetSemanticModel ( syntaxTree ) ;
347347 var classDeclaration = syntaxTree . FindClassDeclaration ( "C" ) ;
348348 var type = semanticModel . GetDeclaredSymbol ( classDeclaration ) ;
@@ -374,7 +374,7 @@ protected virtual void OnPropertyChanged([CallerMemberName] string propertyName
374374 }
375375 }
376376}" . AssertReplace ( "propertyName ?? string.Empty" , expression ) ) ;
377- var compilation = CSharpCompilation . Create ( "test" , new [ ] { syntaxTree } , MetadataReferences . FromAttributes ( ) ) ;
377+ var compilation = CSharpCompilation . Create ( "test" , new [ ] { syntaxTree } , Settings . Default . MetadataReferences ) ;
378378 var semanticModel = compilation . GetSemanticModel ( syntaxTree ) ;
379379 var classDeclaration = syntaxTree . FindClassDeclaration ( "C" ) ;
380380 var type = semanticModel . GetDeclaredSymbol ( classDeclaration ) ;
0 commit comments