|
75 | 75 | <PackageReference Include="Microsoft.NETCore.ILAsm" Version="$(MicrosoftNETCoreILAsmVersion)" /> |
76 | 76 | </ItemGroup> |
77 | 77 |
|
78 | | - <ItemGroup> |
79 | | - <InternalsVisibleTo Include="VisualFSharp.UnitTests" /> |
80 | | - <InternalsVisibleTo Include="FSharp.Compiler.ComponentTests" /> |
81 | | - <InternalsVisibleTo Include="FSharp.Compiler.Service.Tests" /> |
82 | | - <InternalsVisibleTo Include="FSharp.Tests.FSharpSuite" /> |
83 | | - <InternalsVisibleTo Include="LanguageServiceProfiling" /> |
84 | | - <InternalsVisibleTo Include="FSharp.Compiler.Benchmarks" /> |
85 | | - </ItemGroup> |
86 | | - |
87 | 78 | <ItemGroup> |
88 | | - <PackageReference Include="Microsoft.Net.Compilers" Version="$(MicrosoftNetCompilersVersion)" /> |
89 | | - <PackageReference Include="System.Collections.Immutable" Version="$(SystemCollectionsImmutableVersion)" GeneratePathProperty="true" /> |
| 79 | + <InternalsVisibleTo Include="VisualFSharp.UnitTests" /> |
| 80 | + <InternalsVisibleTo Include="FSharp.Compiler.ComponentTests" /> |
| 81 | + <InternalsVisibleTo Include="FSharp.Compiler.Service.Tests" /> |
| 82 | + <InternalsVisibleTo Include="FSharp.Tests.FSharpSuite" /> |
| 83 | + <InternalsVisibleTo Include="LanguageServiceProfiling" /> |
| 84 | + <InternalsVisibleTo Include="FSharp.Compiler.Benchmarks" /> |
| 85 | + </ItemGroup> |
| 86 | + |
| 87 | + <ItemGroup Condition="'$(TargetFramework)' != '$(FSharpNetCoreProductTargetFramework)'"> |
90 | 88 | <PackageReference Include="System.Memory" Version="$(SystemMemoryVersion)" /> |
91 | 89 | <PackageReference Include="System.Buffers" Version="$(SystemBuffersVersion)" /> |
| 90 | + <PackageReference Include="System.Reflection.Metadata" Version="$(SystemReflectionMetadataVersion)" /> |
92 | 91 | <PackageReference Include="System.Diagnostics.DiagnosticSource" Version="$(SystemDiagnosticsDiagnosticSourceVersion)" /> |
| 92 | + </ItemGroup> |
| 93 | +<PropertyGroup> |
| 94 | + <NoWarn>$(NoWarn);NU1510</NoWarn> <!-- NU1510: Project is explicitly referencing the runtime assembly 'System.Collections.Immutable', however, if we remove it, it tries to find it on the wrong path. Also, local NoWarn does not help - This is just me trying to enforce it --> |
| 95 | +</PropertyGroup> |
| 96 | + <ItemGroup> |
| 97 | + <!-- NU1510: Project is explicitly referencing the runtime assembly 'System.Collections.Immutable', however, if we remove it, it tries to find it on the wrong path --> |
| 98 | + <PackageReference Include="System.Collections.Immutable" Version="$(SystemCollectionsImmutableVersion)" GeneratePathProperty="true" NoWarn="NU1510" /> |
| 99 | + <PackageReference Include="Microsoft.Net.Compilers" Version="$(MicrosoftNetCompilersVersion)" /> |
93 | 100 | <PackageReference Include="Microsoft.DiaSymReader.PortablePdb" Version="$(MicrosoftDiaSymReaderPortablePdbVersion)"> |
94 | 101 | <PrivateAssets>all</PrivateAssets> |
95 | 102 | <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> |
96 | 103 | </PackageReference> |
97 | | - <PackageReference Include="System.Reflection.Metadata" Version="$(SystemReflectionMetadataVersion)" /> |
98 | 104 | <PackageReference Include="Microsoft.CodeAnalysis.Workspaces.Common" Version="$(MicrosoftCodeAnalysisVersion)" /> |
99 | 105 | <PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="$(MicrosoftCodeAnalysisCSharpVersion)" /> |
100 | 106 | <PackageReference Include="Microsoft.CodeAnalysis.Test.Resources.Proprietary" Version="$(MicrosoftCodeAnalysisTestResourcesProprietaryVersion)" /> |
|
0 commit comments