Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Cake/build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,17 @@ Task(CleanSolutionTask)

var customProject = ParseProject(project.Path, configuration: Configuration, platform: Platform);

CleanDirectory(customProject.OutputPath.FullPath);
foreach(var dir in customProject.OutputPaths)
CleanDirectory(dir);

if(customProject.OutputType != "Library") // WinExe
continue;

if(!project.Name.Contains("Test")) // we only care about test assemblies
continue;

testsDirectories.Add(customProject.OutputPath.FullPath);
foreach(var dir in customProject.OutputPaths)
testsDirectories.Add(dir.FullPath);
}
});

Expand Down
3 changes: 2 additions & 1 deletion Maple.sln
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27130.2010
VisualStudioVersion = 15.0.27130.2024
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{D65C950A-327A-496D-A49C-B45E8F97C610}"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
.XamlStyler = .XamlStyler
src\Resources\Art_Of_Escapism_-_Universe_Words.mp3 = src\Resources\Art_Of_Escapism_-_Universe_Words.mp3
src\Resources\client_secret.json = src\Resources\client_secret.json
NuGet.Config = NuGet.Config
src\Resources\SharedAssemblyInfo.cs = src\Resources\SharedAssemblyInfo.cs
EndProjectSection
EndProject
Expand Down
20 changes: 20 additions & 0 deletions NuGet.Config
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<config>
<add key="repositoryPath" value="E:\Code\Maple" />
</config>
<packageRestore>
<add key="enabled" value="True" />
</packageRestore>

<!-- Default Package Sources; works like the 'packageSources' section of NuGet.Config files. -->
<!-- This collection cannot be deleted or modified but can be disabled/enabled by users. -->
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
</packageSources>

<!-- Default Package Sources that are disabled by default. -->
<!-- Works like the 'disabledPackageSources' section of NuGet.Config files. -->
<!-- Sources cannot be modified or deleted either but can be enabled/disabled by users. -->
<disabledPackageSources />
</configuration>
2 changes: 1 addition & 1 deletion src/Maple.Core/Commands/RelayCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public bool CanExecute(object parameter)
return true;

if (parameter == null && typeof(T).IsValueType)
return _canExecute.Invoke(default(T));
return _canExecute.Invoke(default);

if (parameter == null || parameter is T)
return (_canExecute.Invoke((T)parameter));
Expand Down
Loading