fix:输出csv 路径变更

master
sunhonglei 4 months ago
parent 038ea39d4e
commit bef0748728
  1. 4
      SparkClient.csproj
  2. 2
      ViewModel/Grading/GradingResultVM.cs
  3. 0
      csv/histroy.csv

@ -34,6 +34,7 @@
</ItemGroup>
<ItemGroup>
<None Remove="csv\histroy.csv" />
<None Remove="ffmpeg.exe" />
<None Remove="FodyWeavers.xml" />
<None Remove="Resource\Document\Helper_en.pdf" />
@ -62,6 +63,9 @@
<None Remove="Resource\Images\UIResource\round_P8-P8.png" />
<None Remove="Resource\Images\UIResource\round_select.png" />
<None Remove="Resource\Images\ze-add-o 1%403x.png" />
<Content Include="csv\histroy.csv">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="ffmpeg.exe">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>

@ -266,7 +266,7 @@ public class GradingResultVM : BaseViewModel
private void SaveToCsv()
{
string strBaseUrl = AppDomain.CurrentDomain.BaseDirectory;
string filePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "histroy.csv");
string filePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory,"csv", "histroy.csv");
if (File.Exists(filePath)) {
using (var writer = new StreamWriter(filePath,true))
{

unable to load file from base commit
Loading…
Cancel
Save