Changed how projects are referenced

This commit is contained in:
Eugene Sadovoi 2017-10-20 19:20:46 -04:00
Родитель efc43bb893
Коммит 03a9e50ad7
2 изменённых файлов: 28 добавлений и 9 удалений

Просмотреть файл

@ -60,12 +60,17 @@
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<TargetFramework>net47</TargetFramework>
</PropertyGroup>
<ItemGroup Condition="'$(Configuration)'!='Release'">
<ProjectReference Include="..\..\Abstractions\src\Unity.Abstractions.csproj" />
<PropertyGroup>
<UnityAbstractions>$(SolutionDir)\Abstractions\src\Unity.Abstractions.csproj</UnityAbstractions>
</PropertyGroup>
<ItemGroup Condition="Exists('$(UnityAbstractions)')">
<ProjectReference Include="$(UnityAbstractions)" />
</ItemGroup>
<ItemGroup Condition=" '$(Configuration)' == 'Release' ">
<ItemGroup Condition="!Exists('$(UnityAbstractions)')">
<PackageReference Include="Unity.Abstractions" Version="2.0.1" />
</ItemGroup>

Просмотреть файл

@ -28,15 +28,29 @@
<ItemGroup>
<ProjectReference Include="..\src\Unity.Configuration.csproj" />
</ItemGroup>
<ItemGroup Condition=" '$(Configuration)' != 'Release' ">
<ProjectReference Include="..\..\Abstractions\src\Unity.Abstractions.csproj" />
<ProjectReference Include="..\..\Container\src\Unity.Container.csproj" />
</ItemGroup>
<PropertyGroup>
<UnityAbstractions>$(SolutionDir)\Abstractions\src\Unity.Abstractions.csproj</UnityAbstractions>
<UnityContainer>$(SolutionDir)\Container\src\Unity.Container.csproj</UnityContainer>
</PropertyGroup>
<ItemGroup Condition=" '$(Configuration)' == 'Release' ">
<ItemGroup Condition="Exists('$(UnityAbstractions)')">
<ProjectReference Include="$(UnityAbstractions)" />
</ItemGroup>
<ItemGroup Condition="Exists('$(UnityContainer)')">
<ProjectReference Include="$(UnityContainer)" />
</ItemGroup>
<ItemGroup Condition="!Exists('$(UnityAbstractions)')">
<PackageReference Include="Unity.Abstractions" Version="2.0.1" />
</ItemGroup>
<ItemGroup Condition="!Exists('$(UnityContainer)')">
<PackageReference Include="Unity.Container" Version="5.0.0" />
</ItemGroup>
</ItemGroup>
</Project>