-
Notifications
You must be signed in to change notification settings - Fork 4.7k
/
regenerate-third-party-notices.proj
52 lines (43 loc) · 1.81 KB
/
regenerate-third-party-notices.proj
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
<Project Sdk="Microsoft.Build.NoTargets">
<UsingTask TaskName="RegenerateThirdPartyNotices" AssemblyFile="$(InstallerTasksAssemblyPath)" />
<Target Name="RegenerateThirdPartyNotices" AfterTargets="Build">
<PropertyGroup>
<TpnFile>$(InstallerProjectRoot)pkg\THIRD-PARTY-NOTICES.TXT</TpnFile>
</PropertyGroup>
<!--
Repo configuration. Upstreams, but also more: the TPN in dotnet/runtime serves many repos outside
its graph, because dotnet/runtime produces the installer that ends up placing the single TPN file
in the dotnet home directory.
-->
<ItemGroup>
<TpnRepo Include="dotnet/runtime" />
<TpnRepo Include="dotnet/aspnetcore" />
<TpnRepo Include="dotnet/installer" />
<TpnRepo Include="dotnet/roslyn-analyzers" />
<TpnRepo Include="dotnet/templating" />
<TpnRepo Include="dotnet/winforms" />
<TpnRepo Include="dotnet/wpf" />
<TpnRepo Include="dotnet/linker" />
<!--
Additional repos that should be included but don't have any third-party-notices files:
dotnet/efcore
dotnet/emsdk
dotnet/extensions
dotnet/icu
dotnet/sdk
dotnet/windowsdesktop
-->
<TpnRepo Condition="'%(TpnRepo.Branch)' == ''" Branch="main" />
<PotentialTpnPath Include="THIRD-PARTY-NOTICES.TXT" />
<PotentialTpnPath Include="THIRD-PARTY-NOTICES.txt" />
<PotentialTpnPath Include="THIRD-PARTY-NOTICES" />
<PotentialTpnPath Include="THIRDPARTYNOTICES.TXT" />
<PotentialTpnPath Include="THIRDPARTYNOTICES.txt" />
</ItemGroup>
<RegenerateThirdPartyNotices
TpnFile="$(TpnFile)"
PotentialTpnPaths="@(PotentialTpnPath)"
TpnRepos="@(TpnRepo)" />
<Message Text="$(MSBuildProjectName) -> $(TpnFile)" Importance="High" />
</Target>
</Project>