mirror of
https://github.com/VSadov/Satori.git
synced 2025-06-08 03:27:04 +09:00

* Remove package references from library tests (#106737) * Remove package references from library tests These tests should be referencing the product assemblies so that they test latest and not old bits. * Reference the OOB version of SRSF and make sure it's copied * BinaryFormatter tests should be skipped only on AOT, WASM and Mobile (#106858) * respect AppContext switch (which is currently enabled for all projects in the root Directory.Build.props file) * add project reference to all test projects that need working BF (and were being skipped for a while) * adjust to changes from #104202: EqualityComparer<string>.Default is mapped to StringEqualityComparer, but serialized as GenericEqualityComparer<string> * Don't use WeakReferences in the round trip test, as the target may get freed in the meantime, fixes #104905 (#106967) * Enable more BinaryFormatter tests (#107408) * enable the BinaryFormatter tests in System.Runtime.Serialization.Formatters.Tests * add new test project, where the flag is disabled and it runs only 3 tests in total that ensure that * The SerializationGuard is no longer activated since BF was moved to the OOB package, the tests need to reflect that. * Disable binary formatter tests when DotNetBuildSourceOnly. (#107549) * [mono][tvos] Do not treat assembly.pdb/xml files as native files to bundle when AOTing on Helix (#107079) * Do not treat assembly.pdb/xml files as native files to bundle * Bundle satellite assemblies as well * [mono][ci] Include PDBs from runtime pack when building on Helix if required (#107348) --------- Co-authored-by: Eric StJohn <ericstj@microsoft.com> Co-authored-by: Tom Deseyn <tom.deseyn@gmail.com> Co-authored-by: Ivan Povazan <55002338+ivanpovazan@users.noreply.github.com>
55 lines
3.2 KiB
XML
55 lines
3.2 KiB
XML
<Project>
|
|
<PropertyGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
|
|
<!--
|
|
Disable RAR from transitively discovering dependencies for references. This is required as we don't copy
|
|
dependencies over into the output directory which means RAR can't resolve them.
|
|
-->
|
|
<_FindDependencies>false</_FindDependencies>
|
|
</PropertyGroup>
|
|
|
|
<!-- Project references shouldn't be copied to the output for reference, source, or generator projects. -->
|
|
<ItemDefinitionGroup Condition="'$(IsSourceProject)' == 'true' or '$(IsReferenceAssemblyProject)' == 'true' or '$(IsGeneratorProject)' == 'true'">
|
|
<ProjectReference>
|
|
<Private>false</Private>
|
|
</ProjectReference>
|
|
</ItemDefinitionGroup>
|
|
|
|
<ItemGroup Condition="'@(ProjectReference)' != ''">
|
|
<_coreLibProjectReference Include="@(ProjectReference->WithMetadataValue('Identity', '$(CoreLibProject)'))" />
|
|
<ProjectReference Update="@(_coreLibProjectReference)"
|
|
Private="false">
|
|
<SetConfiguration Condition="'$(RuntimeFlavor)' == 'CoreCLR' and
|
|
'$(Configuration)' != '$(CoreCLRConfiguration)'">Configuration=$(CoreCLRConfiguration)</SetConfiguration>
|
|
<SetConfiguration Condition="'$(RuntimeFlavor)' == 'Mono' and
|
|
'$(Configuration)' != '$(MonoConfiguration)'">Configuration=$(MonoConfiguration)</SetConfiguration>
|
|
</ProjectReference>
|
|
<!-- If a CoreLib ProjectReference is present, make all P2P assets non transitive. -->
|
|
<ProjectReference Update="@(ProjectReference->WithMetadataValue('PrivateAssets', ''))"
|
|
PrivateAssets="all"
|
|
Condition="'$(IsSourceProject)' == 'true' and '@(_coreLibProjectReference)' != ''" />
|
|
</ItemGroup>
|
|
|
|
<!-- Make shared framework assemblies not app-local (non private). -->
|
|
<Target Name="UpdateProjectReferencesWithPrivateAttribute"
|
|
AfterTargets="AssignProjectConfiguration"
|
|
BeforeTargets="PrepareProjectReferences"
|
|
Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' and
|
|
('$(IsTestProject)' == 'true' or '$(IsTestSupportProject)' == 'true') and
|
|
'@(ProjectReferenceWithConfiguration)' != ''">
|
|
<ItemGroup>
|
|
<ProjectReferenceWithConfiguration PrivateAssets="all"
|
|
Private="false"
|
|
Condition="$(NetCoreAppLibrary.Contains('%(Filename);')) and '%(ProjectReferenceWithConfiguration.Private)' == ''" />
|
|
</ItemGroup>
|
|
</Target>
|
|
|
|
<Target Name="ReplaceCoreLibSrcWithRefAssemblyForCompilation"
|
|
AfterTargets="FindReferenceAssembliesForReferences"
|
|
Condition="'$(CompileUsingReferenceAssemblies)' != 'true' and '@(_coreLibProjectReference)' != ''">
|
|
<ItemGroup>
|
|
<_resolvedCoreLibProjectReference Include="@(_ResolvedProjectReferencePaths->WithMetadataValue('MSBuildSourceProjectFile','$(CoreLibProject)'))" />
|
|
<ReferencePathWithRefAssemblies Remove="@(_resolvedCoreLibProjectReference)" />
|
|
<ReferencePathWithRefAssemblies Include="@(_resolvedCoreLibProjectReference->Metadata('ReferenceAssembly'))" />
|
|
</ItemGroup>
|
|
</Target>
|
|
</Project>
|