Skip to content

Commit 530cb77

Browse files
Switch to newer sqlclient - important for func because we won't have assemblies loaded (doesn't matter for vsix much)
1 parent 777d7df commit 530cb77

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

CodeConverter/Common/DefaultReferences.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ public static class DefaultReferences
3333
typeof(System.Xml.Linq.XElement),
3434
typeof(System.Linq.Expressions.Expression),
3535
typeof(Microsoft.VisualBasic.Constants),
36-
typeof(System.Data.SqlClient.SqlCommand),
3736
typeof(System.Threading.Tasks.ParallelOptions)
3837
// ReSharper restore RedundantNameQualifier
3938
}.Select(t => t.Assembly).Concat(

Func/Func.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="2.0.7" />
2626
<PackageReference Include="Microsoft.ApplicationInsights.WorkerService" Version="3.0.0" />
2727
<PackageReference Include="Microsoft.Azure.Functions.Worker.ApplicationInsights" Version="2.50.0" />
28+
<PackageReference Include="Microsoft.Data.SqlClient" Version="6.1.4" />
2829
<PackageReference Include="Newtonsoft.Json" Version="13.0.4" />
2930

3031
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="10.0.2" />

Func/WebConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static async Task<ConvertResponse> ConvertAsync(ConvertRequest todo, Canc
2424
}
2525

2626
var codeWithOptions = new CodeWithOptions(todo.code)
27-
.WithTypeReferences(DefaultReferences.NetStandard2)
27+
.WithTypeReferences(DefaultReferences.With(typeof(Microsoft.Data.SqlClient.SqlCommand).Assembly))
2828
.SetFromLanguage(fromLanguage)
2929
.SetToLanguage(toLanguage);
3030

0 commit comments

Comments
 (0)