127 строки
4.7 KiB
XML
127 строки
4.7 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<Description>Unity Container Regression Tests</Description>
|
|
<Copyright>Copyright © .NET Foundation and Contributors. All Rights Reserved</Copyright>
|
|
<PackageProjectUrl>https://github.com/unitycontainer/regression-tests</PackageProjectUrl>
|
|
<RepositoryUrl>https://github.com/unitycontainer/regression-tests</RepositoryUrl>
|
|
<PackageLicenseUrl>https://github.com/unitycontainer/regression-tests/blob/master/LICENSE</PackageLicenseUrl>
|
|
<PackageIconUrl>https://avatars1.githubusercontent.com/u/12849707</PackageIconUrl>
|
|
<RepositoryType>git</RepositoryType>
|
|
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
|
|
<UnityContainer>..\Container\src\Unity.Container.csproj</UnityContainer>
|
|
<UnityLegacy>..\unity\source\Unity\Src\Unity.csproj</UnityLegacy>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="Exists('$(UnityLegacy)')">
|
|
<TargetFramework>net45</TargetFramework>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="Exists('$(UnityContainer)') AND !Exists('..\Container\package.sln')">
|
|
<TargetFramework>net46</TargetFramework>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="!Exists('$(UnityContainer)') AND !Exists('$(UnityLegacy)') ">
|
|
<!--<TargetFrameworks>net47;net46;net45</TargetFrameworks>-->
|
|
<TargetFrameworks>net5.0;net46;net45</TargetFrameworks>
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<!-- Definitions -->
|
|
|
|
<PropertyGroup>
|
|
<DefineConstants Condition="$(TargetFramework.StartsWith('net5')) ">V6</DefineConstants>
|
|
<DefineConstants Condition="$(TargetFramework.StartsWith('net46'))">V5</DefineConstants>
|
|
<DefineConstants Condition="$(TargetFramework.StartsWith('net45'))">V4</DefineConstants>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Condition="'$(TargetFramework)' == 'net5.0'" Include="Unity.Container" Version="6.0.*-*" />
|
|
<ProjectReference Condition="'$(TargetFramework)' == 'net48' " Include="$(UnityContainer)" />
|
|
<PackageReference Condition="'$(TargetFramework)' == 'net46' " Include="Unity.Container" Version="5.11.*" />
|
|
<PackageReference Condition="'$(TargetFramework)' == 'net45' AND !Exists('$(UnityLegacy)')" Include="Unity" Version="4.0.1" />
|
|
<ProjectReference Condition="'$(TargetFramework)' == 'net45' AND Exists('$(UnityLegacy)')" Include="$(UnityLegacy)" />
|
|
</ItemGroup>
|
|
|
|
|
|
<!-- Temporary exclusions -->
|
|
|
|
<PropertyGroup Condition="Exists('$(UnityContainer)') AND Exists('..\Container\package.sln')">
|
|
<TargetFramework>net461</TargetFramework>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup Condition="'$(TargetFramework)' == 'net461'">
|
|
<Compile Remove="Extending\**" />
|
|
<ProjectReference Include="..\Container\src\Unity.Container.csproj" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.0" />
|
|
<PackageReference Include="MSTest.TestAdapter" Version="2.1.2">
|
|
<PrivateAssets>all</PrivateAssets>
|
|
</PackageReference>
|
|
<PackageReference Include="MSTest.TestFramework" Version="2.1.2">
|
|
<PrivateAssets>all</PrivateAssets>
|
|
</PackageReference>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<None Remove=".git" />
|
|
<None Remove=".gitattributes" />
|
|
<None Remove=".gitignore" />
|
|
<None Remove="LICENSE" />
|
|
</ItemGroup>
|
|
|
|
<!-- Build Compatibility -->
|
|
|
|
<ItemGroup>
|
|
<Compile Condition="'$(TargetFramework)' != 'net46'" Remove="Breaking Changes\BreakingChanges.v5.cs" />
|
|
</ItemGroup>
|
|
|
|
<!-- Not supported by v4 -->
|
|
|
|
<ItemGroup Condition="$(TargetFramework.StartsWith('net45')) == False">
|
|
<Compile Remove="Breaking Changes\BreakingChanges.v4.cs" />
|
|
<Compile Remove="Public.API\Compatibility\Compatibility.V4.cs" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup Condition="$(TargetFramework.StartsWith('net45'))">
|
|
<Compile Remove="Issues\GitHub\**" />
|
|
|
|
<Compile Remove="Pattern\Annotated\WithDefault.cs" />
|
|
<Compile Remove="Pattern\Implicit\WithDefault.cs" />
|
|
<Compile Remove="Pattern\Injected\ByName.cs" />
|
|
<Compile Remove="Pattern\Injected\ByFactory.cs" />
|
|
<Compile Remove="Pattern\Injected\Parameters\Factory.cs" />
|
|
|
|
<Compile Remove="Resolution\Lazy\Enumerable.cs" />
|
|
<Compile Remove="Resolution\Array\BuiltInTypesResolution.V5.cs" />
|
|
<Compile Remove="Resolution\Generic\Enumerables.cs" />
|
|
<Compile Remove="Resolution\Overrides\Field.cs" />
|
|
<Compile Remove="Resolution\Overrides\Dependency.V5.cs" />
|
|
<Compile Remove="Resolution\Enumerable\**" />
|
|
|
|
<Compile Remove="Specification\Fields\**" />
|
|
<Compile Remove="Specification\Variants\**" />
|
|
<Compile Remove="Specification\Constructors\Validation\**" />
|
|
|
|
<Compile Remove="Specification.Pattern\Fields\**" />
|
|
</ItemGroup>
|
|
|
|
<!-- Not supported by v5 -->
|
|
|
|
|
|
|
|
<!--Relese Buid-->
|
|
|
|
<ItemGroup Condition="'$(Configuration)' == 'Release'">
|
|
<Compile Remove="Breaking Changes\**" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Folder Include="Public.API\Compatibility\" />
|
|
</ItemGroup>
|
|
|
|
|
|
</Project> |