Skip to content

Commit 58a34d4

Browse files
TylerCarrolgithub-actions[bot]
authored andcommitted
🧹 chore: [MegaLinter] Apply [1] automatic fixes
1 parent b8134d8 commit 58a34d4

File tree

2 files changed

+89
-82
lines changed

2 files changed

+89
-82
lines changed
Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,21 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
32
<PropertyGroup>
43
<TargetFramework>net8.0</TargetFramework>
54
<ImplicitUsings>enable</ImplicitUsings>
65
<Nullable>enable</Nullable>
7-
86
<IsPackable>false</IsPackable>
97
<IsTestProject>true</IsTestProject>
108
</PropertyGroup>
11-
129
<ItemGroup>
1310
<PackageReference Include="coverlet.collector" Version="6.0.2" />
1411
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
1512
<PackageReference Include="MSTest.TestAdapter" Version="3.6.1" />
1613
<PackageReference Include="MSTest.TestFramework" Version="3.6.1" />
1714
</ItemGroup>
18-
1915
<ItemGroup>
2016
<ProjectReference Include="..\TJC.StringExtensions\TJC.StringExtensions.csproj" />
2117
</ItemGroup>
22-
2318
<ItemGroup>
2419
<Using Include="Microsoft.VisualStudio.TestTools.UnitTesting" />
2520
</ItemGroup>
26-
2721
</Project>
Lines changed: 89 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,106 +1,119 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<!-- DETAILS -->
33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
5-
<ImplicitUsings>enable</ImplicitUsings>
6-
<Nullable>enable</Nullable>
7-
<Title>TJC String Extensions</Title>
8-
<Description>String Extensions</Description>
9-
<Authors>Tyler Carrol</Authors>
10-
<PackageReadmeFile>README.md</PackageReadmeFile>
11-
<PackageLicenseFile>LICENSE</PackageLicenseFile>
12-
<PackageReleaseNotes>$([System.IO.File]::ReadAllText("$(MSBuildProjectDirectory)/../CHANGELOG.md"))</PackageReleaseNotes>
13-
<RepositoryUrl>https://github.com/TJC-Tools/TJC.StringExtensions</RepositoryUrl>
14-
<GenerateDocumentationFile>true</GenerateDocumentationFile>
15-
</PropertyGroup>
4+
<TargetFramework>net8.0</TargetFramework>
5+
<ImplicitUsings>enable</ImplicitUsings>
6+
<Nullable>enable</Nullable>
7+
<Title>TJC String Extensions</Title>
8+
<Description>String Extensions</Description>
9+
<Authors>Tyler Carrol</Authors>
10+
<PackageReadmeFile>README.md</PackageReadmeFile>
11+
<PackageLicenseFile>LICENSE</PackageLicenseFile>
12+
<PackageReleaseNotes>$([System.IO.File]::ReadAllText("$(MSBuildProjectDirectory)/../CHANGELOG.md"))</PackageReleaseNotes>
13+
<RepositoryUrl>https://github.com/TJC-Tools/TJC.StringExtensions</RepositoryUrl>
14+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
15+
</PropertyGroup>
1616
<!-- INCLUDED FILES -->
1717
<ItemGroup>
18-
<None Remove="Nuget.config" />
18+
<None Remove="Nuget.config" />
1919
</ItemGroup>
2020
<ItemGroup>
21-
<Content Include="Nuget.config">
22-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
23-
</Content>
21+
<Content Include="Nuget.config">
22+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
23+
</Content>
2424
</ItemGroup>
2525
<ItemGroup>
26-
<None Include="..\README.md">
27-
<Pack>True</Pack>
28-
<PackagePath>\</PackagePath>
29-
</None>
30-
<None Include="..\LICENSE">
31-
<Pack>True</Pack>
32-
<PackagePath>\</PackagePath>
33-
</None>
34-
<EmbeddedResource Include="..\LICENSE" />
35-
<None Include="..\CHANGELOG.md">
36-
<Pack>True</Pack>
37-
<PackagePath>\</PackagePath>
38-
</None>
39-
<EmbeddedResource Include="..\CHANGELOG.md" />
26+
<None Include="..\README.md">
27+
<Pack>True</Pack>
28+
<PackagePath>\</PackagePath>
29+
</None>
30+
<None Include="..\LICENSE">
31+
<Pack>True</Pack>
32+
<PackagePath>\</PackagePath>
33+
</None>
34+
<EmbeddedResource Include="..\LICENSE" />
35+
<None Include="..\CHANGELOG.md">
36+
<Pack>True</Pack>
37+
<PackagePath>\</PackagePath>
38+
</None>
39+
<EmbeddedResource Include="..\CHANGELOG.md" />
4040
</ItemGroup>
4141
<!-- DEPENDENCIES -->
4242
<!-- TESTS -->
4343
<ItemGroup>
44-
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleToAttribute">
45-
<_Parameter1>TJC.StringExtensions.Tests</_Parameter1>
46-
</AssemblyAttribute>
44+
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleToAttribute">
45+
<_Parameter1>TJC.StringExtensions.Tests</_Parameter1>
46+
</AssemblyAttribute>
4747
</ItemGroup>
4848
<!-- TASKS -->
49-
<UsingTask TaskName="ReadFileContent" TaskFactory="RoslynCodeTaskFactory" AssemblyName="Microsoft.Build.Tasks.Core">
50-
<ParameterGroup>
51-
<FilePath ParameterType="System.String" Required="true" />
52-
<Content Output="true" ParameterType="System.String" />
53-
</ParameterGroup>
54-
<Task>
55-
<Using Namespace="System.IO" />
56-
<Code Type="Fragment" Language="cs">
57-
<![CDATA[
58-
Content = File.ReadAllText(FilePath);
49+
<UsingTask
50+
TaskName="ReadFileContent"
51+
TaskFactory="RoslynCodeTaskFactory"
52+
AssemblyName="Microsoft.Build.Tasks.Core"
53+
>
54+
<ParameterGroup>
55+
<FilePath ParameterType="System.String" Required="true" />
56+
<Content Output="true" ParameterType="System.String" />
57+
</ParameterGroup>
58+
<Task>
59+
<Using Namespace="System.IO" />
60+
<Code Type="Fragment" Language="cs">
61+
<![CDATA[
62+
Content = File.ReadAllText(FilePath);
5963
]]>
60-
</Code>
61-
</Task>
64+
</Code>
65+
</Task>
6266
</UsingTask>
63-
<UsingTask TaskName="AppendNewLineAndFile" TaskFactory="RoslynCodeTaskFactory" AssemblyName="Microsoft.Build.Tasks.Core">
64-
<ParameterGroup>
65-
<File1 ParameterType="System.String" Required="true" />
66-
<File2 ParameterType="System.String" Required="true" />
67-
</ParameterGroup>
68-
<Task>
69-
<Using Namespace="System.IO" />
70-
<Code Type="Fragment" Language="cs">
71-
<![CDATA[
72-
var text = Environment.NewLine;
73-
text += "===========================================================";
74-
text += Environment.NewLine;
75-
text += Environment.NewLine;
76-
text += File.ReadAllText(File2);
77-
text += Environment.NewLine;
78-
File.AppendAllText(File1, text);
67+
<UsingTask
68+
TaskName="AppendNewLineAndFile"
69+
TaskFactory="RoslynCodeTaskFactory"
70+
AssemblyName="Microsoft.Build.Tasks.Core"
71+
>
72+
<ParameterGroup>
73+
<File1 ParameterType="System.String" Required="true" />
74+
<File2 ParameterType="System.String" Required="true" />
75+
</ParameterGroup>
76+
<Task>
77+
<Using Namespace="System.IO" />
78+
<Code Type="Fragment" Language="cs">
79+
<![CDATA[
80+
var text = Environment.NewLine;
81+
text += "===========================================================";
82+
text += Environment.NewLine;
83+
text += Environment.NewLine;
84+
text += File.ReadAllText(File2);
85+
text += Environment.NewLine;
86+
File.AppendAllText(File1, text);
7987
]]>
80-
</Code>
81-
</Task>
82-
</UsingTask>
88+
</Code>
89+
</Task>
90+
</UsingTask>
8391
<!-- PRE-PACK -->
8492
<Target Name="CustomSetup" BeforeTargets="_IntermediatePack">
85-
<Message Text="=== CUSTOM SETUP ===" Importance="high" />
86-
<!-- Store the original contents of the license file -->
87-
<ReadFileContent FilePath="..\LICENSE">
88-
<Output TaskParameter="Content" PropertyName="OriginalLicenseLines" />
89-
</ReadFileContent>
90-
<CallTarget Targets="AppendThirdPartyLicensesToLicenseFile" />
93+
<Message Text="=== CUSTOM SETUP ===" Importance="high" />
94+
<!-- Store the original contents of the license file -->
95+
<ReadFileContent FilePath="..\LICENSE">
96+
<Output TaskParameter="Content" PropertyName="OriginalLicenseLines" />
97+
</ReadFileContent>
98+
<CallTarget Targets="AppendThirdPartyLicensesToLicenseFile" />
9199
</Target>
92100
<Target Name="AppendThirdPartyLicensesToLicenseFile">
93-
<Message Text="Append Third-Party Licenses to License File" Importance="high" />
94-
<AppendNewLineAndFile File1="..\LICENSE" File2="..\THIRD-PARTY-LICENSES" />
101+
<Message Text="Append Third-Party Licenses to License File" Importance="high" />
102+
<AppendNewLineAndFile File1="..\LICENSE" File2="..\THIRD-PARTY-LICENSES" />
95103
</Target>
96104
<!-- POST-PACK -->
97105
<Target Name="CustomCleanup" AfterTargets="Pack">
98-
<Message Text="=== CUSTOM CLEANUP ===" Importance="high" />
99-
<CallTarget Targets="RestoreLicenseFile" />
106+
<Message Text="=== CUSTOM CLEANUP ===" Importance="high" />
107+
<CallTarget Targets="RestoreLicenseFile" />
100108
</Target>
101109
<!-- Cleanup License File -->
102110
<Target Name="RestoreLicenseFile">
103-
<Message Text="Restore License File Contents" Importance="high" />
104-
<WriteLinesToFile File="..\LICENSE" Lines="$(OriginalLicenseLines)" Overwrite="true" Encoding="UTF-8" />
111+
<Message Text="Restore License File Contents" Importance="high" />
112+
<WriteLinesToFile
113+
File="..\LICENSE"
114+
Lines="$(OriginalLicenseLines)"
115+
Overwrite="true"
116+
Encoding="UTF-8"
117+
/>
105118
</Target>
106119
</Project>

0 commit comments

Comments
 (0)