* cleanup test projects

* fix

* cleanup
This commit is contained in:
Timothy Mothra 2021-08-12 14:41:03 -07:00 коммит произвёл GitHub
Родитель fc166a132e
Коммит bf9957e1e2
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
24 изменённых файлов: 58 добавлений и 115 удалений

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

@ -8,6 +8,22 @@
<Import Project=".\_Common.props" />
<Import Project=".\_AnalyzerSettings.props" />
<PropertyGroup>
<!-- Our test matrix includes every currently supported version of .NET
- net4.5.2 (EoL April 2022)
- net4.6.0 (EoL April 2022)
- net4.6.1 (EoL April 2022)
- net4.6.2
- net4.7.2
- net4.8.0
- netcoreapp3.1 (EoL Dec 2022)
- net5.0 (EoL Feb 2022)
- net6.0 (GA Nov 2021)
-->
<TargetFrameworks>net462;net472;net480;netcoreapp3.1;net5.0</TargetFrameworks>
<TargetFrameworks Condition="$(OS) != 'Windows_NT'">netcoreapp3.1;net5.0</TargetFrameworks>
</PropertyGroup>
<PropertyGroup>
<IsPackable>false</IsPackable>
</PropertyGroup>

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

@ -2,6 +2,7 @@
<Import Project="$(PropsRoot)\Test.props" />
<PropertyGroup>
<!-- TargetFrameworks are defined in Test.props, but can be overridden here if needed. -->
<TargetFrameworks>net452;net46;net461;netcoreapp3.1;net5.0</TargetFrameworks>
<TargetFrameworks Condition="$(OS) != 'Windows_NT'">netcoreapp3.1</TargetFrameworks>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
@ -46,9 +47,5 @@
<PackageReference Include="Azure.Core" Version="1.14.0" /> <!-- Supports: net461, netstandard2.0, and net5.0 -->
</ItemGroup>
<ItemGroup>
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
</ItemGroup>
<Import Project="..\..\TestFramework\Shared\TestFramework.Shared.projitems" Label="TestFramework.Shared" />
</Project>

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

@ -2,6 +2,7 @@
<Import Project="$(PropsRoot)\Test.props" />
<PropertyGroup>
<!-- TargetFrameworks are defined in Test.props, but can be overridden here if needed. -->
<ProjectGuid>{2759BC71-7F47-44DA-8579-AE2D8C8C684D}</ProjectGuid>
<TargetFrameworks>net46;netcoreapp3.1</TargetFrameworks>
</PropertyGroup>
@ -50,9 +51,4 @@
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.Xml.Linq" />
</ItemGroup>
<ItemGroup>
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
</ItemGroup>
</Project>

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

@ -2,6 +2,7 @@
<Import Project="$(PropsRoot)\Test.props" />
<PropertyGroup>
<!-- TargetFrameworks are defined in Test.props, but can be overridden here if needed. -->
<ProjectGuid>{21CB9A8A-F25B-4DEB-92CB-ACB6920EB8BC}</ProjectGuid>
<TargetFrameworks>net452</TargetFrameworks>
<AssemblyName>TelemetryChannel.Nuget.Tests</AssemblyName>
@ -33,8 +34,4 @@
<Link>Resources\ApplicationInsights.config.uninstall.xdt</Link>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
</ItemGroup>
</Project>

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

@ -2,6 +2,7 @@
<Import Project="$(PropsRoot)\Test.props" />
<PropertyGroup>
<!-- TargetFrameworks are defined in Test.props, but can be overridden here if needed. -->
<TargetFrameworks>net452;netcoreapp3.1</TargetFrameworks>
<TargetFrameworks Condition="$(OS) != 'Windows_NT'">netcoreapp3.1</TargetFrameworks>
@ -28,10 +29,6 @@
<Reference Include="System.Web.Extensions" />
</ItemGroup>
<ItemGroup>
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'">
<PackageReference Include="Azure.Core" Version="1.14.0" />

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

@ -1,6 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="$(PropsRoot)\Test.props" />
<PropertyGroup>
<!-- TargetFrameworks are defined in Test.props, but can be overridden here if needed. -->
<RootNamespace>Microsoft.ApplicationInsights.DiagnosticSourceListener.Tests</RootNamespace>
<AssemblyName>Microsoft.ApplicationInsights.DiagnosticSourceListener.Tests</AssemblyName>
<TargetFrameworks>netcoreapp3.1</TargetFrameworks>
@ -16,13 +18,6 @@
<ProjectReference Include="..\..\src\DiagnosticSourceListener\DiagnosticSourceListener.csproj" />
</ItemGroup>
<ItemGroup>
<!-- Identifies the project as test project -->
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
</ItemGroup>
<Import Project="$(PropsRoot)\Test.props" />
<Import Project="..\Shared\Adapters.Shared.Tests.projitems" Label="Shared" Condition="Exists('..\Shared\Adapters.Shared.Tests.projitems')" />
<Import Project="..\CommonTestShared\CommonTestShared.projitems" Label="Shared" Condition="Exists('..\CommonTestShared\CommonTestShared.projitems')" />
</Project>
</Project>

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

@ -1,6 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="$(PropsRoot)\Test.props" />
<PropertyGroup>
<!-- TargetFrameworks are defined in Test.props, but can be overridden here if needed. -->
<RootNamespace>Microsoft.ApplicationInsights.EtwCollector.Tests</RootNamespace>
<AssemblyName>Microsoft.ApplicationInsights.EtwCollector.Tests</AssemblyName>
<TargetFrameworks>net46</TargetFrameworks>
@ -18,14 +20,7 @@
<ItemGroup>
<Reference Include="System.Net.Http" />
</ItemGroup>
<ItemGroup>
<!-- Identifies the project as test project -->
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
</ItemGroup>
<Import Project="$(PropsRoot)\Test.props" />
<Import Project="..\Shared\Adapters.Shared.Tests.projitems" Label="Shared" Condition="Exists('..\Shared\Adapters.Shared.Tests.projitems')" />
<Import Project="..\CommonTestShared\CommonTestShared.projitems" Label="Shared" Condition="Exists('..\CommonTestShared\CommonTestShared.projitems')" />
</Project>
</Project>

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

@ -1,6 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="$(PropsRoot)\Test.props" />
<PropertyGroup>
<!-- TargetFrameworks are defined in Test.props, but can be overridden here if needed. -->
<RootNamespace>Microsoft.ApplicationInsights.EventSourceListener.Tests</RootNamespace>
<AssemblyName>Microsoft.ApplicationInsights.EventSourceListener.Tests</AssemblyName>
<TargetFrameworks>netcoreapp3.1</TargetFrameworks>
@ -15,14 +17,6 @@
<ItemGroup>
<ProjectReference Include="..\..\src\EventSourceListener\EventSourceListener.csproj" />
</ItemGroup>
<ItemGroup>
<!-- Identifies the project as test project -->
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
</ItemGroup>
<Import Project="$(PropsRoot)\Test.props" />
<Import Project="..\Shared\Adapters.Shared.Tests.projitems" Label="Shared" Condition="Exists('..\Shared\Adapters.Shared.Tests.projitems')" />
<Import Project="..\CommonTestShared\CommonTestShared.projitems" Label="Shared" Condition="Exists('..\CommonTestShared\CommonTestShared.projitems')" />
</Project>
</Project>

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

@ -2,6 +2,7 @@
<Import Project="$(PropsRoot)\Test.props" />
<PropertyGroup>
<!-- TargetFrameworks are defined in Test.props, but can be overridden here if needed. -->
<TargetFrameworks>netcoreapp3.1</TargetFrameworks>
</PropertyGroup>

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

@ -2,6 +2,7 @@
<Import Project="$(PropsRoot)\Test.props" />
<PropertyGroup>
<!-- TargetFrameworks are defined in Test.props, but can be overridden here if needed. -->
<RootNamespace>Microsoft.ApplicationInsights.Log4NetAppender.Tests</RootNamespace>
<AssemblyName>Microsoft.ApplicationInsights.Log4NetAppender.Tests</AssemblyName>
<TargetFrameworks>net452;netcoreapp3.1</TargetFrameworks>
@ -20,12 +21,6 @@
<Reference Include="System.Net.Http" />
</ItemGroup>
<ItemGroup>
<!-- Identifies the project as test project -->
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
</ItemGroup>
<Import Project="..\Shared\Adapters.Shared.Tests.projitems" Label="Shared" Condition="Exists('..\Shared\Adapters.Shared.Tests.projitems')" />
<Import Project="..\CommonTestShared\CommonTestShared.projitems" Label="Shared" Condition="Exists('..\CommonTestShared\CommonTestShared.projitems')" />
</Project>
</Project>

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

@ -2,6 +2,7 @@
<Import Project="$(PropsRoot)\Test.props" />
<PropertyGroup>
<!-- TargetFrameworks are defined in Test.props, but can be overridden here if needed. -->
<RootNamespace>Microsoft.ApplicationInsights.NLogTarget.Tests</RootNamespace>
<AssemblyName>Microsoft.ApplicationInsights.NLogTarget.Tests</AssemblyName>
<TargetFrameworks>net452;netcoreapp3.1</TargetFrameworks>
@ -20,11 +21,6 @@
<Reference Include="System.Net.Http" />
</ItemGroup>
<ItemGroup>
<!-- Identifies the project as test project -->
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
</ItemGroup>
<Import Project="..\Shared\Adapters.Shared.Tests.projitems" Label="Shared" Condition="Exists('..\Shared\Adapters.Shared.Tests.projitems')" />
<Import Project="..\CommonTestShared\CommonTestShared.projitems" Label="Shared" Condition="Exists('..\CommonTestShared\CommonTestShared.projitems')" />
</Project>
</Project>

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

@ -2,6 +2,7 @@
<Import Project="$(PropsRoot)\Test.props" />
<PropertyGroup>
<!-- TargetFrameworks are defined in Test.props, but can be overridden here if needed. -->
<RootNamespace>Microsoft.ApplicationInsights.TraceListener.Tests</RootNamespace>
<AssemblyName>Microsoft.ApplicationInsights.TraceListener.Tests</AssemblyName>
<TargetFrameworks>net452;netcoreapp3.1</TargetFrameworks>
@ -20,11 +21,6 @@
<Reference Include="System.Net.Http" />
</ItemGroup>
<ItemGroup>
<!-- Identifies the project as test project -->
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
</ItemGroup>
<Import Project="..\Shared\Adapters.Shared.Tests.projitems" Label="Shared" Condition="Exists('..\Shared\Adapters.Shared.Tests.projitems')" />
<Import Project="..\CommonTestShared\CommonTestShared.projitems" Label="Shared" Condition="Exists('..\CommonTestShared\CommonTestShared.projitems')" />
</Project>
</Project>

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

@ -2,6 +2,7 @@
<Import Project="$(PropsRoot)\Test.props" />
<PropertyGroup>
<!-- TargetFrameworks are defined in Test.props, but can be overridden here if needed. -->
<RootNamespace>Xdt.Tests</RootNamespace>
<AssemblyName>Xdt.Tests</AssemblyName>
<TargetFrameworks>net452</TargetFrameworks>
@ -16,11 +17,6 @@
<Reference Include="System.Xml.Linq" />
</ItemGroup>
<ItemGroup>
<!-- Identifies the project as test project -->
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="..\..\src\TraceListener\app.config.install.xdt">
<Link>Resources\TraceListener\app.config.install.xdt</Link>
@ -77,6 +73,7 @@
<Link>Resources\EtwCollector\ApplicationInsights.config.uninstall.xdt</Link>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Resources\Log4Net\TestDataSet.xml" />
<EmbeddedResource Include="Resources\NLog\TestDataSet.xml" />
@ -84,11 +81,13 @@
<EmbeddedResource Include="Resources\DiagnosticSourceListener\TestDataSet.xml" />
<EmbeddedResource Include="Resources\EventSourceListener\TestDataSet.xml" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Resources\EtwCollector\TestDataSet.xml" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\BASE\src\Microsoft.ApplicationInsights\Microsoft.ApplicationInsights.csproj" />
</ItemGroup>
</Project>
</Project>

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

@ -60,8 +60,4 @@
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.0.0" />
</ItemGroup>
<ItemGroup>
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
</ItemGroup>
</Project>

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

@ -43,8 +43,4 @@
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.0.0" />
</ItemGroup>
<ItemGroup>
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
</ItemGroup>
</Project>

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

@ -1,16 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="$(PropsRoot)\_Signing.props" />
<Import Project="$(PropsRoot)\Test.props" />
<PropertyGroup>
<VersionPrefix>2.0.0</VersionPrefix>
<!-- TargetFrameworks are defined in Test.props, but can be overridden here if needed. -->
<TargetFrameworks>net461;netcoreapp3.1</TargetFrameworks>
<TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">netcoreapp3.1</TargetFrameworks>
<DelaySign Condition=" '$(OS)' == 'Windows_NT' ">true</DelaySign>
<PreserveCompilationContext>true</PreserveCompilationContext>
<AssemblyName>Microsoft.ApplicationInsights.AspNetCore.Tests</AssemblyName>
<PackageId>Microsoft.ApplicationInsights.AspNetCore.Tests</PackageId>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
<!-- Side effect of adding the Test.props, some analyzers are now running in this project. I'll fix these in a follow up PR. -->
<NoWarn>CS0618</NoWarn>
</PropertyGroup>
<ItemGroup>
@ -24,7 +21,6 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="xunit" Version="2.4.1" />
<DotNetCliToolReference Include="dotnet-xunit" Version="2.3.1" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net461' ">
@ -53,8 +49,4 @@
</None>
</ItemGroup>
<ItemGroup>
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
</ItemGroup>
</Project>

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

@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="$(PropsRoot)\_Signing.props" />
<Import Project="$(PropsRoot)\Test.props" />
<PropertyGroup>
<!-- TargetFrameworks are defined in Test.props, but can be overridden here if needed. -->
<TargetFrameworks>netcoreapp3.1</TargetFrameworks>
</PropertyGroup>
@ -17,7 +17,6 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="xunit" Version="2.4.1" />
<DotNetCliToolReference Include="dotnet-xunit" Version="2.3.1" />
</ItemGroup>
<ItemGroup>

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

@ -2,11 +2,11 @@
<Import Project="$(PropsRoot)\Test.props" />
<PropertyGroup>
<!-- TargetFrameworks are defined in Test.props, but can be overridden here if needed. -->
<TargetFrameworks>net452;netcoreapp3.1</TargetFrameworks>
<AssemblyName>Microsoft.ApplicationInsights.DependencyCollector.Tests</AssemblyName>
<PackageId>Microsoft.AI.DependencyCollector.Tests</PackageId>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
<NoWarn>1701;1702;1705;1591</NoWarn>
</PropertyGroup>
@ -48,9 +48,6 @@
<Reference Include="System.Xml.Linq" />
</ItemGroup>
<ItemGroup>
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
</ItemGroup>
<Import Project="..\..\TestFramework\Shared\TestFramework.Shared.projitems" Label="Shared" />
</Project>

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

@ -2,6 +2,7 @@
<Import Project="$(PropsRoot)\Test.props" />
<PropertyGroup>
<!-- TargetFrameworks are defined in Test.props, but can be overridden here if needed. -->
<TargetFrameworks>netcoreapp3.1</TargetFrameworks>
<AssemblyName>Microsoft.AI.EventCounterCollector.Tests</AssemblyName>
</PropertyGroup>

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

@ -2,6 +2,7 @@
<Import Project="$(PropsRoot)\Test.props" />
<PropertyGroup>
<!-- TargetFrameworks are defined in Test.props, but can be overridden here if needed. -->
<RootNamespace>Microsoft.ApplicationInsights.HostingStartup.Tests</RootNamespace>
<AssemblyName>Microsoft.ApplicationInsights.HostingStartup.Tests</AssemblyName>
<TargetFrameworks>net452</TargetFrameworks>
@ -21,9 +22,4 @@
<Reference Include="System.Net.Http" />
</ItemGroup>
<ItemGroup>
<!-- Identifies the project as test project -->
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
</ItemGroup>
</Project>

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

@ -2,10 +2,9 @@
<Import Project="$(PropsRoot)\Test.props" />
<PropertyGroup>
<!-- TargetFrameworks are defined in Test.props, but can be overridden here if needed. -->
<TargetFrameworks>net452;netcoreapp3.1</TargetFrameworks>
<AssemblyName>Microsoft.AI.PerformanceCollector.Tests</AssemblyName>
<PackageId>Microsoft.AI.DependencyCollector.Tests</PackageId>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
<RootNamespace>Microsoft.ApplicationInsights.Tests</RootNamespace>
</PropertyGroup>
@ -38,10 +37,6 @@
<ProjectReference Include="..\PerformanceCollector\Perf.csproj" />
</ItemGroup>
<ItemGroup>
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
</ItemGroup>
<ItemGroup>
<None Update="WebAppPerformanceCollector\SampleFiles\RemoteEnvironmentVariablesAllSampleOne.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>

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

@ -2,6 +2,7 @@
<Import Project="$(PropsRoot)\Test.props" />
<PropertyGroup>
<!-- TargetFrameworks are defined in Test.props, but can be overridden here if needed. -->
<RootNamespace>Xdt.Tests</RootNamespace>
<AssemblyName>Xdt.Tests</AssemblyName>
<TargetFrameworks>net45;net452</TargetFrameworks>
@ -34,8 +35,4 @@
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<!-- Identifies the project as test project -->
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
</ItemGroup>
</Project>

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

@ -2,6 +2,7 @@
<Import Project="$(PropsRoot)\Test.props" />
<PropertyGroup>
<!-- TargetFrameworks are defined in Test.props, but can be overridden here if needed. -->
<AssemblyName>Microsoft.ApplicationInsights.Web.Tests</AssemblyName>
<TargetFrameworks>net452</TargetFrameworks>
</PropertyGroup>
@ -42,5 +43,7 @@
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
<Import Project="..\..\TestFramework\Shared\TestFramework.Shared.projitems" Label="Shared" />
</Project>

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

@ -2,11 +2,8 @@
<Import Project="$(PropsRoot)\Test.props" />
<PropertyGroup>
<!-- TargetFrameworks are defined in Test.props, but can be overridden here if needed. -->
<AssemblyName>Microsoft.AI.WindowsServer.Tests</AssemblyName>
<PackageId>Microsoft.AI.WindowsServer.Tests</PackageId>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
<RootNamespace>Microsoft.ApplicationInsights.Tests</RootNamespace>
<TargetFrameworks>net452;netcoreapp3.1</TargetFrameworks>
</PropertyGroup>