add publish

This commit is contained in:
jianxin committed 2023-09-05 08:25:14 +08:00
1 parent 4a4289c75e
commit 3842d84c6f
5 files changed
+18 -7

No files matched your search

@@ -5,7 +5,6 @@
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<PublishAot>true</PublishAot>
<InvariantGlobalization>true</InvariantGlobalization>
</PropertyGroup>
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<_LastSelectedProfileId>D:\CS\ExportAssistantLog\Properties\PublishProfiles\FolderProfile.pubxml</_LastSelectedProfileId>
<_LastSelectedProfileId>D:\CS\ExportAssiatantLog\Properties\PublishProfiles\FolderProfile.pubxml</_LastSelectedProfileId>
</PropertyGroup>
</Project>
</Project>
File renamed without changes.
+15 -3
View File
@@ -14,9 +14,21 @@ namespace ExportAssistantLog
var localAppDataPath = Environment.GetEnvironmentVariable("LOCALAPPDATA");
var dbPath = Path.Combine(localAppDataPath, "ShadowBot", "users", "Assistant", "assistant.db3");
var downloadPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "Downloads");
var dateString = DateTime.UtcNow.ToString("yyyy-MM-dd");
if (Path.Exists(dbPath))
{
Console.WriteLine(dbPath);
}
else
{
Console.WriteLine("Assistant database not found.");
Console.ReadLine();
return;
}
var downloadPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "Downloads");
var dateString = DateTime.UtcNow.ToString("yyyy-MM-dd");
var filename = $"{dateString}-assistant-job-logs.csv";
var exportPath = Path.Combine(downloadPath, filename);
@@ -4,7 +4,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project>
<PropertyGroup>
<History>False|2023-09-04T16:57:21.6374168Z;False|2023-09-05T00:54:21.0789671+08:00;False|2023-09-05T00:54:02.1221891+08:00;</History>
<History>True|2023-09-05T00:21:14.7925312Z;True|2023-09-05T08:16:50.9267952+08:00;True|2023-09-05T08:15:22.6055510+08:00;False|2023-09-05T08:15:00.9244327+08:00;True|2023-09-05T08:12:27.2966524+08:00;True|2023-09-05T08:10:57.2615975+08:00;False|2023-09-05T08:07:53.6637265+08:00;False|2023-09-05T08:07:45.2808930+08:00;</History>
<LastFailureDetails />
</PropertyGroup>
</Project>