diff --git a/src/SmallSharp/SmallSharp.targets b/src/SmallSharp/SmallSharp.targets
index dc3f12a..db29960 100644
--- a/src/SmallSharp/SmallSharp.targets
+++ b/src/SmallSharp/SmallSharp.targets
@@ -14,7 +14,7 @@
$(S)
$(ActiveDebugProfile)
true
- EnsureProperties;CollectStartupFile;ResolveStartupFile;SelectStartupFile;SelectTopLevelCompile;UpdateLaunchSettings;EmitTargets
+ EnsureProperties;CollectStartupFile;ResolveStartupFile;SelectStartupFile;SelectTopLevelCompile;DeduplicateCompile;UpdateLaunchSettings;EmitTargets
$(MSBuildProjectExtensionsPath)$(MSBuildProjectFile).smallsharp.props
@@ -172,6 +172,16 @@
+
+
+ <_DistinctCompile Remove="@(_DistinctCompile)" />
+ <_DistinctCompile Include="@(Compile -> Distinct())" />
+
+
+ <_DistinctCompile Remove="@(_DistinctCompile)" />
+
+
+