Fix a few more broken tests

This commit is contained in:
Timothy Baldridge 2020-04-03 14:19:10 -06:00
parent 8af841f3d6
commit c22e40f752
3 changed files with 4 additions and 1 deletions

View File

@ -7,6 +7,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.console" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />

View File

@ -126,6 +126,8 @@ namespace Wabbajack.Common
public static AbsolutePath SettingsFile => LocalAppDataPath.Combine("settings.json");
public static RelativePath SettingsIni = (RelativePath)"settings.ini";
public static byte SettingsVersion => 1;
public static Extension TempExtension = new Extension(".temp");
public static Extension OctoSig = new Extension(".octo_sig");
public static RelativePath ModListTxt = (RelativePath)"modlist.txt";

View File

@ -22,7 +22,7 @@ namespace Wabbajack.Common
private static AbsolutePath GetTempFilePath()
{
var path = (@"temp\" + Guid.NewGuid()).RelativeTo(AbsolutePath.EntryPoint);
var path = (@"temp\" + Guid.NewGuid()).RelativeTo(AbsolutePath.EntryPoint).WithExtension(Consts.TempExtension);
path.Parent.CreateDirectory();
return path;
}