Skip to content

Commit 75c84a4

Browse files
committed
Add reference to Microsoft.NETFramework.ReferenceAssemblies
1 parent 717a7af commit 75c84a4

File tree

6 files changed

+75
-0
lines changed

6 files changed

+75
-0
lines changed

Directory.Build.props

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,9 @@
4242
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
4343
</PackageReference>
4444
</ItemGroup>
45+
<ItemGroup Condition="'$(TargetFramework)' == 'net47'">
46+
<!-- Explicitly add reference to ReferenceAssemblies to avoid depending on what is installed on the developer machine -->
47+
<!-- https://learn.microsoft.com/en-us/dotnet/framework/migration-guide/reference-assemblies -->
48+
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" PrivateAssets="All" />
49+
</ItemGroup>
4550
</Project>

Src/FluentAssertions/packages.lock.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@
88
"resolved": "2024.3.0",
99
"contentHash": "ox5pkeLQXjvJdyAB4b2sBYAlqZGLh3PjSnP1bQNVx72ONuTJ9+34/+Rq91Fc0dG29XG9RgZur9+NcP4riihTug=="
1010
},
11+
"Microsoft.NETFramework.ReferenceAssemblies": {
12+
"type": "Direct",
13+
"requested": "[1.0.3, )",
14+
"resolved": "1.0.3",
15+
"contentHash": "vUc9Npcs14QsyOD01tnv/m8sQUnGTGOw1BCmKcv77LBJY7OxhJ+zJF7UD/sCL3lYNFuqmQEVlkfS4Quif6FyYg==",
16+
"dependencies": {
17+
"Microsoft.NETFramework.ReferenceAssemblies.net47": "1.0.3"
18+
}
19+
},
1120
"PolySharp": {
1221
"type": "Direct",
1322
"requested": "[1.15.0, )",
@@ -29,6 +38,11 @@
2938
"System.Runtime.CompilerServices.Unsafe": "4.5.3"
3039
}
3140
},
41+
"Microsoft.NETFramework.ReferenceAssemblies.net47": {
42+
"type": "Transitive",
43+
"resolved": "1.0.3",
44+
"contentHash": "s2ik8oLVJHVcQPVNHq+X5UfpQP6RsvoixtWzuW2qZvYjRickfC70OXpCmEUgTxjWumS4qZfZ3ZGR1yH7ATc4Wg=="
45+
},
3246
"System.Runtime.CompilerServices.Unsafe": {
3347
"type": "Transitive",
3448
"resolved": "4.5.3",

Tests/FluentAssertions.Equivalency.Specs/packages.lock.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@
1414
"resolved": "2024.3.0",
1515
"contentHash": "ox5pkeLQXjvJdyAB4b2sBYAlqZGLh3PjSnP1bQNVx72ONuTJ9+34/+Rq91Fc0dG29XG9RgZur9+NcP4riihTug=="
1616
},
17+
"Microsoft.NETFramework.ReferenceAssemblies": {
18+
"type": "Direct",
19+
"requested": "[1.0.3, )",
20+
"resolved": "1.0.3",
21+
"contentHash": "vUc9Npcs14QsyOD01tnv/m8sQUnGTGOw1BCmKcv77LBJY7OxhJ+zJF7UD/sCL3lYNFuqmQEVlkfS4Quif6FyYg==",
22+
"dependencies": {
23+
"Microsoft.NETFramework.ReferenceAssemblies.net47": "1.0.3"
24+
}
25+
},
1726
"Newtonsoft.Json": {
1827
"type": "Direct",
1928
"requested": "[13.0.3, )",
@@ -55,6 +64,11 @@
5564
"xunit.extensibility.execution": "2.4.2"
5665
}
5766
},
67+
"Microsoft.NETFramework.ReferenceAssemblies.net47": {
68+
"type": "Transitive",
69+
"resolved": "1.0.3",
70+
"contentHash": "s2ik8oLVJHVcQPVNHq+X5UfpQP6RsvoixtWzuW2qZvYjRickfC70OXpCmEUgTxjWumS4qZfZ3ZGR1yH7ATc4Wg=="
71+
},
5872
"Microsoft.TestPlatform.ObjectModel": {
5973
"type": "Transitive",
6074
"resolved": "17.10.0",

Tests/FluentAssertions.Extensibility.Specs/packages.lock.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@
88
"resolved": "6.0.4",
99
"contentHash": "lkhqpF8Pu2Y7IiN7OntbsTtdbpR1syMsm2F3IgX6ootA4ffRqWL5jF7XipHuZQTdVuWG/gVAAcf8mjk8Tz0xPg=="
1010
},
11+
"Microsoft.NETFramework.ReferenceAssemblies": {
12+
"type": "Direct",
13+
"requested": "[1.0.3, )",
14+
"resolved": "1.0.3",
15+
"contentHash": "vUc9Npcs14QsyOD01tnv/m8sQUnGTGOw1BCmKcv77LBJY7OxhJ+zJF7UD/sCL3lYNFuqmQEVlkfS4Quif6FyYg==",
16+
"dependencies": {
17+
"Microsoft.NETFramework.ReferenceAssemblies.net47": "1.0.3"
18+
}
19+
},
1120
"PolySharp": {
1221
"type": "Direct",
1322
"requested": "[1.15.0, )",
@@ -34,6 +43,11 @@
3443
"Microsoft.TestPlatform.ObjectModel": "17.10.0"
3544
}
3645
},
46+
"Microsoft.NETFramework.ReferenceAssemblies.net47": {
47+
"type": "Transitive",
48+
"resolved": "1.0.3",
49+
"contentHash": "s2ik8oLVJHVcQPVNHq+X5UfpQP6RsvoixtWzuW2qZvYjRickfC70OXpCmEUgTxjWumS4qZfZ3ZGR1yH7ATc4Wg=="
50+
},
3751
"Microsoft.TestPlatform.ObjectModel": {
3852
"type": "Transitive",
3953
"resolved": "17.10.0",

Tests/FluentAssertions.Specs/packages.lock.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@
1414
"resolved": "2024.3.0",
1515
"contentHash": "ox5pkeLQXjvJdyAB4b2sBYAlqZGLh3PjSnP1bQNVx72ONuTJ9+34/+Rq91Fc0dG29XG9RgZur9+NcP4riihTug=="
1616
},
17+
"Microsoft.NETFramework.ReferenceAssemblies": {
18+
"type": "Direct",
19+
"requested": "[1.0.3, )",
20+
"resolved": "1.0.3",
21+
"contentHash": "vUc9Npcs14QsyOD01tnv/m8sQUnGTGOw1BCmKcv77LBJY7OxhJ+zJF7UD/sCL3lYNFuqmQEVlkfS4Quif6FyYg==",
22+
"dependencies": {
23+
"Microsoft.NETFramework.ReferenceAssemblies.net47": "1.0.3"
24+
}
25+
},
1726
"System.Collections.Immutable": {
1827
"type": "Direct",
1928
"requested": "[1.5.0, 1.5.0]",
@@ -49,6 +58,11 @@
4958
"xunit.extensibility.execution": "2.4.2"
5059
}
5160
},
61+
"Microsoft.NETFramework.ReferenceAssemblies.net47": {
62+
"type": "Transitive",
63+
"resolved": "1.0.3",
64+
"contentHash": "s2ik8oLVJHVcQPVNHq+X5UfpQP6RsvoixtWzuW2qZvYjRickfC70OXpCmEUgTxjWumS4qZfZ3ZGR1yH7ATc4Wg=="
65+
},
5266
"Microsoft.TestPlatform.ObjectModel": {
5367
"type": "Transitive",
5468
"resolved": "17.10.0",

Tests/TestFrameworks/XUnit2.Specs/packages.lock.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@
1111
"Microsoft.CodeCoverage": "17.13.0"
1212
}
1313
},
14+
"Microsoft.NETFramework.ReferenceAssemblies": {
15+
"type": "Direct",
16+
"requested": "[1.0.3, )",
17+
"resolved": "1.0.3",
18+
"contentHash": "vUc9Npcs14QsyOD01tnv/m8sQUnGTGOw1BCmKcv77LBJY7OxhJ+zJF7UD/sCL3lYNFuqmQEVlkfS4Quif6FyYg==",
19+
"dependencies": {
20+
"Microsoft.NETFramework.ReferenceAssemblies.net47": "1.0.3"
21+
}
22+
},
1423
"xunit": {
1524
"type": "Direct",
1625
"requested": "[2.9.3, )",
@@ -36,6 +45,11 @@
3645
"resolved": "17.13.0",
3746
"contentHash": "9LIUy0y+DvUmEPtbRDw6Bay3rzwqFV8P4efTrK4CZhQle3M/QwLPjISghfcolmEGAPWxuJi6m98ZEfk4VR4Lfg=="
3847
},
48+
"Microsoft.NETFramework.ReferenceAssemblies.net47": {
49+
"type": "Transitive",
50+
"resolved": "1.0.3",
51+
"contentHash": "s2ik8oLVJHVcQPVNHq+X5UfpQP6RsvoixtWzuW2qZvYjRickfC70OXpCmEUgTxjWumS4qZfZ3ZGR1yH7ATc4Wg=="
52+
},
3953
"Microsoft.TestPlatform.ObjectModel": {
4054
"type": "Transitive",
4155
"resolved": "17.10.0",

0 commit comments

Comments
 (0)