-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathTests.csproj
More file actions
75 lines (66 loc) · 3.77 KB
/
Tests.csproj
File metadata and controls
75 lines (66 loc) · 3.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
<NoWarn>CS8981;$(NoWarn)</NoWarn>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.0" />
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="8.1.2" PrivateAssets="all" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="ThisAssembly.Resources" Version="1.4.3" PrivateAssets="all" />
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2" />
<PackageReference Include="Humanizer.Core" Version="2.14.1" />
<PackageReference Include="Humanizer.Core.es" Version="2.14.1" />
<PackageReference Include="ThisAssembly.Constants" Version="1.4.3" />
</ItemGroup>
<ItemGroup>
<!-- This project reference allows debugging the source generator/analyzer project -->
<ProjectReference Include="..\Analyzer\Analyzer.csproj" Aliases="Analyzer" />
</ItemGroup>
<ItemGroup>
<None Update="keys/*.*" CopyToOutputDirectory="PreserveNewest" />
<EmbeddedResource Include="keys/kzu.key.jwk" Kind="Text" />
<EmbeddedResource Include="keys/kzu.pub.jwk" Kind="Text" />
<Constant Include="PrivateKey" Value="$([System.IO.File]::ReadAllText('$(MSBuildThisFileDirectory)keys\kzu.key.jwk'))" />
<Constant Include="PublicKey" Value="$([System.IO.File]::ReadAllText('$(MSBuildThisFileDirectory)keys\kzu.pub.jwk'))" />
</ItemGroup>
<Target Name="AddBuiltAnalyzers" BeforeTargets="GenerateMSBuildEditorConfigFileShouldRun">
<!-- Waits until after building the referenced analyzer project when all binaries are in the output dir -->
<ItemGroup>
<Analyzer Include="..\Analyzer\bin\$(Configuration)\netstandard2.0\*.dll" Visible="false" />
<!-- Make sure we only annotate the primary analyzer file, as it would when the package is installed -->
<Analyzer Update="@(Analyzer -> WithMetadataValue('Filename', 'SponsorableLib.Analyzers'))" NuGetPackageId="SponsorableLib" />
</ItemGroup>
</Target>
<Target Name="Sample_GitConfig" Condition="'$(SourceControlInformationFeatureSupported)' == 'true'" DependsOnTargets="InitializeSourceControlInformation">
<!-- Follows recommendation from Microsoft.Common.CurrentVersion.targets on how to depend on SCC info. -->
<ItemGroup>
<GitRoot Include="@(SourceRoot -> WithMetadataValue('SourceControl', 'git'))" />
</ItemGroup>
<PropertyGroup>
<GitRoot>%(GitRoot.FullPath)</GitRoot>
</PropertyGroup>
<ItemGroup Condition="'$(GitRoot)' != ''">
<AdditionalFiles Include="$([System.IO.Path]::GetFullPath($(GitRoot).git/config))" SourceItemType="GitConfig" />
<AdditionalFiles Include="$([System.IO.Path]::GetFullPath($(UserProfileHome)/.gitconfig))" SourceItemType="GitConfig" />
</ItemGroup>
</Target>
<!-- Simulates importing SponsorableLib.targets -->
<Import Project="..\SponsorLink\buildTransitive\Devlooped.Sponsors.targets" />
<ItemGroup>
<!-- Brings in the analyzer file to report installation time -->
<FundingPackageId Include="SponsorableLib" />
</ItemGroup>
<!-- Force immediate reporting of status, no install-time grace period -->
<PropertyGroup>
<SponsorLinkNoInstallGrace>true</SponsorLinkNoInstallGrace>
</PropertyGroup>
<ItemGroup>
<CompilerVisibleProperty Include="SponsorLinkNoInstallGrace" />
<CompilerVisibleProperty Include="MSBuildProjectFullPath" />
</ItemGroup>
</Project>