Skip to content

Commit

Permalink
UPDATED: Git-tr transformationGenerator />" itemsVersions.props".
Browse files Browse the repository at this point in the history
- Updated the transformation of "<Usings />"TypeInfo.props".
- Updated the import of various props files in "Directory.Build.props".

UPDATED: Transformed "<Usings />" into appropriate "<PackageReference />" items in "Directory.Build.props"

- Updated the transformation of "<SourceGenerator />" items into "<PackageReference />" items with appropriate includes/excludes in "CustomBeforeCentralpackageVersions.props"
- Updated the import of various props files in "ImportProjectName.props" and "ImportProjectName.targets" to check if the files exist before importing them
- Updated the transformation of "<SourceCode />" items into "<PackageReference />" items with appropriate includes/excludes in "ItemDefinitionGroups.props"
- Updated the transformation of "<Usings />" items into "<PackageReference />" items with appropriate includes/excludes in "ItemDefinitionGroups.props"
- Updated the metadata for certain prop items in "ProjectTypeInfo.props"
- Updated the import of various props files in "Directory.Build.props" to check if the files exist before importing them
  • Loading branch information
dgmjr committed Nov 5, 2023
1 parent 4c059f2 commit 96b2b57
Show file tree
Hide file tree
Showing 6 changed files with 77 additions and 77 deletions.
18 changes: 9 additions & 9 deletions src/Build/Custom/CustomBeforeCentralpackageVersions.props
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@
-->

<Project>
<!-- Transforms <SourceGeneratorPackageReference /> items into <PackageReference /> items with appropriate includes/excludes -->
<!-- Transforms <SourceGenerator /> items into <PackageReference /> items with appropriate includes/excludes -->
<ItemGroup>
<PackageReference Include="@(SourceGeneratorPackageReference)">
<PackageReference Include="@(SourceGenerator)">
<GeneratePathProperty>true</GeneratePathProperty>
<CopyLocal>true</CopyLocal>
<ExcludeAssets>Native;BuildTransitive;BuildMultitargeting;ContentFiles;Compile;Runtime</ExcludeAssets>
<IncludeAssets>Analyzers;Build</IncludeAssets>
<Pack>true</Pack>
<PrivateAssets>All</PrivateAssets>
</PackageReference>
<SourceGeneratorPackageReference Remove="@(SourceGeneratorPackageReference)" />
<SourceGenerator Remove="@(SourceGenerator)" />
</ItemGroup>
<!-- Transforms <SourceGeneratorProjectReference /> items into <ProjectReference /> items with appropriate properties -->
<ItemGroup>
Expand All @@ -37,25 +37,25 @@
<Targets>Restore;Build;Pack</Targets>
</ProjectReference>
</ItemGroup>
<!-- Transforms <SourceCodePackageReference /> items into <PackageReference /> items with appropriate includes/excludes -->
<!-- Transforms <SourceCode /> items into <PackageReference /> items with appropriate includes/excludes -->
<ItemGroup>
<PackageReference Include="@(SourceCodePackageReference)">
<PackageReference Include="@(SourceCode)">
<CopyLocal>true</CopyLocal>
<ExcludeAssets>Analyzers;Runtime;Native</ExcludeAssets>
<GeneratePathProperty>true</GeneratePathProperty>
<IncludeAssets>ContentFiles;Build;BuildTransitive;BuildMultitargeting</IncludeAssets>
<Pack>true</Pack>
<PrivateAssets>All</PrivateAssets>
</PackageReference>
<SourceCodePackageReference Remove="@(SourceCodePackageReference)" />
<SourceCode Remove="@(SourceCode)" />
</ItemGroup>
<!-- Transforms <UsingsPackageReference /> items into <PackageReference /> items with appropriate includes/excludes -->
<!-- Transforms <Usings /> items into <PackageReference /> items with appropriate includes/excludes -->
<ItemGroup>
<PackageReference Include="@(UsingsPackageReference)">
<PackageReference Include="@(Usings)">
<ExcludeAssets>ContentFiles;Native;Analyzers</ExcludeAssets>
<IncludeAssets>Build;BuildTransitive;BuildMultitargeting;Runtime;Compile</IncludeAssets>
<PrivateAssets>None</PrivateAssets>
</PackageReference>
<UsingsPackageReference Remove="@(UsingsPackageReference)" />
<Usings Remove="@(Usings)" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion src/Build/ImportProjectName.props
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
<PropertyGroup>
<ProjectReferenceImportProps>@(ProjectReference-%3e'%(RootDir)%(Directory)%(Filename).props')</ProjectReferenceImportProps>
</PropertyGroup>
<Import Project="$(ProjectReferenceImportProps)" Condition="Exists($(ProjectReferenceImportProps))" />
<Import Project="$(ProjectReferenceImportProps)" Condition="Exists('$(ProjectReferenceImportProps)')" />
</Project>
2 changes: 1 addition & 1 deletion src/Build/ImportProjectName.targets
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
<PropertyGroup>
<ProjectReferenceImportTargets>@(ProjectReference-%3e'%(RootDir)%(Directory)%(Filename).targets')</ProjectReferenceImportTargets>
</PropertyGroup>
<Import Project="$(ProjectReferenceImportTargets)" Condition="Exists($(ProjectReferenceImportTargets))" />
<Import Project="$(ProjectReferenceImportTargets)" Condition="Exists('$(ProjectReferenceImportTargets)')" />
</Project>
52 changes: 26 additions & 26 deletions src/Build/ItemDefinitionGroups.props
Original file line number Diff line number Diff line change
Expand Up @@ -15,45 +15,45 @@
<ItemDefinitionGroups_props>imported</ItemDefinitionGroups_props>
</PropertyGroup>
<ItemDefinitionGroup>
<Using Visible="false" />
<PackageTag Visible="false" />
<Author Visible="false">
<Email />
<Initials />
<GitHub />
</Author>
<Owner Visible="false">
<Email />
<Initials />
<GitHub />
</Owner>
<Using Visible="false" />
<PackageTag Visible="false" />
<Author Visible="false">
<Email />
<Initials />
<GitHub />
</Author>
<Owner Visible="false">
<Email />
<Initials />
<GitHub />
</Owner>
</ItemDefinitionGroup>
<ItemDefinitionGroup>
<PackageReference>
<Pack>true</Pack>
<CopyLocal>true</CopyLocal>
<!-- Generate "PKG_Package_Id" properties, which point to the package's restored location on disk -->
<GeneratePathProperty>true</GeneratePathProperty>
<IncludeAssets>Compile; Runtime; Build; BuildMultitargeting; BuildTransitive; Native</IncludeAssets>
<ExcludeAssets>ContentFiles; Analyzers</ExcludeAssets>
</PackageReference>
<GeneratePathProperty>true</GeneratePathProperty>
<IncludeAssets>Compile; Runtime; Build; BuildMultitargeting; BuildTransitive; Native</IncludeAssets>
<ExcludeAssets>ContentFiles; Analyzers</ExcludeAssets>
</PackageReference>
</ItemDefinitionGroup>
<ItemDefinitionGroup>
<ProjectReference>
<Pack>true</Pack>
<CopyLocal>true</CopyLocal>
<!-- Generate "PKG_Package_Id" properties, which point to the package's restored location on disk -->
<GeneratePathProperty>true</GeneratePathProperty>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<CopyToPublishDirectory>Always</CopyToPublishDirectory>
<SetConfiguration>Configuration=$(Configuration)</SetConfiguration>
</ProjectReference>
<GeneratePathProperty>true</GeneratePathProperty>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<CopyToPublishDirectory>Always</CopyToPublishDirectory>
<SetConfiguration>Configuration=$(Configuration)</SetConfiguration>
</ProjectReference>
</ItemDefinitionGroup>
<ItemDefinitionGroup>
<SourceGeneratorPackageReference Visible="false" />
<SourceGenerator Visible="false" />
</ItemDefinitionGroup>
<ItemDefinitionGroup>
<SourceCodePackageReference>
<SourceCode>
<Pack>true</Pack>
<CopyLocal>true</CopyLocal>
<!-- Generate "PKG_Package_Id" properties, which point to the package's restored location on disk -->
Expand All @@ -64,12 +64,12 @@
</SourceCodePackageReference>
</ItemDefinitionGroup>
<ItemDefinitionGroup>
<UsingsPackageReference>
<Usings>
<Pack>true</Pack>
<CopyLocal>true</CopyLocal>
<GeneratePathProperty>true</GeneratePathProperty>
<GeneratePathProperty>true</GeneratePathProperty>
<IncludeAssets>Build; BuildMultitargeting; BuildTransitive;</IncludeAssets>
<ExcludeAssets>Compile; Runtime; Analyzers; Native; ContentFiles</ExcludeAssets>
</UsingsPackageReference>
</Usings>
</ItemDefinitionGroup>
</Project>
8 changes: 4 additions & 4 deletions src/Build/ProjectTypeInfo.props
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!--
ProjectTypeInfo.props
Created: 2022-10-24-08:10:51
Modified: 2022-10-29-02:49:05
Author: David G. Moore, Jr. <[email protected]>
Copyright © 2022-2023 David G. Moore, Jr., All Rights Reserved
License: MIT (https://opensource.org/licenses/MIT)
-->
Expand All @@ -18,6 +18,6 @@
<ItemGroup Condition="$(IsTestProject)">
<Using Include="Xunit" />
<Using Include="FluentAssertions" />
<UsingsReference Include="FluentAssertions.Usings" />
<Usings Include="FluentAssertions.Usings" />
</ItemGroup>
</Project>
72 changes: 36 additions & 36 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -11,40 +11,40 @@
-->

<Project>
<!-- <Import Project="./Build/TargetFraneworks.props" Condition="Exists('./Build/TargetFraneworks.props')" /> -->
<Import Project="./Build/AIsMultiTargeting.props" Condition="Exists('./Build/AIsMultiTargeting.props')" />
<Import Project="./Build/AAGitRoot.props" Condition="Exists('./Build/AAGitRoot.props')" />
<Import Project="./Build/ADefaultBuildConfiguration.props" Condition="Exists('./Build/ADefaultBuildConfiguration.props')" />
<Import Project="./Build/AssemblySigning.props" Condition="Exists('./Build/AssemblySigning.props')" />
<Import Project="./Build/Authors-Owners.props" Condition="Exists('./Build/Authors-Owners.props')" />
<Import Project="./Build/BuildConfigurations.props" Condition="Exists('./Build/BuildConfigurations.props')" />
<Import Project="./Build/BuildFromSource.props" Condition="Exists('./Build/BuildFromSource.props')" />
<Import Project="./Build/CentralPackages.props" Condition="Exists('./Build/CentralPackages.props')" />
<Import Project="./Build/CentralPackagesFile.props" Condition="Exists('./Build/CentralPackagesFile.props')" />
<Import Project="./Build/CentralPackageVersions.props" Condition="Exists('./Build/CentralPackageVersions.props')" />
<Import Project="./Build/CompilerVisibleProperties.props" Condition="Exists('./Build/CompilerVisibleProperties.props')" />
<Import Project="./Build/CopyLocalLockFileAssemblies.props" Condition="Exists('./Build/CopyLocalLockFileAssemblies.props')" />
<Import Project="./Build/CustomBeforeAndAfterNoTargets.props" Condition="Exists('./Build/CustomBeforeAndAfterNoTargets.props')" />
<Import Project="./Build/Deterministic.props" Condition="Exists('./Build/Deterministic.props')" />
<Import Project="./Build/EnsureLicense.props" Condition="Exists('./Build/EnsureLicense.props')" />
<Import Project="./Build/EmbeddedResourcesStringExtensions.props" Condition="Exists('./Build/EmbeddedResourcesStringExtensions.props')" />
<Import Project="./Build/EmitNuspec.props" Condition="Exists('./Build/EmitNuspec.props')" />
<Import Project="./Build/EnablePreviewFeatures.props" Condition="Exists('./Build/EnablePreviewFeatures.props')" />
<Import Project="./Build/MinVer.props" Condition="Exists('./Build/MinVer.props')" />
<Import Project="./Build/NuGetizer.props" Condition="Exists('./Build/NuGetizer.props')" />
<Import Project="./Build/NuGetOutputs.props" Condition="Exists('./Build/NuGetOutputs.props')" />
<Import Project="./Build/PackageIcon.props" Condition="Exists('./Build/PackageIcon.props')" />
<Import Project="./Build/PackageMetadata.props" Condition="Exists('./Build/PackageMetadata.props')" />
<Import Project="./Build/PackageProjectUrl.props" Condition="Exists('./Build/PackageProjectUrl.props')" />
<Import Project="./Build/PackageReadme.props" Condition="Exists('./Build/PackageReadme.props')" />
<Import Project="./Build/PackageTags.props" Condition="Exists('./Build/PackageTags.props')" />
<Import Project="./Build/PackageVersionOverride.props" Condition="Exists('./Build/PackageVersionOverride.props')" />
<Import Project="./Build/ProjectMetadata.props" Condition="Exists('./Build/ProjectMetadata.props')" />
<Import Project="./Build/ProjectTypeInfo.props" Condition="Exists('./Build/ProjectTypeInfo.props')" />
<Import Project="./Build/SlnGen.props" Condition="Exists('./Build/SlnGen.props')" />
<Import Project="./Build/SourceLinkPatch.props" Condition="Exists('./Build/SourceLinkPatch.props')" />
<Import Project="./Build/TargetFrameworks.props" Condition="Exists('./Build/TargetFrameworks.props')" />
<Import Project="./Build/Testing.props" Condition="Exists('./Build/Testing.props')" />
<Import Project="./Build/TestingLocal.props" Condition="Exists('./Build/TestingLocal.props')" />
<Import Project="./Build/UserSecrets.props" Condition="Exists('./Build/UserSecrets.props')" />
<!-- <Import Project="./Build/TargetFraneworks.props" /> -->
<Import Project="./Build/AIsMultiTargeting.props" />
<Import Project="./Build/AAGitRoot.props" />
<Import Project="./Build/ADefaultBuildConfiguration.props" />
<Import Project="./Build/AssemblySigning.props" />
<Import Project="./Build/Authors-Owners.props" />
<Import Project="./Build/BuildConfigurations.props" />
<Import Project="./Build/BuildFromSource.props" />
<Import Project="./Build/CentralPackages.props" />
<Import Project="./Build/CentralPackagesFile.props" />
<Import Project="./Build/CentralPackageVersions.props" />
<Import Project="./Build/CompilerVisibleProperties.props" />
<Import Project="./Build/CopyLocalLockFileAssemblies.props" />
<Import Project="./Build/CustomBeforeAndAfterNoTargets.props" />
<Import Project="./Build/Deterministic.props" />
<Import Project="./Build/EnsureLicense.props" />
<Import Project="./Build/EmbeddedResourcesStringExtensions.props" />
<Import Project="./Build/EmitNuspec.props" />
<Import Project="./Build/EnablePreviewFeatures.props" />
<Import Project="./Build/MinVer.props" />
<Import Project="./Build/NuGetizer.props" />
<Import Project="./Build/NuGetOutputs.props" />
<Import Project="./Build/PackageIcon.props" />
<Import Project="./Build/PackageMetadata.props" />
<Import Project="./Build/PackageProjectUrl.props" />
<Import Project="./Build/PackageReadme.props" />
<Import Project="./Build/PackageTags.props" />
<Import Project="./Build/PackageVersionOverride.props" />
<Import Project="./Build/ProjectMetadata.props" />
<Import Project="./Build/ProjectTypeInfo.props" />
<Import Project="./Build/SlnGen.props" />
<Import Project="./Build/SourceLinkPatch.props" />
<Import Project="./Build/TargetFrameworks.props" />
<Import Project="./Build/Testing.props" />
<Import Project="./Build/TestingLocal.props" />
<Import Project="./Build/UserSecrets.props" />
</Project>

0 comments on commit 96b2b57

Please sign in to comment.