Skip to content

Commit 028866f

Browse files
committedJun 29, 2023
Add PackageDownload for Microsoft.NETFramework.ReferenceAssemblies.net452 to make FSharpAcceptanceTestAssembly work
1 parent aeba1bb commit 028866f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed
 

‎test/test.utility/Compilation/FSharpAcceptanceTestAssembly.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ protected FSharpAcceptanceTestAssembly(string basePath)
1515
protected override IEnumerable<string> GetStandardReferences()
1616
{
1717
var homeDir = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
18-
var fxDir = $@"{homeDir}\.nuget\packages\microsoft.netframework.referenceassemblies.net452\1.0.2\build\.NETFramework\v4.5.2\";
18+
// If you update this path, make sure to update the PackageDownload in test.utility.csproj as well
19+
var fxDir = $@"{homeDir}\.nuget\packages\microsoft.netframework.referenceassemblies.net452\1.0.3\build\.NETFramework\v4.5.2\";
1920
var mscorlib = $@"{fxDir}mscorlib.dll";
2021
var sysRuntime = $@"{fxDir}Facades\System.Runtime.dll";
2122

2223
return new[] { mscorlib, sysRuntime, "xunit.abstractions.dll" };
2324
}
2425

25-
2626
protected override void Compile(string code, string[] references)
2727
{
2828
var sourcePath = Path.GetTempFileName() + ".fs";

‎test/test.utility/test.utility.csproj

+5
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323
<PackageReference Include="System.ComponentModel.TypeConverter" Version="4.3.0" />
2424
</ItemGroup>
2525

26+
<ItemGroup>
27+
<!-- Needed by FSharpAcceptanceTestAssembly -->
28+
<PackageDownload Include="Microsoft.NETFramework.ReferenceAssemblies.net452" Version="[1.0.3]" />
29+
</ItemGroup>
30+
2631
<ItemGroup>
2732
<ProjectReference Include="..\..\src\xunit.assert\xunit.assert.csproj" />
2833
<ProjectReference Include="..\..\src\xunit.execution\xunit.execution.csproj" />

0 commit comments

Comments
 (0)