Skip to content

Commit

Permalink
redo DgmjrSdk
Browse files Browse the repository at this point in the history
  • Loading branch information
dgmjr committed Jun 29, 2024
1 parent 3af9f8e commit 5112bba
Show file tree
Hide file tree
Showing 16 changed files with 22 additions and 296 deletions.
6 changes: 3 additions & 3 deletions src/Common/DgmjrSdkDll.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<IsDgmjrSdk>$(MSBuildProjectName.StartsWith('DgmjrSdk'))</IsDgmjrSdk>
<DgmjrSdkDll Condition="$(MSBuildProjectName.StartsWith('DgmjrSdk'))">$(MSBuildThisFileDirectory)../bin/DgmjrSdk.dll</DgmjrSdkDll>
<DgmjrSdkDll Condition="!$(MSBuildProjectName.StartsWith('DgmjrSdk'))">$(MSBuildThisFileDirectory)../lib/DgmjrSdk.dll</DgmjrSdkDll>
<IsDgmjrSdk>($(MSBuildProjectName.StartsWith('DgmjrSdk')) Or $(MSBuildProjectName.StartsWith('Dgmjr.Sdk')))</IsDgmjrSdk>
<DgmjrSdkDll Condition="($(MSBuildProjectName.StartsWith('DgmjrSdk')) Or $(MSBuildProjectName.StartsWith('Dgmjr.Sdk')))">$(MSBuildThisFileDirectory)../bin/DgmjrSdk.dll</DgmjrSdkDll>
<DgmjrSdkDll Condition="!($(MSBuildProjectName.StartsWith('DgmjrSdk')) Or $(MSBuildProjectName.StartsWith('Dgmjr.Sdk')))">$(MSBuildThisFileDirectory)../lib/DgmjrSdk.dll</DgmjrSdkDll>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion src/Common/EnsureLicense.props
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<PropertyGroup>
<EnsureLicense_props>included</EnsureLicense_props>
<DgmjrSdkDll>$(MSBuildThisFileDirectory)/../lib/netstandard2.0/DgmjrSdk.dll</DgmjrSdkDll>
<PackDependsOn Condition="!$(MSBuildProjectName.StartsWith('DgmjrSdk'))">
<PackDependsOn Condition="!($(MSBuildProjectName.StartsWith('DgmjrSdk')) Or $(MSBuildProjectName.StartsWith('Dgmjr.Sdk')))">
$(PackDependsOn);
EnsureLicenseFileExists
</PackDependsOn>
Expand Down
4 changes: 2 additions & 2 deletions src/Common/GlobalUsings.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<IsCompilingFromCode>@(Compile->Count()) &gt; 0</IsCompilingFromCode>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildThisFileDirectory)GlobalUsings.cs" Condition="!$(MSBuildProjectName.StartsWith('DgmjrSdk')) And '$(MSBuildProjectExtension)' == '.csproj'" />
<Compile Include="$(MSBuildThisFileDirectory)GlobalUsings.cs" Condition="!($(MSBuildProjectName.StartsWith('DgmjrSdk')) Or $(MSBuildProjectName.StartsWith('Dgmjr.Sdk'))) And '$(MSBuildProjectExtension)' == '.csproj'" />
</ItemGroup>
<ItemGroup Condition="!$(MSBuildProjectName.StartsWith('DgmjrSdk')) And '$(MSBuildProjectExtension)' == '.csproj' And @(Compile->Count()) &gt; 0">
<ItemGroup Condition="!($(MSBuildProjectName.StartsWith('DgmjrSdk')) Or $(MSBuildProjectName.StartsWith('Dgmjr.Sdk'))) And '$(MSBuildProjectExtension)' == '.csproj' And @(Compile->Count()) &gt; 0">
<!-- <Using Include="System.Text.Encoding" Static="true" /> -->
<Using Include="System.AppContext" Static="true" />
<Using Include="System.AppDomain" Static="true" />
Expand Down
6 changes: 6 additions & 0 deletions src/Common/ItemDefinitionGroups.props
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@
<GeneratePathProperty>true</GeneratePathProperty>
<IncludeAssets>Build; BuildMultitargeting; BuildTransitive;</IncludeAssets>
<ExcludeAssets>Compile; Runtime; Analyzers; Native; ContentFiles</ExcludeAssets>
<Visible>false</Visible>
</Usings>
</ItemDefinitionGroup>
<ItemDefinitionGroup>
<Using>
<Visible>false</Visible>
</Using>
</ItemDefinitionGroup>
</Project>
2 changes: 1 addition & 1 deletion src/Common/PackageReadme.props
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<PropertyGroup>
<PackageReadme_props>imported</PackageReadme_props>
<!-- <DgmjrSdkDll>$(MSBuildThisFileDirectory)/../lib/netstandard2.0/DgmjrSdk.dll</DgmjrSdkDll> -->
<PackDependsOn Condition="!$(IsDgmjrSdk)">
<PackDependsOn Condition="!($(MSBuildProjectName.StartsWith('DgmjrSdk')) Or $(MSBuildProjectName.StartsWith('Dgmjr.Sdk')))">
$(PackDependsOn);
EnsurePackageReadme;
</PackDependsOn>
Expand Down
98 changes: 0 additions & 98 deletions src/Dgmjr.NET.Sdk.csproj

This file was deleted.

100 changes: 0 additions & 100 deletions src/DgmjrSdk.Web.csproj

This file was deleted.

4 changes: 2 additions & 2 deletions src/Sdk/Common.props
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project>
<PropertyGroup>
<IsDgmjrSdk>$(MSBuildProjectName.StartsWith('DgmjrSdk'))</IsDgmjrSdk>
<IsDgmjrSdk>($(MSBuildProjectName.StartsWith('DgmjrSdk')) || $(MSBuildProjectName.StartsWith('Dgmjr.Sdk')))</IsDgmjrSdk>
<UsingDgmjrSdk>true</UsingDgmjrSdk>
<DgmjrSdkDll>$(MSBuildThisFileDirectory)../lib/DgmjrSdk.dll</DgmjrSdkDll>
<DgmjrSdkDll Condition="'$(MSBuildProjectName)'">$(MSBuildThisFileDirectory)../lib/DgmjrSdk.dll</DgmjrSdkDll>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFrameworks)' != '' and '$(TargetFramework)' == ''">
<IsCrossTargetingBuild>true</IsCrossTargetingBuild>
Expand Down
21 changes: 0 additions & 21 deletions src/Sdk/Sdk.Web.props

This file was deleted.

20 changes: 0 additions & 20 deletions src/Sdk/Sdk.Web.targets

This file was deleted.

21 changes: 0 additions & 21 deletions src/Sdk/Sdk.WebAssembly.props

This file was deleted.

20 changes: 0 additions & 20 deletions src/Sdk/Sdk.WebAssembly.targets

This file was deleted.

2 changes: 1 addition & 1 deletion src/Sdk/Sdk.props
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<PropertyGroup>
<DgmjrSdkProps>$(MSBuildThisFileDirectory)Sdk.props</DgmjrSdkProps>
<ImportMicrosoftNetSdk>!$(UsingMicrosoftNETSdk.Equals("true"))</ImportMicrosoftNetSdk>
<UsingDgmjrNetSdk>true</UsingDgmjrNetSdk>
<UsingDgmjrSdk>true</UsingDgmjrSdk>
</PropertyGroup>
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" Condition="$(ImportMicrosoftNetSdk)" />
<Import Project="$(MSBuildThisFileDirectory)Common.props" />
Expand Down
Loading

0 comments on commit 5112bba

Please sign in to comment.