|
1 | | -<Project Sdk="Microsoft.NET.Sdk"> |
2 | | - |
3 | | - <PropertyGroup> |
4 | | - <TargetFrameworks>net8.0;net9.0</TargetFrameworks> |
5 | | - <LangVersion>13.0</LangVersion> |
6 | | - <Nullable>enable</Nullable> |
7 | | - <IsPackable>false</IsPackable> |
8 | | - </PropertyGroup> |
9 | | - |
10 | | - <PropertyGroup> |
11 | | - <UseMicrosoftTestingPlatformRunner>true</UseMicrosoftTestingPlatformRunner> |
12 | | - <TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport> |
13 | | - </PropertyGroup> |
14 | | - |
15 | | - <Import Project="..\WarningConfiguration.targets" /> |
16 | | - |
17 | | - <ItemGroup> |
18 | | - <PackageReference Include="GitReader" Version="1.10.0" /> |
19 | | - <PackageReference Include="H.Generators.Extensions" Version="1.24.2" /> |
20 | | - <PackageReference Include="H.Generators.Tests.Extensions" Version="1.24.2" /> |
21 | | - <PackageReference Include="Microsoft.Bcl.TimeProvider" Version="8.0.1" /> |
22 | | - <PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="4.14.0" PrivateAssets="all" /> |
23 | | - <PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.14.0" PrivateAssets="all" /> |
24 | | - <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" /> |
25 | | - <PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" /> |
26 | | - <PackageReference Include="Verify.XUnitV3" Version="30.5.0" /> |
27 | | - <PackageReference Include="Verify.SourceGenerators" Version="2.5.0" /> |
28 | | - <PackageReference Include="xunit.v3" Version="3.0.0" /> |
29 | | - <PackageReference Include="xunit.runner.visualstudio" Version="3.1.3"> |
30 | | - <PrivateAssets>all</PrivateAssets> |
31 | | - <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> |
32 | | - </PackageReference> |
33 | | - </ItemGroup> |
34 | | - |
35 | | - <ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' "> |
36 | | - <PackageReference Include="System.Text.Json" Version="8.0.6" /> |
37 | | - <PackageReference Include="Microsoft.Extensions.TimeProvider.Testing" Version="8.10.0" /> |
38 | | - </ItemGroup> |
39 | | - |
40 | | - <ItemGroup Condition=" '$(TargetFramework)' == 'net9.0' "> |
41 | | - <PackageReference Include="System.Text.Json" Version="9.0.8" /> |
42 | | - <PackageReference Include="Microsoft.Extensions.TimeProvider.Testing" Version="9.7.0" /> |
43 | | - </ItemGroup> |
44 | | - |
45 | | - <ItemGroup> |
46 | | - <ProjectReference Include="..\GitReader.SourceGenerator\GitReader.SourceGenerator.csproj" /> |
47 | | - </ItemGroup> |
48 | | - |
49 | | - <ItemGroup> |
50 | | - <None Update="GitReaderSnapshotTests.*.g.verified.cs"> |
51 | | - <DependentUpon>GitReaderSnapshotTests.cs</DependentUpon> |
52 | | - </None> |
53 | | - </ItemGroup> |
54 | | - |
55 | | - <Target Name="ExtractSnapshots" BeforeTargets="Restore;_GenerateRestoreProjectSpec"> |
56 | | - <Message Importance="High" Text="Extracting $(MSBuildProjectDirectory)/../../v-tag-repository.zip to the $(MSBuildProjectDirectory)/../../repository-snapshots" /> |
57 | | - <Message Importance="High" Text="Extracting $(MSBuildProjectDirectory)/../../tag-repository.zip to the $(MSBuildProjectDirectory)/../../repository-snapshots" /> |
58 | | - <Message Importance="High" Text="Extracting $(MSBuildProjectDirectory)/../../no-tag-repository.zip to the $(MSBuildProjectDirectory)/../../repository-snapshots" /> |
59 | | - |
60 | | - <Unzip SourceFiles="$(MSBuildProjectDirectory)/../../repository-snapshots/v-tag-repository.zip" |
61 | | - DestinationFolder="$(MSBuildProjectDirectory)/../../repository-snapshots" |
62 | | - Condition="!Exists('$(MSBuildProjectDirectory)/../../repository-snapshots/v-tag-repository')" |
63 | | - OverwriteReadOnlyFiles="true" /> |
64 | | - |
65 | | - <Unzip SourceFiles="$(MSBuildProjectDirectory)/../../repository-snapshots/tag-repository.zip" |
66 | | - DestinationFolder="$(MSBuildProjectDirectory)/../../repository-snapshots" |
67 | | - Condition="!Exists('$(MSBuildProjectDirectory)/../../repository-snapshots/tag-repository')" |
68 | | - OverwriteReadOnlyFiles="true" /> |
69 | | - |
70 | | - <Unzip SourceFiles="$(MSBuildProjectDirectory)/../../repository-snapshots/no-tag-repository.zip" |
71 | | - DestinationFolder="$(MSBuildProjectDirectory)/../../repository-snapshots" |
72 | | - Condition="!Exists('$(MSBuildProjectDirectory)/../../repository-snapshots/no-tag-repository')" |
73 | | - OverwriteReadOnlyFiles="true" /> |
74 | | - </Target> |
75 | | - |
76 | | -</Project> |
| 1 | +<Project Sdk="Microsoft.NET.Sdk"> |
| 2 | + |
| 3 | + <PropertyGroup> |
| 4 | + <OutputType>Exe</OutputType> |
| 5 | + <TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks> |
| 6 | + <LangVersion>14.0</LangVersion> |
| 7 | + <Nullable>enable</Nullable> |
| 8 | + <IsPackable>false</IsPackable> |
| 9 | + </PropertyGroup> |
| 10 | + |
| 11 | + <PropertyGroup> |
| 12 | + <UseMicrosoftTestingPlatformRunner>true</UseMicrosoftTestingPlatformRunner> |
| 13 | + <TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport> |
| 14 | + </PropertyGroup> |
| 15 | + |
| 16 | + <Import Project="..\WarningConfiguration.targets" /> |
| 17 | + |
| 18 | + <ItemGroup> |
| 19 | + <PackageReference Include="GitReader" Version="1.16.0" /> |
| 20 | + <PackageReference Include="H.Generators.Extensions" Version="1.24.2" /> |
| 21 | + <PackageReference Include="H.Generators.Tests.Extensions" Version="1.24.2" /> |
| 22 | + <PackageReference Include="Microsoft.Bcl.TimeProvider" Version="10.0.0" /> |
| 23 | + <PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="4.14.0" PrivateAssets="all" /> |
| 24 | + <PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.14.0" PrivateAssets="all" /> |
| 25 | + <PackageReference Include="Microsoft.Testing.Extensions.CodeCoverage" Version="18.1.0" /> |
| 26 | + <PackageReference Include="Microsoft.Testing.Extensions.TrxReport" Version="2.0.2" /> |
| 27 | + <PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" /> |
| 28 | + <PackageReference Include="Verify.XUnitV3" Version="31.6.0" /> |
| 29 | + <PackageReference Include="Verify.SourceGenerators" Version="2.5.0" /> |
| 30 | + <PackageReference Include="xunit.v3.mtp-v2" Version="3.2.0" /> |
| 31 | + </ItemGroup> |
| 32 | + |
| 33 | + <ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' "> |
| 34 | + <PackageReference Include="Microsoft.Extensions.TimeProvider.Testing" Version="8.10.0" /> |
| 35 | + </ItemGroup> |
| 36 | + |
| 37 | + <ItemGroup Condition=" '$(TargetFramework)' == 'net9.0' "> |
| 38 | + <PackageReference Include="Microsoft.Extensions.TimeProvider.Testing" Version="9.10.0" /> |
| 39 | + </ItemGroup> |
| 40 | + |
| 41 | + <ItemGroup Condition=" '$(TargetFramework)' == 'net10.0' "> |
| 42 | + <PackageReference Include="Microsoft.Extensions.TimeProvider.Testing" Version="10.0.0" /> |
| 43 | + </ItemGroup> |
| 44 | + |
| 45 | + <ItemGroup> |
| 46 | + <ProjectReference Include="..\GitReader.SourceGenerator\GitReader.SourceGenerator.csproj" /> |
| 47 | + </ItemGroup> |
| 48 | + |
| 49 | + <ItemGroup> |
| 50 | + <None Update="GitReaderSnapshotTests.*.g.verified.cs"> |
| 51 | + <DependentUpon>GitReaderSnapshotTests.cs</DependentUpon> |
| 52 | + </None> |
| 53 | + </ItemGroup> |
| 54 | + |
| 55 | + <Target Name="ExtractSnapshots" BeforeTargets="Restore;_GenerateRestoreProjectSpec"> |
| 56 | + <Message Importance="High" Text="Extracting $(MSBuildProjectDirectory)/../../v-tag-repository.zip to the $(MSBuildProjectDirectory)/../../repository-snapshots" /> |
| 57 | + <Message Importance="High" Text="Extracting $(MSBuildProjectDirectory)/../../tag-repository.zip to the $(MSBuildProjectDirectory)/../../repository-snapshots" /> |
| 58 | + <Message Importance="High" Text="Extracting $(MSBuildProjectDirectory)/../../no-tag-repository.zip to the $(MSBuildProjectDirectory)/../../repository-snapshots" /> |
| 59 | + |
| 60 | + <Unzip SourceFiles="$(MSBuildProjectDirectory)/../../repository-snapshots/v-tag-repository.zip" |
| 61 | + DestinationFolder="$(MSBuildProjectDirectory)/../../repository-snapshots" |
| 62 | + Condition="!Exists('$(MSBuildProjectDirectory)/../../repository-snapshots/v-tag-repository')" |
| 63 | + OverwriteReadOnlyFiles="true" /> |
| 64 | + |
| 65 | + <Unzip SourceFiles="$(MSBuildProjectDirectory)/../../repository-snapshots/tag-repository.zip" |
| 66 | + DestinationFolder="$(MSBuildProjectDirectory)/../../repository-snapshots" |
| 67 | + Condition="!Exists('$(MSBuildProjectDirectory)/../../repository-snapshots/tag-repository')" |
| 68 | + OverwriteReadOnlyFiles="true" /> |
| 69 | + |
| 70 | + <Unzip SourceFiles="$(MSBuildProjectDirectory)/../../repository-snapshots/no-tag-repository.zip" |
| 71 | + DestinationFolder="$(MSBuildProjectDirectory)/../../repository-snapshots" |
| 72 | + Condition="!Exists('$(MSBuildProjectDirectory)/../../repository-snapshots/no-tag-repository')" |
| 73 | + OverwriteReadOnlyFiles="true" /> |
| 74 | + </Target> |
| 75 | + |
| 76 | +</Project> |
0 commit comments