-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUnity.Container.Specification.Tests.csproj
138 lines (117 loc) · 6.03 KB
/
Unity.Container.Specification.Tests.csproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks Condition="'$(TargetFramework)' == '' AND '$(IncludeDev)' == ''">net462;net471;net6.0</TargetFrameworks>
<TargetFrameworks Condition="'$(TargetFramework)' == '' AND '$(IncludeDev)' != ''">net462;net471;net481;net6.0</TargetFrameworks>
<LangVersion>latest</LangVersion>
<SignAssembly>false</SignAssembly>
<IsPackable>false</IsPackable>
</PropertyGroup>
<!-- Well known locations for project files -->
<PropertyGroup>
<UnityContainer>..\..\src\Unity.Container.csproj</UnityContainer>
<UnityLegacy>..\..\unity\source\Unity\Src\Unity.csproj</UnityLegacy>
</PropertyGroup>
<!-- Unity v4.x -->
<Choose>
<When Condition="$(TargetFramework.StartsWith('net46'))">
<PropertyGroup>
<DefineConstants>$(DefineConstants);UNITY_V4</DefineConstants>
<DefineConstants Condition="'$(TargetFrameworks)' == ''">$(DefineConstants);BEHAVIOR_V4</DefineConstants>
</PropertyGroup>
<ItemGroup>
<ProjectReference Condition="Exists('$(UnityLegacy)') " Include="$(UnityLegacy)" />
<PackageReference Condition="!Exists('$(UnityLegacy)')" Include="Unity" Version="4.0.1" />
<PackageReference Condition="$(TargetFramework.StartsWith('net4'))" Include="System.ValueTuple" Version="4.5.0" />
<Compile Remove="Patterns\Abstractions\Resolvers\ValidatingResolverFactory.cs" />
<Compile Remove="Patterns\Abstractions\Resolvers\ValidatintResolver.cs" />
<Compile Remove="Patterns\Abstractions\FixtureBase.Fields.cs" />
<Compile Remove="Patterns\Abstractions\Data\Fields\**" />
<Compile Remove="Patterns\Dependency\DefaultValue.cs" />
<Compile Remove="Patterns\Dependency\DefaultAttribute.cs" />
<Compile Remove="Patterns\Dependency\Data\Fields\**" />
<Compile Remove="Patterns\Dependency\Implementation\Fields\**" />
<Compile Remove="Patterns\Injection\Implementation\Fields\**" />
<Compile Remove="Patterns\Injection\Data\Fields\**" />
<Compile Remove="Patterns\Injection\Annotation\Overrides\Dependency.Import.cs" />
<Compile Remove="Patterns\Injection\Annotation\Overrides\OptionalParameter.cs" />
<Compile Remove="Patterns\Injection\Annotation\Overrides\ResolvedParameter.cs" />
<Compile Remove="Patterns\Lifetime\LifetimeManager.cs" />
<Compile Remove="Patterns\Lifetime\LifetimeManager\Disposable.cs" />
<Compile Remove="Patterns\Selection\Implementation\Fields\Annotated.cs" />
<Compile Remove="Patterns\Selection\Implementation\Fields.cs" />
<Compile Remove="Resolution\Enumerable\**" />
<Compile Remove="Resolution\Generic\Constrained.cs" />
<Compile Remove="Registration\Validation\Factory.cs" />
<Compile Remove="Registration\BuiltIn\IServiceProvider.cs" />
<Compile Remove="Registration\BuiltIn\IUnityContainerAsync.cs" />
<Compile Remove="Container\Extension\BuilderAware\BuilderAwareStrategy.cs" />
<Compile Remove="Container\Extension\BuilderAware\IBuilderAware.cs" />
<Compile Remove="Registration\Validation\Factory.cs" />
</ItemGroup>
</When>
<Otherwise> <!-- NOT v4.x -->
<ItemGroup>
<Compile Remove="Patterns\Abstractions\Resolvers\ValidatintResolver.v4.cs" />
<Compile Remove="Patterns\Injection\Implementation\Methods\Override.v4.cs" />
</ItemGroup>
</Otherwise>
</Choose>
<!-- Unity v5.x -->
<Choose>
<When Condition="$(TargetFramework.StartsWith('net47')) OR $(TargetFramework.StartsWith('net48'))">
<PropertyGroup>
<DefineConstants>$(DefineConstants);UNITY_V5</DefineConstants>
<DefineConstants Condition="'$(TargetFrameworks)' == ''">$(DefineConstants);BEHAVIOR_V5</DefineConstants>
</PropertyGroup>
<ItemGroup Condition="Exists('$(UnityContainer)') ">
<ProjectReference Include="$(UnityContainer)" />
</ItemGroup>
<ItemGroup Condition="!Exists('$(UnityContainer)') ">
<PackageReference Condition="$(TargetFramework.StartsWith('net47'))" Include="Unity.Container" Version="5.11.*" />
<PackageReference Condition="$(TargetFramework.StartsWith('net48'))" Include="Unity.Container" Version="5.12.*-*" />
</ItemGroup>
<ItemGroup>
<Compile Remove="Patterns\Abstractions\Resolvers\ValidatingResolverFactory.cs" />
<Compile Remove="Patterns\Abstractions\Resolvers\ValidatintResolver.cs" />
<Compile Remove="Patterns\Dependency\DefaultAttribute.cs" />
<Compile Remove="Patterns\Lifetime\LifetimeManager.cs" />
<Compile Remove="Registration\Validation\Factory.cs" />
<Compile Remove="Registration\BuiltIn\IServiceProvider.cs" />
<Compile Remove="Registration\BuiltIn\IUnityContainerAsync.cs" />
<Compile Remove="Registration\Validation\Factory.cs" />
</ItemGroup>
</When>
<Otherwise> <!-- NOT v5.x -->
<ItemGroup>
<Compile Remove="Patterns\Abstractions\Resolvers\ValidatintResolver.v5.cs" />
<Compile Remove="Patterns\Abstractions\Resolvers\ValidatingResolverFactory.v5.cs" />
</ItemGroup>
</Otherwise>
</Choose>
<!-- Unity v6.x -->
<Choose>
<When Condition="$(TargetFramework.StartsWith('net6'))">
<PropertyGroup>
<DefineConstants>$(DefineConstants);UNITY_V6</DefineConstants>
</PropertyGroup>
<ItemGroup>
<ProjectReference Condition="Exists('$(UnityContainer)') " Include="$(UnityContainer)" />
<PackageReference Condition="!Exists('$(UnityContainer)')" Include="Unity.Container" Version="6.0.*-*" />
</ItemGroup>
</When>
<Otherwise>
<!-- NOT v6.x -->
<ItemGroup>
</ItemGroup>
</Otherwise>
</Choose>
<!-- Packages -->
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.10.0" />
<PackageReference Include="MSTest.TestAdapter" Version="2.2.*-*" />
<PackageReference Include="MSTest.TestFramework" Version="2.2.*-*" />
</ItemGroup>
<ItemGroup>
<None Remove=".gitignore" />
</ItemGroup>
</Project>