Skip to content

Commit

Permalink
Update PackageMetadata.targets, PackageProjectName.props, PackageProj…
Browse files Browse the repository at this point in the history
…ectName.targets, PackageProjectUrl.targets, PackageReadme.props, and PackageReadme.targets

- Add <PackageMetadata_targets>Imported</PackageMetadata_targets> to PackageMetadata.targets
- Add <PackageProjectName_props>Imported</PackageProjectName_props> to PackageProjectName.props
- Add <PackageProjectName_targets>Imported</PackageProjectName_targets> to PackageProjectName.targets
- Add <PackageProjectName_targets>Imported</PackageProjectName_targets> to PackageProjectUrl.targets
- Update contents of PackageReadme.props
- Update contents of PackageReadme.targets

The changes include adding new properties and items, modifying existing properties, and updating the contents of certain files for PackageMetadata, PackageProjectName, PackageProjectUrl, PackageReadme props and targets.
  • Loading branch information
dgmjr committed Oct 12, 2023
1 parent 7aa824b commit b0a5790
Show file tree
Hide file tree
Showing 9 changed files with 81 additions and 127 deletions.
10 changes: 7 additions & 3 deletions src/Build/PackageMetadata.targets
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
<!--
* PackageMetadata.targets
*
*
* Created: 2022-10-21-11:40:42
* Modified: 2022-11-19-04:05:11
*
*
* Author: David G. Moore, Jr. <[email protected]>
*
*
* Copyright © 2022-2023 David G. Moore, Jr., All Rights Reserved
* License: MIT (https://opensource.org/licenses/MIT)
-->

<Project>
<PropertyGroup>
<PackageMetadata_targets>Imported</PackageMetadata_targets>
</PropertyGroup>

<Target Name="EnsureRepositoryUrl" AfterTargets="GetPackageMetadata">
<ItemGroup>
<PackageMetadata Update="$(PackageId)" RepositoryUrl="$(RepositoryUrl)" Condition="'%(PackageMetadata.RepositoryUrl)' == ''" />
Expand Down
19 changes: 9 additions & 10 deletions src/Build/PackageProjectName.props
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
<!--
* PackageBuildPropsFile.props
*
*
* Created: 2022-11-11-01:13:41
* Modified: 2022-11-12-02:09:27
*
*
* Author: David G. Moore, Jr. <[email protected]>
*
*
* Copyright © 2022-2023 David G. Moore, Jr., All Rights Reserved
* License: MIT (https://opensource.org/licenses/MIT)
-->

<Project>
<PropertyGroup><PackageProjectName_props>Imported</PackageProjectName_props></PropertyGroup>
<ItemGroup>
<PackageFile
Include="$(MSBuildProjectDirectory)/$(MSBuildProjectName).props"
PackagePath="build/$(MSBuildProjectName).props"
Condition="Exists('$(MSBuildProjectDirectory)/$(MSBuildProjectName).props')" />
</ItemGroup>
<PropertyGroup>
<PackageProjectName_props>Imported</PackageProjectName_props>
</PropertyGroup>
<ItemGroup>
<PackageFile Include="$(MSBuildProjectDirectory)/$(MSBuildProjectName).props" PackagePath="build/$(MSBuildProjectName).props" Condition="Exists('$(MSBuildProjectDirectory)/$(MSBuildProjectName).props')" />
</ItemGroup>
</Project>
19 changes: 9 additions & 10 deletions src/Build/PackageProjectName.targets
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
<!--
* PackageProjectName.targets
*
*
* Created: 2022-12-02-07:51:53
* Modified: 2022-12-02-07:53:09
*
*
* Author: David G. Moore, Jr. <[email protected]>
*
*
* Copyright © 2022-2023 David G. Moore, Jr., All Rights Reserved
* License: MIT (https://opensource.org/licenses/MIT)
-->

<Project>
<PropertyGroup><PackageProjectName_targets>Imported</PackageProjectName_targets></PropertyGroup>
<ItemGroup>
<PackageFile
Include="$(MSBuildProjectDirectory)/$(MSBuildProjectName).targets"
PackagePath="build/$(MSBuildProjectName).targets"
Condition="Exists('$(MSBuildProjectDirectory)/$(MSBuildProjectName).targets')" />
</ItemGroup>
<PropertyGroup>
<PackageProjectName_targets>Imported</PackageProjectName_targets>
</PropertyGroup>
<ItemGroup>
<PackageFile Include="$(MSBuildProjectDirectory)/$(MSBuildProjectName).targets" PackagePath="build/$(MSBuildProjectName).targets" Condition="Exists('$(MSBuildProjectDirectory)/$(MSBuildProjectName).targets')" />
</ItemGroup>
</Project>
6 changes: 3 additions & 3 deletions src/Build/PackageProjectUrl.targets
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!--
* PackageProjectUrl.targets
*
*
* Created: 2023-06-30-09:39:47
* Modified: 2023-06-30-09:42:25
*
*
* 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 Down
40 changes: 38 additions & 2 deletions src/Build/PackageReadme.props
Original file line number Diff line number Diff line change
@@ -1,3 +1,39 @@
<Project>

<Project Condition="'$(PackageReadme_props)' == ''">
<PropertyGroup>
<GeneratedPackageReadmeFileContents>
---;
title: $(Title);
lastmod: $([System.DateTimeOffset]::Now.ToString("yyyy-MM-ddTHH:mm:ss.ppppZ"));
date: $([System.DateTimeOffset]::Now.ToString("yyyy-MM-ddTHH:mm:ss.ppppZ"));
license: $(PackageLicenseExpression);
slug: $(MSBuildProjectName)-readme;
version: $(PackageVersion);
authors:; @(Author->' - %(Initials);');
description: $(MSBuildProjectName) Readme #TODO: write description for $(MSBuildProjectName) Readme;
keywords:;
- $(MSBuildProjectName);
@(PackageTag->' - %(Identity)');
type: readme
---;
;
# $(MSBuildProjectName) Readme;
%3c!-- TODO: Write the contents of the $(MSBuildProjectName) Readme file --%3e
;
## Package Description;
;
$(Description);
;
## Getting Started;
;
## Prerequisites;
;
## Installation;
;
## Usage;
;
## Contributing;
;
## Versioning;
</GeneratedPackageReadmeFileContents>
</PropertyGroup>
</Project>
39 changes: 1 addition & 38 deletions src/Build/PackageReadme.targets
Original file line number Diff line number Diff line change
Expand Up @@ -11,51 +11,14 @@
-->

<Project>
<Import Project="./PackageReadme.props" Condition="'$(PackageReadme_props)' == ''" />
<PropertyGroup>
<IntermediateOutputPath Condition="'$(IntermediateOutputPath)' == ''">obj/</IntermediateOutputPath>
<PackageReadmeFileHintPath>$(MSBuildProjectDirectory)/README.md</PackageReadmeFileHintPath>
<PackageReadmeFile>README.md</PackageReadmeFile>
<GeneratedPackageReadmeFileHintPath>$(MSBuildProjectDirectory)/$(PackageReadmeFile)</GeneratedPackageReadmeFileHintPath>
</PropertyGroup>
<Target Name="CheckReadmeExists" BeforeTargets="EnsurePackageReadme" Condition="'$(IsOuterBuild)' != 'false'">
<PropertyGroup>
<GeneratedPackageReadmeFileContents>
---;
title: $(Title);
lastmod: $([System.DateTimeOffset]::Now.ToString("yyyy-MM-ddTHH:mm:ss.ppppZ"));
date: $([System.DateTimeOffset]::Now.ToString("yyyy-MM-ddTHH:mm:ss.ppppZ"));
license: $(PackageLicenseExpression);
slug: $(MSBuildProjectName)-readme;
version: $(PackageVersion);
authors:; @(Author->' - %(Initials);');
description: $(MSBuildProjectName) Readme #TODO: write description for $(MSBuildProjectName) Readme;
keywords:;
- $(MSBuildProjectName);
@(PackageTag->' - %(Identity)');
type: readme
---;
;
# $(MSBuildProjectName) Readme;
%3c!-- TODO: Write the contents of the $(MSBuildProjectName) Readme file --%3e
;
## Package Description;
;
$(Description);
;
## Getting Started;
;
## Prerequisites;
;
## Installation;
;
## Usage;
;
## Contributing;
;
## Versioning;
</GeneratedPackageReadmeFileContents>
</PropertyGroup>

<Warning Condition="!Exists('$(PackageReadmeFileHintPath)')"
Code="READMENOTFOUND001"
File="$(MSBuildProjectDirectory)/README.md"
Expand Down
59 changes: 6 additions & 53 deletions src/DgmjrSdk.sln
Original file line number Diff line number Diff line change
@@ -1,63 +1,14 @@
Microsoft Visual Studio Solution File, Format Version 12.00
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{B283EBC2-E01F-412D-9339-FD56EF114549}"
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{B283EBC2-E01F-412D-9339-FD56EF114549}"
ProjectSection(SolutionItems) = preProject
..\..\..\..\Packages\Versions.props = ..\..\..\..\Packages\Versions.props
..\..\..\..\Packages\Versions.Local.json = ..\..\..\..\Packages\Versions.Local.json
Directory.Build.props = Directory.Build.props
Directory.Build.targets = Directory.Build.targets
..\..\..\..\global.json = ..\..\..\..\global.json
..\..\..\..\Packages\Versions.Local.props = ..\..\..\..\Packages\Versions.Local.props
..\..\..\..\Packages\Packages.pkgs = ..\..\..\..\Packages\Packages.pkgs
..\..\..\..\Packages\Packages\AnyOf.pkgs = ..\..\..\..\Packages\Packages\AnyOf.pkgs
..\..\..\..\Packages\Packages\APIVersioning.pkgs = ..\..\..\..\Packages\Packages\APIVersioning.pkgs
..\..\..\..\Packages\Packages\AutoMapper.pkgs = ..\..\..\..\Packages\Packages\AutoMapper.pkgs
..\..\..\..\Packages\Packages\Azure.pkgs = ..\..\..\..\Packages\Packages\Azure.pkgs
..\..\..\..\Packages\Packages\AzureFunctions.pkgs = ..\..\..\..\Packages\Packages\AzureFunctions.pkgs
..\..\..\..\Packages\Packages\DDD.pkgs = ..\..\..\..\Packages\Packages\DDD.pkgs
..\..\..\..\Packages\Packages\GlobalBuild.pkgs = ..\..\..\..\Packages\Packages\GlobalBuild.pkgs
..\..\..\..\Packages\Packages\Images.pkgs = ..\..\..\..\Packages\Packages\Images.pkgs
..\..\..\..\Packages\Packages\McMaster.CommandLineUtils.pkgs = ..\..\..\..\Packages\Packages\McMaster.CommandLineUtils.pkgs
..\..\..\..\Packages\Packages\MediatR.pkgs = ..\..\..\..\Packages\Packages\MediatR.pkgs
..\..\..\..\Packages\Packages\Microsoft.AspNetCore.pkgs = ..\..\..\..\Packages\Packages\Microsoft.AspNetCore.pkgs
..\..\..\..\Packages\Packages\Microsoft.EntityFrameworkCore.pkgs = ..\..\..\..\Packages\Packages\Microsoft.EntityFrameworkCore.pkgs
..\..\..\..\Packages\Packages\Microsoft.Extensions.pkgs = ..\..\..\..\Packages\Packages\Microsoft.Extensions.pkgs
..\..\..\..\Packages\Packages\Microsoft.Identity.pkgs = ..\..\..\..\Packages\Packages\Microsoft.Identity.pkgs
..\..\..\..\Packages\Packages\Microsoft.VisualStudio.Shell.Interop.pkgs = ..\..\..\..\Packages\Packages\Microsoft.VisualStudio.Shell.Interop.pkgs
..\..\..\..\Packages\Packages\Miscellany.pkgs = ..\..\..\..\Packages\Packages\Miscellany.pkgs
..\..\..\..\Packages\Packages\MSBuild.pkgs = ..\..\..\..\Packages\Packages\MSBuild.pkgs
..\..\..\..\Packages\Packages\MSBuildProjectCreator.pkgs = ..\..\..\..\Packages\Packages\MSBuildProjectCreator.pkgs
..\..\..\..\Packages\Packages\MSBuildSdks.pkgs = ..\..\..\..\Packages\Packages\MSBuildSdks.pkgs
..\..\..\..\Packages\Packages\Newtonsoft.Json.pkgs = ..\..\..\..\Packages\Packages\Newtonsoft.Json.pkgs
..\..\..\..\Packages\Packages\NuGet.pkgs = ..\..\..\..\Packages\Packages\NuGet.pkgs
..\..\..\..\Packages\Packages\Powershell.pkgs = ..\..\..\..\Packages\Packages\Powershell.pkgs
..\..\..\..\Packages\Packages\Roslyn.pkgs = ..\..\..\..\Packages\Packages\Roslyn.pkgs
..\..\..\..\Packages\Packages\Serilog.pkgs = ..\..\..\..\Packages\Packages\Serilog.pkgs
..\..\..\..\Packages\Packages\SlnGen.pkgs = ..\..\..\..\Packages\Packages\SlnGen.pkgs
..\..\..\..\Packages\Packages\Swashbuckle.pkgs = ..\..\..\..\Packages\Packages\Swashbuckle.pkgs
..\..\..\..\Packages\Packages\System.pkgs = ..\..\..\..\Packages\Packages\System.pkgs
..\..\..\..\Packages\Packages\Telegram.pkgs = ..\..\..\..\Packages\Packages\Telegram.pkgs
..\..\..\..\Packages\Packages\Testing.EfCore.pkgs = ..\..\..\..\Packages\Packages\Testing.EfCore.pkgs
..\..\..\..\Packages\Packages\Testing.pkgs = ..\..\..\..\Packages\Packages\Testing.pkgs
..\..\..\..\Packages\Packages\ThisAssembly.pkgs = ..\..\..\..\Packages\Packages\ThisAssembly.pkgs
..\..\..\..\Packages\Packages\Validation.pkgs = ..\..\..\..\Packages\Packages\Validation.pkgs
..\..\..\..\Packages\Packages\XmlDocMd.pkgs = ..\..\..\..\Packages\Packages\XmlDocMd.pkgs
..\..\..\..\Packages\Versions\AspNetCoreIdentity.props = ..\..\..\..\Packages\Versions\AspNetCoreIdentity.props
..\..\..\..\Packages\Versions\AutoMapper.props = ..\..\..\..\Packages\Versions\AutoMapper.props
..\..\..\..\Packages\Versions\CoreIntegratedLibs.props = ..\..\..\..\Packages\Versions\CoreIntegratedLibs.props
..\..\..\..\Packages\Versions\EFCore.props = ..\..\..\..\Packages\Versions\EFCore.props
..\..\..\..\Packages\Versions\JsonPatch.props = ..\..\..\..\Packages\Versions\JsonPatch.props
..\..\..\..\Packages\Versions\MediatR.props = ..\..\..\..\Packages\Versions\MediatR.props
..\..\..\..\Packages\Versions\Microsoft.Build.props = ..\..\..\..\Packages\Versions\Microsoft.Build.props
..\..\..\..\Packages\Versions\Microsoft.CodeAnalysis.props = ..\..\..\..\Packages\Versions\Microsoft.CodeAnalysis.props
..\..\..\..\Packages\Versions\Microsoft.Extensions.Logging.props = ..\..\..\..\Packages\Versions\Microsoft.Extensions.Logging.props
..\..\..\..\Packages\Versions\PowerShell.props = ..\..\..\..\Packages\Versions\PowerShell.props
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Local|Any CPU = Local|Any CPU
Debug|Any CPU = Debug|Any CPU
Testing|Any CPU = Testing|Any CPU
Staging|Any CPU = Staging|Any CPU
Production|Any CPU = Production|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
EndGlobalSection
Expand All @@ -67,4 +18,6 @@ Global
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {ED8647BC-278B-4150-9378-9D2924A1A1DD}
EndGlobalSection
Project("{8149a54e-4b9e-4f43-94f6-63c22dff457d}") = "DgmjrSdk", "DgmjrSdk.nuproj", "{EB008C4C-9C3A-4498-A19D-34A42B6E2CE1}"
EndProject
EndGlobal
6 changes: 5 additions & 1 deletion src/Sdk/Sdk.props
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@

<Project Condition="'$(DgmjrSdkProps)' == ''">
<PropertyGroup>
<IsUsingDgmjrSdk>true</IsUsingDgmjrSdk>
<UsingDgmjrSdk>true</UsingDgmjrSdk>
<DgmjrSdkProps>$(MSBuildThisFileDirectory)Sdk.props</DgmjrSdkProps>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFrameworks)' != '' and '$(TargetFramework)' == ''">
<IsCrossTargetingBuild>true</IsCrossTargetingBuild>
<IsMultiTargeting>true</IsMultiTargeting>
</PropertyGroup>
<Import Project="$(MSBuildThisFileDirectory)/../Build/*.props" />
</Project>
10 changes: 3 additions & 7 deletions src/Sdk/Sdk.targets
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!--
* Sdk.props
*
*
* Created: 2022-12-19-01:17:17
* Modified: 2022-12-19-01:17:19
*
*
* 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 @@ -14,9 +14,5 @@
<PropertyGroup>
<DgmjrSdkTargets>$(MSBuildThisFileDirectory)Sdk.targets</DgmjrSdkTargets>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFrameworks)' != '' and '$(TargetFramework)' == ''">
<IsCrossTargetingBuild>true</IsCrossTargetingBuild>
<IsMultiTargeting>true</IsMultiTargeting>
</PropertyGroup>
<Import Project="$(MSBuildThisFileDirectory)/../Build/*.targets" />
</Project>

0 comments on commit b0a5790

Please sign in to comment.