Skip to content

Use implicit <Using feature in Directory.Build.props to remove thousands of lines of boilerplate code #369

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 9 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<!-- hard binding to net8, no property and env variable allowed-->
<TargetFrameworks>net8.0</TargetFrameworks>
</PropertyGroup>

<!-- Debug-NET7, Release-NET7 are mostly for development convenience -->
<PropertyGroup Condition = "$(Configuration.Contains('NET7')) == 'true'">
<!-- hard binding to net7, no property and env variable allowed-->
Expand Down Expand Up @@ -127,6 +127,14 @@
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<ItemGroup>
<Using Include="System" />
<Using Include="System.Collections.Generic" />
<Using Include="System.Linq" />
<Using Include="System.Threading" />
<Using Include="System.Threading.Tasks" />
</ItemGroup>

<ItemGroup>
<SourceRoot Include="$(SolutionDir)"/>
<PackageReference Condition="$(DoGeneratePackage) == 'true'"
Expand Down
2 changes: 0 additions & 2 deletions Extensions/TestCommon/AssemblyExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Reflection;
using System.Collections.Generic;
using System.Text;
using System.Configuration;

Expand Down
1 change: 0 additions & 1 deletion Extensions/TestCommon/Model/Bar.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using Xtensive.Orm;

namespace TestCommon.Model
Expand Down
1 change: 0 additions & 1 deletion Extensions/TestCommon/Model/Bar2.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using Xtensive.Orm;

namespace TestCommon.Model
Expand Down
1 change: 0 additions & 1 deletion Extensions/TestCommon/Model/LinqCompilerContainer.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Linq.Expressions;
using Xtensive.Core;
using Xtensive.Linq;
Expand Down
1 change: 0 additions & 1 deletion Extensions/TestCommon/Tests/TestConfigurationTest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using NUnit.Framework;
using Xtensive.Orm.Tests;

Expand Down
2 changes: 0 additions & 2 deletions Extensions/Xtensive.Orm.BulkOperations.Tests/ContainsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// This code is distributed under MIT license terms.
// See the License.txt file in the project root for more information.

using System;
using System.Linq;
using NUnit.Framework;
using Xtensive.Orm.BulkOperations.ContainsTestModel;
using Xtensive.Orm.Configuration;
Expand Down
1 change: 0 additions & 1 deletion Extensions/Xtensive.Orm.BulkOperations.Tests/Extensions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using NUnit.Framework;
using NUnit.Framework.Constraints;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
// Created by: Alexey Kulakov
// Created: 2014.10.16

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using Xtensive.Orm.Model;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
// Created by: Alexey Kulakov
// Created: 2015.02.06

using System;
using System.Linq;
using NUnit.Framework;
using TestCommon.Model;
using Xtensive.Orm.Providers;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Linq;
using NUnit.Framework;
using Xtensive.Orm.BulkOperations.Tests.Issues.WrongAliassesIssue;

Expand Down
4 changes: 0 additions & 4 deletions Extensions/Xtensive.Orm.BulkOperations.Tests/Other.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
// Created by: Alexander Ovchinnikov
// Created: 2012.02.29

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using NUnit.Framework;
using TestCommon.Model;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;
using System.Linq;
using NUnit.Framework;
using TestCommon.Model;

Expand Down
1 change: 0 additions & 1 deletion Extensions/Xtensive.Orm.BulkOperations.Tests/Structures.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Linq;
using NUnit.Framework;
using TestCommon.Model;

Expand Down
4 changes: 0 additions & 4 deletions Extensions/Xtensive.Orm.BulkOperations/BulkExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@
// This code is distributed under MIT license terms.
// See the License.txt file in the project root for more information.

using System;
using System.Diagnostics.Contracts;
using System.Linq;
using System.Linq.Expressions;
using System.Threading;
using System.Threading.Tasks;

namespace Xtensive.Orm.BulkOperations
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Collections.Generic;
using System.Linq.Expressions;
using Xtensive.Linq;
using Xtensive.Orm.Model;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System.Collections.Generic;
using System.Linq;
using Xtensive.Sql;
using Xtensive.Sql.Ddl;
using Xtensive.Sql.Dml;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
// This code is distributed under MIT license terms.
// See the License.txt file in the project root for more information.

using System;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Xtensive.Orm.Linq;
using Xtensive.Orm.Providers;
using Xtensive.Orm.Services;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,8 @@
// This code is distributed under MIT license terms.
// See the License.txt file in the project root for more information.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
using Xtensive.Orm.Linq;
using Xtensive.Orm.Providers;
using Xtensive.Orm.Services;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// This code is distributed under MIT license terms.
// See the License.txt file in the project root for more information.

using System;
using System.Linq;
using System.Linq.Expressions;
using Xtensive.Linq;
using Xtensive.Reflection;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// This code is distributed under MIT license terms.
// See the License.txt file in the project root for more information.

using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq.Expressions;
using Xtensive.Core;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@
// This code is distributed under MIT license terms.
// See the License.txt file in the project root for more information.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Threading;
using System.Threading.Tasks;
using Xtensive.Orm.Linq;
using Xtensive.Orm.Services;
using Xtensive.Sql;
Expand Down
5 changes: 0 additions & 5 deletions Extensions/Xtensive.Orm.BulkOperations/Internals/Operation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
// This code is distributed under MIT license terms.
// See the License.txt file in the project root for more information.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Xtensive.Core;
using Xtensive.Orm.Linq;
using Xtensive.Orm.Providers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
// This code is distributed under MIT license terms.
// See the License.txt file in the project root for more information.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using Xtensive.Core;
using Xtensive.Orm.Linq;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
// This code is distributed under MIT license terms.
// See the License.txt file in the project root for more information.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using Xtensive.Orm.Model;
using Xtensive.Orm.Services;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;
using System.Collections.Generic;
using Xtensive.Sql;
using Xtensive.Sql.Dml;

Expand Down
3 changes: 0 additions & 3 deletions Extensions/Xtensive.Orm.BulkOperations/Internals/Updatable.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;

namespace Xtensive.Orm.BulkOperations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// This code is distributed under MIT license terms.
// See the License.txt file in the project root for more information.

using System;
using System.Linq;
using System.Reflection;
using Xtensive.Orm.Services;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Globalization;
using System.Linq;
using NUnit.Framework;
using Xtensive.Orm.Localization.Tests.Model;
using Xtensive.Orm.Upgrade;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System.Linq;
using System.Threading;
using NUnit.Framework;
using Xtensive.Orm.Localization.Tests.Model;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Linq;
using NUnit.Framework;
using Xtensive.Orm.Localization.Tests.Model;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Linq;
using NUnit.Framework;
using Xtensive.Orm.Localization.Tests.Model;

Expand Down
1 change: 0 additions & 1 deletion Extensions/Xtensive.Orm.Localization.Tests/Model/Page.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// Created by: Dmitri Maximov
// Created: 2009.11.27

using System;
using Xtensive.Orm;

namespace Xtensive.Orm.Localization.Tests.Model
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// Created by: Dmitri Maximov
// Created: 2009.11.27

using System;
using System.Globalization;
using Xtensive.Orm;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
// Created: 2019.12.04

using NUnit.Framework;
using System.Collections.Generic;
using System.Globalization;
using TestCommon;
using Xtensive.Orm.Configuration;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// This code is distributed under MIT license terms.
// See the License.txt file in the project root for more information.

using System.Linq;
using System.Threading;
using NUnit.Framework;
using Xtensive.Orm.Localization.Tests.Model;

Expand Down
3 changes: 0 additions & 3 deletions Extensions/Xtensive.Orm.Localization.Tests/QueryTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using System;
using System.Linq;
using System.Threading;
using NUnit.Framework;
using Xtensive.Orm.Localization.Tests.Model;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// Created by: Dmitri Maximov
// Created: 2012.07.06

using System;
using System.Configuration;

namespace Xtensive.Orm.Localization.Configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@
// Created by: Dmitri Maximov
// Created: 2012.07.06

using System;
using System.Configuration;
using System.Globalization;
using System.Threading;

namespace Xtensive.Orm.Localization.Configuration
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
// Created by: Dmitri Maximov
// Created: 2009.12.28

using System;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// Created by: Dmitri Maximov
// Created: 2009.12.28

using System;
using System.Reflection;
using Xtensive.Orm.Model;
using TypeInfo = Xtensive.Orm.Model.TypeInfo;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
// Created by: Dmitri Maximov
// Created: 2009.12.28

using System;
using System.Collections.Generic;
using Xtensive.Orm.Localization.Configuration;
using Xtensive.Orm.Model;
using Xtensive.Orm;
Expand Down
1 change: 0 additions & 1 deletion Extensions/Xtensive.Orm.Localization/Localization.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// Created by: Dmitri Maximov
// Created: 2009.11.27

using System;
using System.Globalization;

namespace Xtensive.Orm.Localization
Expand Down
2 changes: 0 additions & 2 deletions Extensions/Xtensive.Orm.Localization/LocalizationContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
// Created by: Dmitri Maximov
// Created: 2009.11.30

using System;
using System.Globalization;
using System.Threading;
using Xtensive.Core;

namespace Xtensive.Orm.Localization
Expand Down
1 change: 0 additions & 1 deletion Extensions/Xtensive.Orm.Localization/LocalizationPolicy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// Created by: Dmitri Maximov
// Created: 2009.11.30

using System;

namespace Xtensive.Orm.Localization
{
Expand Down
1 change: 0 additions & 1 deletion Extensions/Xtensive.Orm.Localization/LocalizationSet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// Created by: Dmitri Maximov
// Created: 2009.11.30

using System;
using System.Globalization;
using Xtensive.Orm.Model;

Expand Down
1 change: 0 additions & 1 deletion Extensions/Xtensive.Orm.Localization/QueryExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// Created by: Dmitri Maximov
// Created: 2009.12.16

using System.Linq;
using Xtensive.Orm;

namespace Xtensive.Orm.Localization
Expand Down
Loading