Skip to content

Commit

Permalink
Merge pull request bassmaster187#1446 from motzky/NET8_fix_compile_an…
Browse files Browse the repository at this point in the history
…d_test

Fix compile issues and PackageReferences in NET8 branch
  • Loading branch information
bassmaster187 authored Jan 17, 2025
2 parents c8787f3 + 8900047 commit ddbe501
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion OSMMapGenerator/OSMMapGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ private static SKBitmap DownloadTile(int zoom, int tile_x, int tile_y)
if (debug) Console.WriteLine("Download:" + url);
try
{
using (WebClient wc = new WebClient())
using (var wc = new WebClient())

Check warning on line 742 in OSMMapGenerator/OSMMapGenerator.cs

View workflow job for this annotation

GitHub Actions / build

'WebClient.WebClient()' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' (https://aka.ms/dotnet-warnings/SYSLIB0014)
{
wc.Headers["User-Agent"] = "TeslaLogger.OSMMapGenerator";
wc.DownloadFile(url, localMapCacheFilePath);
Expand Down
2 changes: 0 additions & 2 deletions TeslaLogger/DBHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7402,8 +7402,6 @@ from pos
return cmd.LastInsertedId;
}
}

return 0;
}
}
}
4 changes: 2 additions & 2 deletions TeslaLogger/TeslaLoggerNET8.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,14 @@
<Content Include="www\wakeup.php" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="BouncyCastle.Cryptography" Version="2.3.0" />
<PackageReference Include="BouncyCastle.Cryptography" Version="2.3.1" />
<PackageReference Include="Exceptionless" Version="6.0.3" />
<PackageReference Include="Google.Protobuf" Version="3.25.3" />
<PackageReference Include="HttpMultipartParser" Version="8.3.0" />
<PackageReference Include="K4os.Compression.LZ4" Version="1.3.6" />
<PackageReference Include="K4os.Compression.LZ4.Streams" Version="1.3.6" />
<PackageReference Include="K4os.Hash.xxHash" Version="1.0.8" />
<PackageReference Include="M2Mqtt" Version="4.3.0" />
<PackageReference Include="M2MqttDotnetCore" Version="1.1.0" />
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="8.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
2 changes: 1 addition & 1 deletion TeslaLogger/WebServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ private void OnContext(object o)
Dev_DumpJSON(response, true);
break;
case bool _ when request.Url.LocalPath.Equals("/dev/dumpJSON/off", System.StringComparison.Ordinal):
Dev_DumpJSON(response, false);
Dev_DumpJSON(response, false);
break;
case bool _ when request.Url.LocalPath.Equals("/dev/verbose/on", System.StringComparison.Ordinal):
Program.VERBOSE = true;
Expand Down
2 changes: 1 addition & 1 deletion UnitTestsTeslalogger/UnitTestDB.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static void ClassInit(TestContext context)

UpdateTeslalogger.Start();

while (UpdateTeslalogger.Done == false)
while (UpdateTeslalogger.done.IsCancellationRequested == false)
{
System.Threading.Thread.Sleep(100);
}
Expand Down
2 changes: 2 additions & 0 deletions UnitTestsTeslalogger/UnitTestsTeslaloggerNET8.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="Microsoft.VisualBasic" Version="10.3.0" />
<PackageReference Include="moq" Version="4.20.72" />
<PackageReference Include="M2MqttDotnetCore" Version="1.1.0" />
<PackageReference Include="MSTest.TestAdapter" Version="3.2.1" />
<PackageReference Include="MSTest.TestFramework" Version="3.2.1" />
<PackageReference Include="Selenium.WebDriver" Version="4.18.1" />
Expand Down
2 changes: 1 addition & 1 deletion srtm/src/SRTM/SRTMNET8.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
<ProjectReference Include="..\..\..\Logfile\LogfileNET8.csproj" />
</ItemGroup>
<ItemGroup>
<Reference Include="System.IO.Compression" />
<PackageReference Include="System.IO.Compression" Version="4.3.0" />
</ItemGroup>
</Project>

0 comments on commit ddbe501

Please sign in to comment.