Skip to content

Commit 6571042

Browse files
Remove old built in api - I think we always use the azure function now
1 parent fa6ba19 commit 6571042

6 files changed

Lines changed: 17 additions & 24 deletions

File tree

CommandLine/CodeConv/CodeConv.csproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@
4040
<PrivateAssets>all</PrivateAssets>
4141
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
4242
</PackageReference>
43+
<PackageReference Include="System.Data.SqlClient" Version="4.8.6" />
44+
<PackageReference Include="System.Formats.Asn1" Version="8.0.1" />
45+
<PackageReference Include="System.Memory" Version="4.5.5" />
46+
<PackageReference Include="System.Net.Http" Version="4.3.4" />
47+
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" />
4348

4449
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="4.0.1" />
4550
</ItemGroup>

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
55
<NoWarn>$(NoWarn);1998;NU5100</NoWarn>
66
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
7-
<WarningsNotAsErrors>$(WarningsNotAsErrors);NU1605;NU1701;NU1901;NU1902;NU1903;NU1904</WarningsNotAsErrors>
7+
<WarningsNotAsErrors>$(WarningsNotAsErrors);NU1605;NU1701;NU1901;NU1902;NU1903;NU1904;NU1510;NU1903</WarningsNotAsErrors>
88
<WarningLevel>4</WarningLevel>
99
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
1010
<LangVersion>10.0</LangVersion>

Func/Func.csproj

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@
77
<Nullable>disable</Nullable>
88
<RootNamespace>ICSharpCode.CodeConverter.Func</RootNamespace>
99
<AssemblyName>ICSharpCode.CodeConverter.Func</AssemblyName>
10-
<_FunctionsSkipCleanOutput>true</_FunctionsSkipCleanOutput>
10+
<_FunctionsSkipCleanOutput>true</_FunctionsSkipCleanOutput>
1111
</PropertyGroup>
1212

1313
<ItemGroup>
1414
<Compile Include="..\CodeConverter\Common\DefaultReferences.cs" Link="DefaultReferences.cs" />
15-
<Compile Include="..\Web\WebConverter.cs" Link="WebConverter.cs" />
1615
</ItemGroup>
1716

1817
<ItemGroup>
@@ -29,15 +28,22 @@
2928
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
3029

3130
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="7.0.0" />
32-
<PackageReference Include="System.Data.SqlClient" Version="4.8.6" />
3331
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.14.0" />
3432
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.14.0" />
3533
<PackageReference Include="Microsoft.CodeAnalysis.VisualBasic" Version="4.14.0" />
3634
<PackageReference Include="Microsoft.CodeAnalysis.VisualBasic.Workspaces" Version="4.14.0" />
3735
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="4.14.0" />
38-
<PackageReference Include="System.Net.Http" Version="4.3.4" />
3936
<PackageReference Include="System.Text.Json" Version="10.0.0" />
37+
</ItemGroup>
38+
<ItemGroup>
39+
<!-- So we can reference commonly referenced assemblies in created compilations-->
40+
<PackageReference Include="System.Data.SqlClient" Version="4.8.6" />
41+
<PackageReference Include="System.Formats.Asn1" Version="8.0.1" />
42+
<PackageReference Include="System.Memory" Version="4.5.5" />
43+
<PackageReference Include="System.Net.Http" Version="4.3.4" />
4044
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" />
45+
<PackageReference Include="Microsoft.Win32.Registry" Version="5.0.0" />
46+
<PackageReference Include="Microsoft.VisualBasic" Version="10.3.0" />
4147
</ItemGroup>
4248
<ItemGroup>
4349
<None Update="host.json">

Web/Program.cs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using ICSharpCode.CodeConverter.Util;
2-
using ICSharpCode.CodeConverter.Web;
3-
using Microsoft.OpenApi.Models;
1+
using Microsoft.OpenApi.Models;
42

53
var builder = WebApplication.CreateBuilder(args);
64

@@ -34,14 +32,6 @@
3432
app.UseRouting();
3533
app.UseCors(localOrigins);
3634

37-
app.MapPost("/api/convert", async (ConvertRequest todo) => await WebConverter.ConvertAsync(todo))
38-
.RequireCors(localOrigins)
39-
.Produces<ConvertResponse>();
40-
41-
app.MapGet("/api/version", () => CodeConverterVersion.GetVersion())
42-
.RequireCors(localOrigins)
43-
.Produces<string>();
44-
4535
app.MapFallbackToFile("index.html");
4636

4737
app.Run();

Web/Web.csproj

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,13 @@
1515
<LangVersion>10.0</LangVersion>
1616
</PropertyGroup>
1717

18-
<ItemGroup>
19-
<Compile Include="..\CodeConverter\Common\DefaultReferences.cs" Link="DefaultReferences.cs" />
20-
</ItemGroup>
21-
2218
<ItemGroup>
2319
<PackageReference Include="Microsoft.AspNetCore.SpaProxy" Version="8.0.0" />
2420
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
2521
<PackageReference Include="System.Data.SqlClient" Version="4.8.6" />
2622
<PackageReference Include="System.Text.Json" Version="10.0.0" />
2723
</ItemGroup>
2824

29-
<ItemGroup>
30-
<ProjectReference Include="..\CodeConverter\CodeConverter.csproj" />
31-
</ItemGroup>
32-
3325
<ItemGroup>
3426
<!-- Don't publish the SPA source files, but do show them in the project files list -->
3527
<Content Remove="$(SpaRoot)**" />

0 commit comments

Comments
 (0)