/
dgrigorev
/
SkiaSharp
Обзор
Документация
Войти
/
dgrigorev
/
SkiaSharp
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
binding/NativeAssets.Build.targets
57 строк
3 KB
Matthew Leibowitz
Correctly package managed runtime-only files (#2741)
06 фев 2024, 00:31
Не верифицирован
06 фев 2024, 00:31
8396031
Код
Авторство
О чём код?
<Project> <PropertyGroup> <!-- There is nothing to sign if there is no build --> <SignAssembly>false</SignAssembly> <!-- Don't include build output in a package since NoTargets projects don't emit an assembly. --> <IncludeBuildOutput>false</IncludeBuildOutput> <!-- Disable symbol generation --> <DebugType>None</DebugType> <DebugSymbols>false</DebugSymbols> <!-- Don't generate docs --> <SkipMDocGenerateDocs>true</SkipMDocGenerateDocs> </PropertyGroup> <ItemGroup> <!-- legal --> <None Include="$(MSBuildThisFileDirectory)..\External-Dependency-Info.txt" PackagePath="THIRD-PARTY-NOTICES.txt" Pack="True" Visible="False" /> </ItemGroup> <Target Name="_IncludePlaceholders" AfterTargets="_IncludeAdditionalTfmSpecificPackageFilesPrepare"> <Touch Files="$(IntermediateOutputPath)_._" AlwaysCreate="True" /> <ItemGroup> <FileWrites Include="$(IntermediateOutputPath)_._" /> <TfmSpecificPackageFile Include="$(IntermediateOutputPath)_._" PackagePath="lib\$(NuGetShortFolderName)\_._" /> </ItemGroup> </Target> <PropertyGroup Condition="'$(IsWindowsNativeAssets)' == 'true'"> <IncludeBuildOutput>true</IncludeBuildOutput> <IncludeSymbols>true</IncludeSymbols> <BuildOutputTargetFolder>runtimes</BuildOutputTargetFolder> <ExcludeSymbolsFromPackage>false</ExcludeSymbolsFromPackage> </PropertyGroup> <ItemGroup Condition="'$(IsWindowsNativeAssets)' == 'true'"> <_NativeWindowsPackageFileToUse Include="@(NativeWindowsPackageFile->HasMetadata('Folder'))" /> <_NativeWindowsPackageFileWithNoFolder Include="@(NativeWindowsPackageFile)" /> <_NativeWindowsPackageFileWithNoFolder Remove="@(_NativeWindowsPackageFileToUse)" /> <_NativeWindowsPackageFileToUse Include="@(_NativeWindowsPackageFileWithNoFolder)" Folder="native" /> <None Include="@(_NativeWindowsPackageFileToUse)" Link="runtimes\%(RuntimeIdentifier)\%(Folder)\%(Filename)%(Extension)" /> </ItemGroup> <Target Name="_IncludeRuntimesPackageFiles" BeforeTargets="_GetPackageFiles" Condition="'$(IsWindowsNativeAssets)' == 'true'"> <ItemGroup> <_CompletedNativeWindowsPackageFile Include="@(_NativeWindowsPackageFileToUse)" TargetFramework="%(RuntimeIdentifier)" TargetPath="%(Folder)\%(Filename)%(Extension)" PackagePath="runtimes\%(RuntimeIdentifier)\%(Folder)\%(Filename)%(Extension)" /> <_BuildOutputInPackage Remove="@(_BuildOutputInPackage)" /> <_BuildOutputInPackage Include="@(_CompletedNativeWindowsPackageFile)" Condition="'%(Extension)' != '.pdb'" /> <_TargetPathsToSymbols Remove="@(_TargetPathsToSymbols)" /> <_TargetPathsToSymbols Include="@(_CompletedNativeWindowsPackageFile)" Condition="'%(Extension)' == '.pdb'" /> </ItemGroup> </Target> </Project>