File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,8 +19,7 @@ $sqlClientSNILicenseFilePath = "$BuildSourcesDir/external_licenses/Microsoft.Dat
1919$sqlClientSNILicense = Get-Content - Path $sqlClientSNILicenseFilePath - Raw
2020
2121# Replace erroneous copyright, using [System.IO.File] for better performance than Get-Content and Set-Content
22- $content = [System.IO.File ]::ReadAllText($noticeFilePath ).Replace(" (c) Microsoft 2023`r`n " , " " )
23- $content = [System.IO.File ]::ReadAllText($noticeFilePath ).Replace(" (c) Microsoft 2024`r`n " , " " )
22+ $content = [System.IO.File ]::ReadAllText($noticeFilePath ) -replace " \(c\) Microsoft (2023|2024)`r`n " , " "
2423
2524# Prepare license content for writing to file.
2625$sqlClientSNIComponentName = " `r`n MICROSOFT.DATA.SQLCLIENT.SNI`r`n`r`n "
Original file line number Diff line number Diff line change 2020 <EmbedUntrackedSources >true</EmbedUntrackedSources >
2121 <PublishRepositoryUrl >true</PublishRepositoryUrl >
2222 <NoWarn >NU1603</NoWarn >
23+
24+ <!-- Run custom target during pack to add dependency files into the package. -->
25+ <TargetsForTfmSpecificContentInPackage >$(TargetsForTfmSpecificContentInPackage);IncludeInternalDependenciesInPackage</TargetsForTfmSpecificContentInPackage >
2326 </PropertyGroup >
2427
2528 <ItemGroup >
5457 </PropertyGroup >
5558
5659 <ItemGroup >
57- <ProjectReference Include =" ..\Auth\Azure.DataApiBuilder.Auth.csproj" />
58- <ProjectReference Include =" ..\Config\Azure.DataApiBuilder.Config.csproj" />
59- <ProjectReference Include =" ..\Service.GraphQLBuilder\Azure.DataApiBuilder.Service.GraphQLBuilder.csproj" />
60+ <ProjectReference Include =" ..\Auth\Azure.DataApiBuilder.Auth.csproj" >
61+ <PrivateAssets Condition =" '$(PrivatizeAssets)' == 'true'" >all</PrivateAssets >
62+ </ProjectReference >
63+ <ProjectReference Include =" ..\Config\Azure.DataApiBuilder.Config.csproj" >
64+ <PrivateAssets Condition =" '$(PrivatizeAssets)' == 'true'" >all</PrivateAssets >
65+ </ProjectReference >
66+ <ProjectReference Include =" ..\Service.GraphQLBuilder\Azure.DataApiBuilder.Service.GraphQLBuilder.csproj" >
67+ <PrivateAssets Condition =" '$(PrivatizeAssets)' == 'true'" >all</PrivateAssets >
68+ </ProjectReference >
6069 </ItemGroup >
6170
6271 <ItemGroup >
6675 <None Include =" ..\..\nuget_core\NOTICE.txt" Pack =" true" PackagePath =" \" Condition =" Exists('..\..\nuget_core\NOTICE.txt')" />
6776 </ItemGroup >
6877
78+ <Target Name =" IncludeInternalDependenciesInPackage" >
79+ <ItemGroup >
80+ <_InternalAssembly Include =" $(OutputPath)Azure.DataApiBuilder.Auth.dll" />
81+ <_InternalAssembly Include =" $(OutputPath)Azure.DataApiBuilder.Config.dll" />
82+ <_InternalAssembly Include =" $(OutputPath)Azure.DataApiBuilder.Service.GraphQLBuilder.dll" />
83+ <_InternalAssembly Include =" $(OutputPath)Azure.DataApiBuilder.Product.dll" />
84+
85+ <TfmSpecificPackageFile Include =" @(_InternalAssembly)" PackagePath =" lib/$(TargetFramework)" />
86+ </ItemGroup >
87+ </Target >
88+
6989</Project >
You can’t perform that action at this time.
0 commit comments