Skip to content

Commit 03e8eb6

Browse files
committed
Embed test project props into the test project itself
1 parent b9b5f6c commit 03e8eb6

File tree

5 files changed

+23
-32
lines changed

5 files changed

+23
-32
lines changed

Src/Common.Test.props

Lines changed: 0 additions & 16 deletions
This file was deleted.

Src/Common.Test.xUnit.props

Lines changed: 0 additions & 9 deletions
This file was deleted.

Src/Common.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<Otherwise>
3030
<PropertyGroup>
3131
<_IsFullFramework>true</_IsFullFramework>
32-
<DefineConstants>$(DefineConstants);SYSTEM_RUNTIME_SERIALIZATION;SYSTEM_COMPONENTSETTINGS_DATAERRORINFO;SYSTEM_REFLECTION_EMIT_DYNAMICASSEMBLY_SAVE</DefineConstants>
32+
<DefineConstants>$(DefineConstants);SYSTEM_RUNTIME_SERIALIZATION;SYSTEM_COMPONENTSETTINGS_DATAERRORINFO;SYSTEM_REFLECTION_EMIT_DYNAMICASSEMBLY_SAVE;SYSTEM_OPERATINGSYSTEM</DefineConstants>
3333
</PropertyGroup>
3434
</Otherwise>
3535
</Choose>

Src/SemanticComparison.sln

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1111
ProjectSection(SolutionItems) = preProject
1212
..\.editorconfig = ..\.editorconfig
1313
Common.props = Common.props
14-
Common.Test.props = Common.Test.props
15-
Common.Test.xUnit.props = Common.Test.xUnit.props
1614
EndProjectSection
1715
EndProject
1816
Global

Src/SemanticComparisonUnitTest/SemanticComparisonUnitTest.csproj

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,34 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<Import Project="..\Common.props" />
3-
<Import Project="..\Common.Test.props" />
4-
<Import Project="..\Common.Test.xUnit.props" />
53

64
<PropertyGroup>
75
<TargetFrameworks>net452;netcoreapp1.1</TargetFrameworks>
86
<AssemblyTitle>SemanticComparisonUnitTest</AssemblyTitle>
97
<AssemblyName>SemanticComparison.UnitTest</AssemblyName>
10-
11-
<DefineConstants Condition=" '$(TargetFramework)'=='net452' ">$(DefineConstants);SYSTEM_OPERATINGSYSTEM</DefineConstants>
8+
9+
<SignAssembly>False</SignAssembly>
10+
<GenerateDocumentationFile>false</GenerateDocumentationFile>
11+
12+
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
13+
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
14+
15+
<RunCodeAnalysis>false</RunCodeAnalysis>
16+
<CodeAnalysisRuleSet>..\Empty.ruleset</CodeAnalysisRuleSet>
17+
18+
<IsPackable>false</IsPackable>
19+
<!-- Disable source link support for test projects as they are not publishable. -->
20+
<SourceLinkCreate>false</SourceLinkCreate>
1221
</PropertyGroup>
1322

23+
24+
<ItemGroup>
25+
<PackageReference Include="xunit" Version="2.3.0" />
26+
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.0" />
27+
<DotNetCliToolReference Include="dotnet-xunit" Version="2.3.0" />
28+
29+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.3.0" />
30+
</ItemGroup>
31+
1432
<ItemGroup>
1533
<ProjectReference Include="..\SemanticComparison\SemanticComparison.csproj" />
1634
</ItemGroup>

0 commit comments

Comments
 (0)