|
8 | 8 | <Description>Extensions for the Assembly</Description> |
9 | 9 | <Authors>Tyler Carrol</Authors> |
10 | 10 | <PackageReadmeFile>README.md</PackageReadmeFile> |
11 | | - <PackageLicenseFile>LICENSE</PackageLicenseFile> |
| 11 | + <PackageLicenseFile>LICENSE</PackageLicenseFile> |
12 | 12 | <PackageReleaseNotes>$([System.IO.File]::ReadAllText("$(MSBuildProjectDirectory)/../CHANGELOG.md"))</PackageReleaseNotes> |
13 | 13 | <RepositoryUrl>https://github.com/TJC-Tools/TJC.AssemblyExtensions</RepositoryUrl> |
14 | 14 | <GenerateDocumentationFile>true</GenerateDocumentationFile> |
15 | | - </PropertyGroup> |
| 15 | + </PropertyGroup> |
16 | 16 | <!-- INCLUDED FILES --> |
17 | 17 | <ItemGroup> |
18 | 18 | <None Remove="Nuget.config" /> |
|
27 | 27 | <Pack>True</Pack> |
28 | 28 | <PackagePath>\</PackagePath> |
29 | 29 | </None> |
30 | | - <None Include="..\CHANGELOG.md"> |
31 | | - <Pack>True</Pack> |
32 | | - <PackagePath>\</PackagePath> |
33 | | - </None> |
34 | | - <EmbeddedResource Include="..\CHANGELOG.md" /> |
| 30 | + <None Include="..\CHANGELOG.md"> |
| 31 | + <Pack>True</Pack> |
| 32 | + <PackagePath>\</PackagePath> |
| 33 | + </None> |
| 34 | + <EmbeddedResource Include="..\CHANGELOG.md" /> |
35 | 35 | <None Include="..\LICENSE"> |
36 | 36 | <Pack>True</Pack> |
37 | 37 | <PackagePath>\</PackagePath> |
38 | 38 | </None> |
39 | | - <EmbeddedResource Include="..\LICENSE" /> |
40 | | - <None Include="..\THIRD-PARTY-LICENSES"> |
41 | | - <Pack>True</Pack> |
42 | | - <PackagePath>\</PackagePath> |
43 | | - </None> |
44 | | - <EmbeddedResource Include="..\THIRD-PARTY-LICENSES" /> |
| 39 | + <EmbeddedResource Include="..\LICENSE" /> |
| 40 | + <None Include="..\THIRD-PARTY-LICENSES"> |
| 41 | + <Pack>True</Pack> |
| 42 | + <PackagePath>\</PackagePath> |
| 43 | + </None> |
| 44 | + <EmbeddedResource Include="..\THIRD-PARTY-LICENSES" /> |
45 | 45 | </ItemGroup> |
46 | 46 | <!-- DEPENDENCIES --> |
47 | 47 | <!-- TESTS --> |
|
54 | 54 | <PackageReference Include="TJC.StringExtensions" Version="0.6.5" /> |
55 | 55 | </ItemGroup> |
56 | 56 | <!-- TASKS --> |
57 | | - <UsingTask TaskName="ReadFileContent" TaskFactory="RoslynCodeTaskFactory" AssemblyName="Microsoft.Build.Tasks.Core"> |
| 57 | + <UsingTask |
| 58 | + TaskName="ReadFileContent" |
| 59 | + TaskFactory="RoslynCodeTaskFactory" |
| 60 | + AssemblyName="Microsoft.Build.Tasks.Core" |
| 61 | + > |
58 | 62 | <ParameterGroup> |
59 | 63 | <FilePath ParameterType="System.String" Required="true" /> |
60 | 64 | <Content Output="true" ParameterType="System.String" /> |
61 | 65 | </ParameterGroup> |
62 | 66 | <Task> |
63 | 67 | <Using Namespace="System.IO" /> |
64 | 68 | <Code Type="Fragment" Language="cs"> |
65 | | - <![CDATA[ |
66 | | - Content = File.ReadAllText(FilePath); |
| 69 | + <![CDATA[ |
| 70 | + Content = File.ReadAllText(FilePath); |
67 | 71 | ]]> |
68 | 72 | </Code> |
69 | 73 | </Task> |
70 | 74 | </UsingTask> |
71 | | - <UsingTask TaskName="AppendNewLineAndFile" TaskFactory="RoslynCodeTaskFactory" AssemblyName="Microsoft.Build.Tasks.Core"> |
| 75 | + <UsingTask |
| 76 | + TaskName="AppendNewLineAndFile" |
| 77 | + TaskFactory="RoslynCodeTaskFactory" |
| 78 | + AssemblyName="Microsoft.Build.Tasks.Core" |
| 79 | + > |
72 | 80 | <ParameterGroup> |
73 | 81 | <File1 ParameterType="System.String" Required="true" /> |
74 | 82 | <File2 ParameterType="System.String" Required="true" /> |
75 | 83 | </ParameterGroup> |
76 | 84 | <Task> |
77 | 85 | <Using Namespace="System.IO" /> |
78 | 86 | <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); |
| 87 | + <![CDATA[ |
| 88 | + var text = Environment.NewLine; |
| 89 | + text += "==========================================================="; |
| 90 | + text += Environment.NewLine; |
| 91 | + text += Environment.NewLine; |
| 92 | + text += File.ReadAllText(File2); |
| 93 | + text += Environment.NewLine; |
| 94 | + File.AppendAllText(File1, text); |
87 | 95 | ]]> |
88 | 96 | </Code> |
89 | 97 | </Task> |
90 | | - </UsingTask> |
| 98 | + </UsingTask> |
91 | 99 | <!-- PRE-PACK --> |
92 | 100 | <Target Name="CustomSetup" BeforeTargets="_IntermediatePack"> |
93 | 101 | <Message Text="=== CUSTOM SETUP ===" Importance="high" /> |
|
109 | 117 | <!-- Cleanup License File --> |
110 | 118 | <Target Name="RestoreLicenseFile"> |
111 | 119 | <Message Text="Restore License File Contents" Importance="high" /> |
112 | | - <WriteLinesToFile File="..\LICENSE" Lines="$(OriginalLicenseLines)" Overwrite="true" Encoding="UTF-8" /> |
| 120 | + <WriteLinesToFile |
| 121 | + File="..\LICENSE" |
| 122 | + Lines="$(OriginalLicenseLines)" |
| 123 | + Overwrite="true" |
| 124 | + Encoding="UTF-8" |
| 125 | + /> |
113 | 126 | </Target> |
114 | 127 | </Project> |
0 commit comments