Skip to content

Commit

Permalink
Added default targetframework for NoTargets projects
Browse files Browse the repository at this point in the history
  • Loading branch information
dgmjr committed Sep 30, 2023
1 parent 2fd1090 commit 4415059
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
8 changes: 5 additions & 3 deletions src/Build/TargetFrameworks.props
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
<!--
* TargetFrameworks.props
*
*
* Created: 2022-11-19-03:03:12
* Modified: 2022-11-19-03:03:12
*
*
* 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>
<TargetFramework Condition="'$(UsingMicrosoftNoTargetsSdk' =='true'">netstandard1.0</TargetFramework>

<NetStandardTargetFrameworks></NetStandardTargetFrameworks>
<NetStandard1TargetFrameworks>netstandard1.0;netstandard1.1;netstandard1.2;netstandard1.3;netstandard1.4;netstandard1.5;netstandard1.6</NetStandard1TargetFrameworks>
<NetStandard2TargetFrameworks>netstandard2.0;netstandard2.1</NetStandard2TargetFrameworks>
Expand Down
6 changes: 3 additions & 3 deletions src/DgmjrSdk.nuproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
<PropertyGroup>
<ProjectGuid>EB008C4C-9C3A-4498-A19D-34A42B6E2CE1</ProjectGuid>
<ProjectTypeGuid>FAE04EC0-301F-11D3-BF4B-00C04F79EFBC</ProjectTypeGuid>
<TargetFramework>netstandard1.0</TargetFramework>
</PropertyGroup>
<PropertyGroup>
<Title>The DGMJR-IO SDK</Title>
<Description>The DGMJR-IO SDK is a collection of `.props` and `.targets` files that are used to build and package the DGMJR projects.</Description>
<!-- <TargetFrameworks>netstandard1.0;netstandard2.0;netstandard2.1;netcoreapp3.1;net6.0;net7.0;net8.0</TargetFrameworks> -->
<TargetFramework>netstandard1.0</TargetFramework>
<PackageId>$(MSbuildProjectName)</PackageId>
<LangVersion>preview</LangVersion>
<PackageType>MSBuildSdk</PackageType>
Expand All @@ -40,8 +40,8 @@
<PackageFile Include="./Assets/*" PackagePath="Assets/%(Filename)%(Extension)" />
<PackageFile Include="./LICENSE.md" PackagePath="ContentFiles/%(Filename)%(Extension)" />
</ItemGroup>
<Target Name="PrepareGitConstants" />
<Target Name="GitInfo" />
<!-- <Target Name="PrepareGitConstants" />
<Target Name="GitInfo" /> -->
<ItemGroup>
<PackageTag Include="sdk" Visible="false" />
<PackageTag Include="build-defaults" Visible="false" />
Expand Down
6 changes: 2 additions & 4 deletions src/DgmjrSdk.sln
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
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
Expand All @@ -12,7 +12,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
..\..\..\..\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\GlobalCodeGenerators.pkgs = ..\..\..\..\Packages\Packages\GlobalCodeGenerators.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
Expand All @@ -36,6 +35,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
..\..\..\..\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
Expand All @@ -50,8 +50,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
..\..\..\..\Packages\Versions\PowerShell.props = ..\..\..\..\Packages\Versions\PowerShell.props
EndProjectSection
EndProject
Project("FF286327-C783-4F7A-AB73-9BCBAD0D4460") = "DgmjrSdk", "DgmjrSdk", "{EB008C4C-9C3A-4498-A19D-34A42B6E2CE1}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Local|Any CPU = Local|Any CPU
Expand Down
7 changes: 4 additions & 3 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!--
* Directory.Build.props
*
*
* Created: 2023-01-02-07:50:16
* Modified: 2023-01-02-07:50:16
*
*
* 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 Expand Up @@ -41,6 +41,7 @@
<Import Project="./Build/SlnGen.props" />
<Import Project="./Build/SourceCodeReference.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" />
Expand Down

0 comments on commit 4415059

Please sign in to comment.