Skip to content

Commit

Permalink
Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dgmjr committed Apr 17, 2024
1 parent b8faf79 commit 6adcc91
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 183 deletions.
2 changes: 1 addition & 1 deletion Test/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
-->

<Project>
<!-- <Import Project="Sdk.props" Sdk="DgmjrSdk" /> -->
<Import Project="Sdk.props" Sdk="DgmjrSdk" />
</Project>
2 changes: 1 addition & 1 deletion Test/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
-->

<Project>
<!-- <Import Project="Sdk.targets" Sdk="DgmjrSdk" /> -->
<Import Project="Sdk.targets" Sdk="DgmjrSdk" />
</Project>
1 change: 1 addition & 0 deletions src/Build/ACustomItemTypes.props
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@
<PrivateAssets>None</PrivateAssets>
</UsingsPackageReference>
</ItemDefinitionGroup>

</Project>
91 changes: 0 additions & 91 deletions src/Build/ACustomItemTypes.targets

This file was deleted.

95 changes: 8 additions & 87 deletions src/Targets/ACustomItemTypes.targets
Original file line number Diff line number Diff line change
@@ -1,91 +1,12 @@
<Project>
<!-- <Project InitialTargets="RestoreSourceGeneratorPackageReferences;RestoreSourceGeneratorProjectReferences;RestoreSourceCodePackageReferences;RestoreUsingsPackageReferences"> -->
<!-- <Target Name="RestoreSourceGeneratorPackageReferences" BeforeTargets="Restore" Inputs="%(SourceGeneratorPackageReference.Identity)" Outputs="@(PackageReference)">
<ItemGroup>
<PackageReference Include="%(SourceGeneratorPackageReference.Identity)">
<CopyLocal>true</CopyLocal>
<ExcludeAssets>Native;BuildTransitive;BuildMultitargeting;ContentFiles;Compile;Runtime</ExcludeAssets>
<GeneratePathProperty>true</GeneratePathProperty>
<IncludeAssets>Analyzers;Build</IncludeAssets>
<Pack>true</Pack>
<PrivateAssets>All</PrivateAssets>
</PackageReference>
</ItemGroup>
</Target>
<Target Name="RestoreSourceGeneratorProjectReferences" BeforeTargets="Restore" Inputs="%(SourceGeneratorProjectReference.Identity)" Outputs="@(ProjectReference)">
<ItemGroup>
<ProjectReference Include="%(SourceGeneratorProjectReference.Identity)">
<CopyLocal>true</CopyLocal>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<CopyToPublishDirectory>Always</CopyToPublishDirectory>
<GeneratePathProperty>true</GeneratePathProperty>
<OutputItemType>Analyzer</OutputItemType>
<Pack>true</Pack>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
<SetConfiguration>Configuration=$(Configuration)</SetConfiguration>
<Targets>Restore;Build;Pack</Targets>
</ProjectReference>
</ItemGroup>
</Target>
<Target Name="RestoreSourceCodePackageReferences" BeforeTargets="Restore" Inputs="%(SourceCodePackageReference.Identity)" Outputs="@(PackageReference)">
<ItemGroup>
<PackageReference Include="%(SourceCodePackageReference.Identity)">
<CopyLocal>true</CopyLocal>
<ExcludeAssets>Analyzers;Runtime;Native</ExcludeAssets>
<GeneratePathProperty>true</GeneratePathProperty>
<IncludeAssets>ContentFiles;Build;BuildTransitive;BuildMultitargeting</IncludeAssets>
<Pack>true</Pack>
<PrivateAssets>All</PrivateAssets>
</PackageReference>
</ItemGroup>
</Target>
<Target Name="RestoreUsingsPackageReferences" BeforeTargets="Restore" Inputs="%(UsingsPackageReference.Identity)" Outputs="@(PackageReference)">
<ItemGroup>
<PackageReference Include="%(UsingsPackageReference.Identity)">
<CopyLocal>true</CopyLocal>
<ExcludeAssets>ContentFiles;Native;Analyzers</ExcludeAssets>
<GeneratePathProperty>true</GeneratePathProperty>
<IncludeAssets>Build;BuildTransitive;BuildMultitargeting;Runtime;Compile</IncludeAssets>
<Pack>true</Pack>
<PrivateAssets>None</PrivateAssets>
</PackageReference>
</ItemGroup>
</Target> -->
<ItemGroup>
<PackageReference Include="@(SourceGeneratorPackageReference->'%(Identity)')">
<CopyLocal>true</CopyLocal>
<ExcludeAssets>Native;BuildTransitive;BuildMultitargeting;ContentFiles;Compile;Runtime</ExcludeAssets>
<GeneratePathProperty>true</GeneratePathProperty>
<IncludeAssets>Analyzers;Build</IncludeAssets>
<Pack>true</Pack>
<PrivateAssets>All</PrivateAssets>
</PackageReference>
<ProjectReference Include="@(SourceGeneratorProjectReference->'%(Identity)')">
<CopyLocal>true</CopyLocal>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<CopyToPublishDirectory>Always</CopyToPublishDirectory>
<GeneratePathProperty>true</GeneratePathProperty>
<OutputItemType>Analyzer</OutputItemType>
<Pack>true</Pack>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
<SetConfiguration>Configuration=$(Configuration)</SetConfiguration>
<Targets>Restore;Build;Pack</Targets>
</ProjectReference>
<PackageReference Include="@(SourceCodePackageReference->'%(Identity)')">
<CopyLocal>true</CopyLocal>
<ExcludeAssets>Analyzers;Runtime;Native</ExcludeAssets>
<GeneratePathProperty>true</GeneratePathProperty>
<IncludeAssets>ContentFiles;Build;BuildTransitive;BuildMultitargeting</IncludeAssets>
<Pack>true</Pack>
<PrivateAssets>All</PrivateAssets>
</PackageReference>
<PackageReference Include="@(UsingsPackageReference->'%(Identity)')">
<CopyLocal>true</CopyLocal>
<ExcludeAssets>ContentFiles;Native;Analyzers</ExcludeAssets>
<GeneratePathProperty>true</GeneratePathProperty>
<IncludeAssets>Build;BuildTransitive;BuildMultitargeting;Runtime;Compile</IncludeAssets>
<Pack>true</Pack>
<PrivateAssets>None</PrivateAssets>
</PackageReference>
<PackageReference Include="@(SourceGeneratorPackageReference)" CopyLocal="true" GeneratePathProperty="true" ExcludeAssets="Native;BuildTransitive;BuildMultitargeting;ContentFiles;Compile;Runtime" IncludeAssets="Analyzers;Build" Pack="true" PrivateAssets="All" />
<ProjectReference Include="@(SourceGeneratorProjectReference)" CopyToOutputDirectory="Always" CopyToPublishDirectory="Always" OutputItemType="Analyzer" ReferenceOutputAssembly="false" SetConfiguration="Configuration='$(Configuration)'" Targets="Restore;Build;Pack" CopyLocal="true" GeneratePathProperty="true" ExcludeAssets="Native;BuildTransitive;BuildMultitargeting;ContentFiles;Compile;Runtime" IncludeAssets="Analyzers;Build" Pack="true" PrivateAssets="All" />
<PackageReference Include="@(SourceCodePackageReference)" CopyLocal="true" GeneratePathProperty="true" ExcludeAssets="Analyzers;Runtime;Native" IncludeAssets="ContentFiles;Build;BuildTransitive;BuildMultitargeting" Pack="true" PrivateAssets="All" />
<PackageReference Include="@(UsingsPackageReference)" CopyLocal="true" GeneratePathProperty="true" ExcludeAssets="ContentFiles;Native;Analyzers" IncludeAssets="Build;BuildTransitive;BuildMultitargeting;Runtime;Compile" Pack="true" PrivateAssets="All" />
<!-- <SourceGeneratorPackageReference Remove="@(SourceGeneratorPackageReference)" />
<SourceGeneratorProjectReference Remove="@(SourceGeneratorProjectReference)" />
<SourceCodePackageReference Remove="@(SourceCodePackageReference)" />
<UsingsPackageReference Remove="@(UsingsPackageReference)" /> -->
</ItemGroup>
</Project>
12 changes: 9 additions & 3 deletions src/Targets/PackageTags.targets
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,16 @@
<PropertyGroup>
<PackageTags_targets>Imported</PackageTags_targets>
</PropertyGroup>
<!-- <Target Name="SetPackageTags" BeforeTargets="GetPackageMetadata;GenerateMSBuildEditorConfigFileShouldRun" Condition="'$(PackageTags_targets)' == ''"> -->
<ItemGroup>
<PackageTag Include="dgmjr" />
<PackageTag Include="dgmjrmoore" />
<PackageTag Include="dgmjr" />
</ItemGroup>
<ItemGroup>
<DistinctPackageTag Include="@(PackageTag->Distinct())" />
</ItemGroup>
<PropertyGroup>
<PackageTags>@(PackageTag->Distinct(), ' ')</PackageTags>
<PackageTags>@(DistinctPackageTag, ' ')</PackageTags>
<PackageTags>$(PackageTags.ToLower())</PackageTags>
</PropertyGroup>
<!-- </Target> -->
</Project>

0 comments on commit 6adcc91

Please sign in to comment.