Skip to content

Commit fa6ba19

Browse files
Try to add references to useful things
1 parent c28f81d commit fa6ba19

3 files changed

Lines changed: 10 additions & 8 deletions

File tree

CodeConverter/Common/DefaultReferences.cs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ namespace ICSharpCode.CodeConverter.Common;
1414
public static class DefaultReferences
1515
{
1616
private static readonly Assembly[] DefaultAssemblies = new []{
17-
typeof(object),
18-
typeof(IEnumerable),
17+
// ReSharper disable RedundantNameQualifier
18+
typeof(System.Object),
19+
typeof(System.Collections.IEnumerable),
1920
typeof(IEnumerable<>),
2021
typeof(ErrorEventArgs),
2122
typeof(System.Text.Encoding),
22-
typeof(Enumerable),
23+
typeof(System.Linq.Enumerable),
24+
typeof(System.Console),
2325
typeof(System.ComponentModel.BrowsableAttribute),
2426
typeof(System.Dynamic.DynamicObject),
2527
typeof(System.Data.DataRow),
@@ -30,7 +32,10 @@ public static class DefaultReferences
3032
typeof(System.Xml.Linq.XElement),
3133
typeof(System.Linq.Expressions.Expression),
3234
typeof(Microsoft.VisualBasic.Constants),
33-
typeof(System.Data.Common.DbCommand)
35+
typeof(System.Data.Common.DbCommand),
36+
typeof(Microsoft.VisualBasic.Devices.Computer),
37+
typeof(System.Windows.Forms.Form)
38+
// ReSharper restore RedundantNameQualifier
3439
}.Select(t => t.Assembly).Concat(
3540
new[] { Assembly.Load("System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a") }
3641
).ToArray();

CodeConverter/Common/VisualBasicCompiler.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.Text;
2+
using Microsoft.CodeAnalysis.Scripting;
23
using Microsoft.CodeAnalysis.VisualBasic;
34

45
namespace ICSharpCode.CodeConverter.Common;

Tests/Tests.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
1010
</PropertyGroup>
1111
<ItemGroup>
12-
<PackageReference Include="Microsoft.IO.Redist" Version="6.1.3" />
1312
<PackageReference Include="Moq" Version="4.20.72" />
1413
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
1514
<PackageReference Include="xunit" Version="2.9.3" />
@@ -35,7 +34,4 @@
3534
<ItemGroup>
3635
<ProjectReference Include="..\CommandLine\CodeConv\CodeConv.csproj" />
3736
</ItemGroup>
38-
<ItemGroup>
39-
<Reference Include="System.Web" />
40-
</ItemGroup>
4137
</Project>

0 commit comments

Comments
 (0)