|
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 |
| - <Import Project="..\WarningConfiguration.targets" /> |
11 |
| - |
12 |
| - <ItemGroup> |
13 |
| - <PackageReference Include="H.Generators.Tests.Extensions" Version="1.24.1" /> |
14 |
| - <PackageReference Include="Microsoft.Bcl.TimeProvider" Version="8.0.1" /> |
15 |
| - <PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.11.0" PrivateAssets="all" /> |
16 |
| - <PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.12.0" PrivateAssets="all" /> |
17 |
| - <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" /> |
18 |
| - <PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" /> |
19 |
| - <PackageReference Include="Verify.XUnit" Version="28.9.0" /> |
20 |
| - <PackageReference Include="Verify.SourceGenerators" Version="2.5.0" /> |
21 |
| - <PackageReference Include="xunit" Version="2.9.3" /> |
22 |
| - <PackageReference Include="xunit.runner.visualstudio" Version="3.0.1"> |
23 |
| - <PrivateAssets>all</PrivateAssets> |
24 |
| - <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> |
25 |
| - </PackageReference> |
26 |
| - </ItemGroup> |
27 |
| - |
28 |
| - <ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' "> |
29 |
| - <PackageReference Include="System.Text.Json" Version="8.0.5" /> |
30 |
| - <PackageReference Include="Microsoft.Extensions.TimeProvider.Testing" Version="8.10.0" /> |
31 |
| - </ItemGroup> |
32 |
| - |
33 |
| - <ItemGroup Condition=" '$(TargetFramework)' == 'net9.0' "> |
34 |
| - <PackageReference Include="System.Text.Json" Version="9.0.1" /> |
35 |
| - <PackageReference Include="Microsoft.Extensions.TimeProvider.Testing" Version="9.1.0" /> |
36 |
| - </ItemGroup> |
37 |
| - |
38 |
| - <ItemGroup> |
39 |
| - <ProjectReference Include="..\GitReader.SourceGenerator\GitReader.SourceGenerator.csproj" /> |
40 |
| - </ItemGroup> |
41 |
| - |
42 |
| - <ItemGroup> |
43 |
| - <None Update="GitReaderSnapshotTests.*.g.verified.cs"> |
44 |
| - <DependentUpon>GitReaderSnapshotTests.cs</DependentUpon> |
45 |
| - </None> |
46 |
| - </ItemGroup> |
47 |
| - |
48 |
| - <Target Name="ExtractSnapshots" BeforeTargets="Restore;_GenerateRestoreProjectSpec"> |
49 |
| - <Message Importance="High" Text="Extracting $(MSBuildProjectDirectory)/../../v-tag-repository.zip to the $(MSBuildProjectDirectory)/../../repository-snapshots" /> |
50 |
| - <Message Importance="High" Text="Extracting $(MSBuildProjectDirectory)/../../tag-repository.zip to the $(MSBuildProjectDirectory)/../../repository-snapshots" /> |
51 |
| - <Message Importance="High" Text="Extracting $(MSBuildProjectDirectory)/../../no-tag-repository.zip to the $(MSBuildProjectDirectory)/../../repository-snapshots" /> |
52 |
| - |
53 |
| - <Unzip SourceFiles="$(MSBuildProjectDirectory)/../../repository-snapshots/v-tag-repository.zip" |
54 |
| - DestinationFolder="$(MSBuildProjectDirectory)/../../repository-snapshots" |
55 |
| - Condition="!Exists('$(MSBuildProjectDirectory)/../../repository-snapshots/v-tag-repository')" |
56 |
| - OverwriteReadOnlyFiles="true" /> |
57 |
| - |
58 |
| - <Unzip SourceFiles="$(MSBuildProjectDirectory)/../../repository-snapshots/tag-repository.zip" |
59 |
| - DestinationFolder="$(MSBuildProjectDirectory)/../../repository-snapshots" |
60 |
| - Condition="!Exists('$(MSBuildProjectDirectory)/../../repository-snapshots/tag-repository')" |
61 |
| - OverwriteReadOnlyFiles="true" /> |
62 |
| - |
63 |
| - <Unzip SourceFiles="$(MSBuildProjectDirectory)/../../repository-snapshots/no-tag-repository.zip" |
64 |
| - DestinationFolder="$(MSBuildProjectDirectory)/../../repository-snapshots" |
65 |
| - Condition="!Exists('$(MSBuildProjectDirectory)/../../repository-snapshots/no-tag-repository')" |
66 |
| - OverwriteReadOnlyFiles="true" /> |
67 |
| - </Target> |
68 |
| - |
69 |
| -</Project> |
| 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 | + <Import Project="..\WarningConfiguration.targets" /> |
| 11 | + |
| 12 | + <ItemGroup> |
| 13 | + <PackageReference Include="H.Generators.Tests.Extensions" Version="1.24.1" /> |
| 14 | + <PackageReference Include="Microsoft.Bcl.TimeProvider" Version="8.0.1" /> |
| 15 | + <PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.11.0" PrivateAssets="all" /> |
| 16 | + <PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.12.0" PrivateAssets="all" /> |
| 17 | + <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" /> |
| 18 | + <PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" /> |
| 19 | + <PackageReference Include="Verify.XUnit" Version="28.9.0" /> |
| 20 | + <PackageReference Include="Verify.SourceGenerators" Version="2.5.0" /> |
| 21 | + <PackageReference Include="xunit" Version="2.9.3" /> |
| 22 | + <PackageReference Include="xunit.runner.visualstudio" Version="3.0.1"> |
| 23 | + <PrivateAssets>all</PrivateAssets> |
| 24 | + <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> |
| 25 | + </PackageReference> |
| 26 | + </ItemGroup> |
| 27 | + |
| 28 | + <ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' "> |
| 29 | + <PackageReference Include="System.Text.Json" Version="8.0.5" /> |
| 30 | + <PackageReference Include="Microsoft.Extensions.TimeProvider.Testing" Version="8.10.0" /> |
| 31 | + </ItemGroup> |
| 32 | + |
| 33 | + <ItemGroup Condition=" '$(TargetFramework)' == 'net9.0' "> |
| 34 | + <PackageReference Include="System.Text.Json" Version="9.0.1" /> |
| 35 | + <PackageReference Include="Microsoft.Extensions.TimeProvider.Testing" Version="9.1.0" /> |
| 36 | + </ItemGroup> |
| 37 | + |
| 38 | + <ItemGroup> |
| 39 | + <ProjectReference Include="..\GitReader.SourceGenerator\GitReader.SourceGenerator.csproj" /> |
| 40 | + </ItemGroup> |
| 41 | + |
| 42 | + <ItemGroup> |
| 43 | + <None Update="GitReaderSnapshotTests.*.g.verified.cs"> |
| 44 | + <DependentUpon>GitReaderSnapshotTests.cs</DependentUpon> |
| 45 | + </None> |
| 46 | + </ItemGroup> |
| 47 | + |
| 48 | + <Target Name="ExtractSnapshots" BeforeTargets="Restore;_GenerateRestoreProjectSpec"> |
| 49 | + <Message Importance="High" Text="Extracting $(MSBuildProjectDirectory)/../../v-tag-repository.zip to the $(MSBuildProjectDirectory)/../../repository-snapshots" /> |
| 50 | + <Message Importance="High" Text="Extracting $(MSBuildProjectDirectory)/../../tag-repository.zip to the $(MSBuildProjectDirectory)/../../repository-snapshots" /> |
| 51 | + <Message Importance="High" Text="Extracting $(MSBuildProjectDirectory)/../../no-tag-repository.zip to the $(MSBuildProjectDirectory)/../../repository-snapshots" /> |
| 52 | + |
| 53 | + <Unzip SourceFiles="$(MSBuildProjectDirectory)/../../repository-snapshots/v-tag-repository.zip" |
| 54 | + DestinationFolder="$(MSBuildProjectDirectory)/../../repository-snapshots" |
| 55 | + Condition="!Exists('$(MSBuildProjectDirectory)/../../repository-snapshots/v-tag-repository')" |
| 56 | + OverwriteReadOnlyFiles="true" /> |
| 57 | + |
| 58 | + <Unzip SourceFiles="$(MSBuildProjectDirectory)/../../repository-snapshots/tag-repository.zip" |
| 59 | + DestinationFolder="$(MSBuildProjectDirectory)/../../repository-snapshots" |
| 60 | + Condition="!Exists('$(MSBuildProjectDirectory)/../../repository-snapshots/tag-repository')" |
| 61 | + OverwriteReadOnlyFiles="true" /> |
| 62 | + |
| 63 | + <Unzip SourceFiles="$(MSBuildProjectDirectory)/../../repository-snapshots/no-tag-repository.zip" |
| 64 | + DestinationFolder="$(MSBuildProjectDirectory)/../../repository-snapshots" |
| 65 | + Condition="!Exists('$(MSBuildProjectDirectory)/../../repository-snapshots/no-tag-repository')" |
| 66 | + OverwriteReadOnlyFiles="true" /> |
| 67 | + </Target> |
| 68 | + |
| 69 | +</Project> |
0 commit comments