From 366767774c809482fad112f87f51e14738c0778d Mon Sep 17 00:00:00 2001 From: Jerome Haltom Date: Sun, 20 Nov 2022 12:04:53 -0600 Subject: [PATCH] Include self. Condition to hide Transform. --- Directory.Build.targets | 560 +----------------- src/IKVM.Core.MSBuild/Class1.cs | 9 - .../IKVM.Core.MSBuild.csproj | 3 +- .../netstandard2.0/Transform.targets | 2 +- src/dist-nuget/dist-nuget.csproj | 2 +- 5 files changed, 5 insertions(+), 571 deletions(-) delete mode 100644 src/IKVM.Core.MSBuild/Class1.cs diff --git a/Directory.Build.targets b/Directory.Build.targets index 95b6ca4..583be33 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -1,563 +1,5 @@ - - <_GlobalPropertiesToRemoveFromProjectReferences>$(_GlobalPropertiesToRemoveFromProjectReferences);_GlobalPropertiesToRemoveFromProjectReferences;PublishDir;PackageOutputPath; - - - - - PreserveNewest - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - %(ProjectReference.GlobalPropertiesToRemove);$(_GlobalPropertiesToRemoveFromProjectReferences) - - - - - - - - <_PublishDir>$([System.IO.Path]::GetFullPath('$(PublishDir)')) - - - - - - - - - <___LibProjectReference Include="@(LibProjectReference)"> - <_SetPlatform>%(SetPlatform) - - - - true - true - false - - - - - - - <_LibProjectReferenceWithConfiguration Include="@(__LibProjectReferenceWithConfiguration)"> - %(_SetPlatform) - - - - - - - <__LibProjectReference Include="@(_LibProjectReferenceWithConfiguration)"> - $([System.IO.Path]::GetFileNameWithoutExtension('%(Identity)')) - $([MSBuild]::EnsureTrailingSlash('%(_LibProjectReferenceWithConfiguration.LibTargetPath)')) - $([MSBuild]::EnsureTrailingSlash('%(_LibProjectReferenceWithConfiguration.LibPackagePath)')) - - - - - - - - - - <_LibProjectReferencesToTarget Include="@(_LibProjectReference)"> - %(_LibProjectReference.SetConfiguration);%(_LibProjectReference.SetPlatform) - - - - - - - - <_LibProjectReferenceTargetOutput Include="@(_ResolvedLibProjectReferenceTargetOutput)"> - %(_ResolvedLibProjectReferenceTargetOutput.ProjectName) - %(_ResolvedLibProjectReferenceTargetOutput.LibTargetPath) - %(_ResolvedLibProjectReferenceTargetOutput.LibPackagePath) - %(_ResolvedLibProjectReferenceTargetOutput.Pack) - - <_LibProjectReferenceItems Include="@(_LibProjectReferenceTargetOutput)"> - %(RecursiveDir)%(Filename)%(Extension) - - - - - - - - PreserveNewest - $([MSBuild]::MakeRelative('.', '%(_LibProjectReferenceItems.LibTargetPath)%(_LibProjectReferenceItems.TargetPath)')) - false - - - - - - - AssignLibProjectConfiguration; - GetLibProjectReferences; - GetLibProjectReferenceItems; - GetLibProjectReferenceCopyToOutputDirectoryItems; - $(GetCopyToOutputDirectoryItemsDependsOn); - - - - - $(TargetsForTfmSpecificContentInPackage);GetLibProjectReferenceTfmSpecificContent - - - - - - contentFiles\any\$(TargetFramework)\%(_LibProjectReferenceItems.LibTargetPath) - contentFiles\any\$(TargetFramework)\%(_LibProjectReferenceItems.LibPackagePath) - - - - - - - <_PackageFiles Include="@(_LibProjectReferenceItems)" Condition=" '%(_LibProjectReferenceItems.LibPackagePath)' != '' And '%(_LibProjectReferenceItems.Pack)' != 'false' "> - %(_LibProjectReferenceItems.LibPackagePath) - - - - - - - AssignLibProjectConfiguration; - GetLibProjectReferences; - GetLibProjectReferenceItems; - GetLibProjectReferencePackageItems; - $(GetLibProjectReferenceItemsBeforePackageFilesDependsOn); - - - - - - - - - - - - true - true - false - - - - - - - - - - <__PublishProjectReference Include="@(_PublishProjectReferenceWithConfiguration)"> - $([System.IO.Path]::GetFileNameWithoutExtension('%(Identity)')) - $([MSBuild]::EnsureTrailingSlash('%(_PublishProjectReferenceWithConfiguration.ProjectTargetPath)')) - $([MSBuild]::EnsureTrailingSlash('%(_PublishProjectReferenceWithConfiguration.ProjectPackagePath)')) - - - - - - - - - - <_PublishProjectReferencesToBuildTarget Include="@(_PublishProjectReference)"> - %(_PublishProjectReference.SetConfiguration);%(_PublishProjectReference.SetPlatform);%(_PublishProjectReference.SetTargetFramework) - - <_PublishProjectReferencesToPublishTarget Include="@(_PublishProjectReference)"> - %(_PublishProjectReference.SetConfiguration);%(_PublishProjectReference.SetPlatform);%(_PublishProjectReference.SetTargetFramework);%(_PublishProjectReference.SetRuntimeIdentifier) - - - - - - - - <_PublishProjectReferenceInputItems Include="%(_ResolvedPublishProjectReferencePublishDir.Identity)\**\*"> - %(_ResolvedPublishProjectReferencePublishDir.ProjectName) - %(_ResolvedPublishProjectReferencePublishDir.ProjectTargetPath) - %(_ResolvedPublishProjectReferencePublishDir.ProjectPackagePath) - %(_ResolvedPublishProjectReferencePublishDir.Pack) - - <_PublishProjectReferenceItems Include="@(_PublishProjectReferenceInputItems)"> - %(RecursiveDir)%(Filename)%(Extension) - - - - - - - - PreserveNewest - $([MSBuild]::MakeRelative('.', '%(_PublishProjectReferenceItems.ProjectTargetPath)%(_PublishProjectReferenceItems.TargetPath)')) - false - - - - - - - AssignPublishProjectConfiguration; - GetPublishProjectReferences; - GetPublishProjectReferenceItems; - GetPublishProjectReferenceCopyToOutputDirectoryItems; - $(GetCopyToOutputDirectoryItemsDependsOn); - - - - - $(TargetsForTfmSpecificContentInPackage);GetPublishProjectReferenceTfmSpecificContent - - - - - - contentFiles\any\$(TargetFramework)\%(_PublishProjectReferenceItems.ProjectTargetPath) - contentFiles\any\$(TargetFramework)\%(_PublishProjectReferenceItems.ProjectPackagePath) - - - - - - - <_PackageFiles Include="@(_PublishProjectReferenceItems)" Condition=" '%(_PublishProjectReferenceItems.ProjectPackagePath)' != '' And '%(_PublishProjectReferenceItems.Pack)' != 'false' "> - %(_PublishProjectReferenceItems.ProjectPackagePath) - - - - - - - AssignPublishProjectConfiguration; - GetPublishProjectReferences; - GetPublishProjectReferenceItems; - GetPublishProjectReferencePackageItems; - $(GetPublishProjectReferenceItemsBeforePackageFilesDependsOn); - - - - - - - - - - - - true - true - false - - - - - - - - - - <__IncludeProjectReference Include="@(_IncludeProjectReferenceWithConfiguration)"> - $([System.IO.Path]::GetFileNameWithoutExtension('%(Identity)')) - $([MSBuild]::EnsureTrailingSlash('%(_IncludeProjectReferenceWithConfiguration.IncludeTargetPath)')) - $([MSBuild]::EnsureTrailingSlash('%(_IncludeProjectReferenceWithConfiguration.IncludePackagePath)')) - - - - - - - - - - <_IncludeProjectReferencesToTarget Include="@(_IncludeProjectReference)"> - %(_IncludeProjectReference.SetConfiguration);%(_IncludeProjectReference.SetPlatform);%(_IncludeProjectReference.SetTargetFramework) - - - - - - - - <_IncludeProjectReferenceItemsInput Include="@(_ResolvedIncludeProjectReferenceItems)"> - %(_ResolvedIncludeProjectReferenceItems.ProjectName) - %(_ResolvedIncludeProjectReferenceItems.IncludeTargetPath) - %(_ResolvedIncludeProjectReferenceItems.IncludePackagePath) - %(_ResolvedIncludeProjectReferenceItems.Pack) - - <_IncludeProjectReferenceItems Include="@(_IncludeProjectReferenceItemsInput)"> - %(RecursiveDir)%(Filename)%(Extension) - - - - - - - - PreserveNewest - $([MSBuild]::MakeRelative('.', '%(_IncludeProjectReferenceItems.IncludeTargetPath)%(_IncludeProjectReferenceItems.TargetPath)')) - false - - - - - - - AssignIncludeProjectConfiguration; - GetIncludeProjectReferences; - GetIncludeProjectReferenceItems; - GetIncludeProjectReferenceCopyToOutputDirectoryItems; - $(GetCopyToOutputDirectoryItemsDependsOn); - - - - - $(TargetsForTfmSpecificContentInPackage);GetIncludeProjectReferenceTfmSpecificContent - - - - - - contentFiles\any\$(TargetFramework)\%(_IncludeProjectReferenceItems.IncludeTargetPath) - contentFiles\any\$(TargetFramework)\%(_IncludeProjectReferenceItems.IncludePackagePath) - - - - - - - <_PackageFiles Include="@(_IncludeProjectReferenceItems)" Condition=" '%(_IncludeProjectReferenceItems.IncludePackagePath)' != '' And '%(_IncludeProjectReferenceItems.Pack)' != 'false' "> - %(_IncludeProjectReferenceItems.IncludePackagePath) - - - - - - - AssignIncludeProjectConfiguration; - GetIncludeProjectReferences; - GetIncludeProjectReferenceItems; - GetIncludeProjectReferencePackageItems; - $(GetIncludeProjectReferenceItemsBeforePackageFilesDependsOn); - - - - - - - - - - - - - - - - true - true - false - - - - - - - - - - <__PackageProjectReference Include="@(_PackageProjectReferenceWithConfiguration)"> - $([System.IO.Path]::GetFileNameWithoutExtension('%(Identity)')) - $([MSBuild]::EnsureTrailingSlash('%(_PackageProjectReferenceWithConfiguration.PackageTargetPath)')) - $([MSBuild]::EnsureTrailingSlash('%(_PackageProjectReferenceWithConfiguration.PackagePackagePath)')) - - - - - - - - - - <_PackageProjectReferencesToTarget Include="@(_PackageProjectReference)"> - %(_PackageProjectReference.SetConfiguration);%(_PackageProjectReference.SetPlatform) - - - - - - - - <_PackageProjectReferenceItemsInput Include="%(_ResolvedPackageOutputPath.Identity)\*.nupkg;%(_ResolvedPackageOutputPath.Identity)\*.snupkg"> - %(_ResolvedPackageOutputPath.ProjectName) - %(_ResolvedPackageOutputPath.PackageTargetPath) - %(_ResolvedPackageOutputPath.PackagePackagePath) - %(_ResolvedPackageOutputPath.Pack) - - <_PackageProjectReferenceItems Include="@(_PackageProjectReferenceItemsInput)"> - %(RecursiveDir)%(Filename)%(Extension) - - - - - - - - PreserveNewest - $([MSBuild]::MakeRelative('.', '%(_PackageProjectReferenceItems.PackageTargetPath)%(_PackageProjectReferenceItems.TargetPath)')) - false - - - - - - - AssignPackageProjectConfiguration; - GetPackageProjectReferences; - GetPackageProjectReferenceItems; - GetPackageProjectReferenceCopyToOutputDirectoryItems; - $(GetCopyToOutputDirectoryItemsDependsOn); - - - - - $(TargetsForTfmSpecificContentInPackage);GetPackageProjectReferenceTfmSpecificContent - - - - - - contentFiles\any\$(TargetFramework)\%(_PackageProjectReferenceItems.PackageTargetPath) - contentFiles\any\$(TargetFramework)\%(_PackageProjectReferenceItems.PackagePackagePath) - - - - - - - <_PackageFiles Include="@(_PackageProjectReferenceItems)" Condition=" '%(_PackageProjectReferenceItems.PackagePackagePath)' != '' And '%(_PackageProjectReferenceItems.Pack)' != 'false' "> - %(_PackageProjectReferenceItems.PackagePackagePath) - - - - - - - AssignPackageProjectConfiguration; - GetPackageProjectReferences; - GetPackageProjectReferenceItems; - GetPackageProjectReferencePackageItems; - $(GetPackageProjectReferenceItemsBeforePackageFilesDependsOn); - - + diff --git a/src/IKVM.Core.MSBuild/Class1.cs b/src/IKVM.Core.MSBuild/Class1.cs deleted file mode 100644 index f51aac8..0000000 --- a/src/IKVM.Core.MSBuild/Class1.cs +++ /dev/null @@ -1,9 +0,0 @@ -using System; - -namespace IKVM.Core.MSBuild -{ - public class Class1 - { - - } -} diff --git a/src/IKVM.Core.MSBuild/IKVM.Core.MSBuild.csproj b/src/IKVM.Core.MSBuild/IKVM.Core.MSBuild.csproj index ba6f525..8b941d1 100644 --- a/src/IKVM.Core.MSBuild/IKVM.Core.MSBuild.csproj +++ b/src/IKVM.Core.MSBuild/IKVM.Core.MSBuild.csproj @@ -1,4 +1,4 @@ - + netstandard2.0 @@ -9,6 +9,7 @@ README.md MSBuild utilities for development of IKVM itself. false + true diff --git a/src/IKVM.Core.MSBuild/buildTransitive/netstandard2.0/Transform.targets b/src/IKVM.Core.MSBuild/buildTransitive/netstandard2.0/Transform.targets index 0e72b5b..1a5b0b7 100644 --- a/src/IKVM.Core.MSBuild/buildTransitive/netstandard2.0/Transform.targets +++ b/src/IKVM.Core.MSBuild/buildTransitive/netstandard2.0/Transform.targets @@ -38,7 +38,7 @@ - + diff --git a/src/dist-nuget/dist-nuget.csproj b/src/dist-nuget/dist-nuget.csproj index a5083ba..3a66652 100644 --- a/src/dist-nuget/dist-nuget.csproj +++ b/src/dist-nuget/dist-nuget.csproj @@ -1,4 +1,4 @@ - + netstandard2.0 false