diff --git a/tests/projects/SelfContained_Trimming_Test/NuGet.Config b/tests/projects/SelfContained_Trimming_Test/NuGet.Config
index e8af19a856b..ed5be2d5fc6 100644
--- a/tests/projects/SelfContained_Trimming_Test/NuGet.Config
+++ b/tests/projects/SelfContained_Trimming_Test/NuGet.Config
@@ -6,7 +6,7 @@
-
+
@@ -18,7 +18,7 @@
-
+
diff --git a/tests/projects/SelfContained_Trimming_Test/SelfContained_Trimming_Test.fsproj b/tests/projects/SelfContained_Trimming_Test/SelfContained_Trimming_Test.fsproj
index 6654cf18e18..72feceb7d81 100644
--- a/tests/projects/SelfContained_Trimming_Test/SelfContained_Trimming_Test.fsproj
+++ b/tests/projects/SelfContained_Trimming_Test/SelfContained_Trimming_Test.fsproj
@@ -29,13 +29,6 @@
-
-
- $(MSBuildThisFileDirectory)/../../../artifacts/packages/Release/Release;
- https://api.nuget.org/v3/index.json;
-
-
-
diff --git a/tests/projects/SelfContained_Trimming_Test/check.ps1 b/tests/projects/SelfContained_Trimming_Test/check.ps1
index 3eb0dfd449e..fbc122b4158 100644
--- a/tests/projects/SelfContained_Trimming_Test/check.ps1
+++ b/tests/projects/SelfContained_Trimming_Test/check.ps1
@@ -19,5 +19,5 @@ $file = Get-Item .\bin\Release\net7.0\win-x64\publish\FSharp.Core.dll
$file_len = $file.Length
if (-not ($file_len -eq $expected_len))
{
- Write-Error "Test failed with unexpected FSharp.Core length:`nExpected:`n`t${expected_len} Bytes`nActual:`n`t${file_len} Bytes" -ErrorAction Stop
+ Write-Error "Test failed with unexpected FSharp.Core length:`nExpected:`n`t${expected_len} Bytes`nActual:`n`t${file_len} Bytes`nEither codegen or trimming logic have changed. Please investigate and update expected dll size or report an issue." -ErrorAction Stop
}
\ No newline at end of file