|
44 | 44 | </AssemblyAttribute> |
45 | 45 | </ItemGroup> |
46 | 46 | <!-- TASKS --> |
47 | | - <UsingTask TaskName="ReadFileContent" TaskFactory="RoslynCodeTaskFactory" AssemblyName="Microsoft.Build.Tasks.Core"> |
| 47 | + <UsingTask |
| 48 | + TaskName="ReadFileContent" |
| 49 | + TaskFactory="RoslynCodeTaskFactory" |
| 50 | + AssemblyName="Microsoft.Build.Tasks.Core" |
| 51 | + > |
48 | 52 | <ParameterGroup> |
49 | 53 | <FilePath ParameterType="System.String" Required="true" /> |
50 | 54 | <Content Output="true" ParameterType="System.String" /> |
51 | 55 | </ParameterGroup> |
52 | 56 | <Task> |
53 | 57 | <Using Namespace="System.IO" /> |
54 | 58 | <Code Type="Fragment" Language="cs"> |
55 | | - <![CDATA[ |
56 | | - Content = File.ReadAllText(FilePath); |
| 59 | + <![CDATA[ |
| 60 | + Content = File.ReadAllText(FilePath); |
57 | 61 | ]]> |
58 | 62 | </Code> |
59 | 63 | </Task> |
60 | 64 | </UsingTask> |
61 | | - <UsingTask TaskName="AppendNewLineAndFile" TaskFactory="RoslynCodeTaskFactory" AssemblyName="Microsoft.Build.Tasks.Core"> |
| 65 | + <UsingTask |
| 66 | + TaskName="AppendNewLineAndFile" |
| 67 | + TaskFactory="RoslynCodeTaskFactory" |
| 68 | + AssemblyName="Microsoft.Build.Tasks.Core" |
| 69 | + > |
62 | 70 | <ParameterGroup> |
63 | 71 | <File1 ParameterType="System.String" Required="true" /> |
64 | 72 | <File2 ParameterType="System.String" Required="true" /> |
65 | 73 | </ParameterGroup> |
66 | 74 | <Task> |
67 | 75 | <Using Namespace="System.IO" /> |
68 | 76 | <Code Type="Fragment" Language="cs"> |
69 | | - <![CDATA[ |
70 | | - var text = Environment.NewLine; |
71 | | - text += "==========================================================="; |
72 | | - text += Environment.NewLine; |
73 | | - text += Environment.NewLine; |
74 | | - text += File.ReadAllText(File2); |
75 | | - text += Environment.NewLine; |
76 | | - File.AppendAllText(File1, text); |
| 77 | + <![CDATA[ |
| 78 | + var text = Environment.NewLine; |
| 79 | + text += "==========================================================="; |
| 80 | + text += Environment.NewLine; |
| 81 | + text += Environment.NewLine; |
| 82 | + text += File.ReadAllText(File2); |
| 83 | + text += Environment.NewLine; |
| 84 | + File.AppendAllText(File1, text); |
77 | 85 | ]]> |
78 | 86 | </Code> |
79 | 87 | </Task> |
80 | | - </UsingTask> |
| 88 | + </UsingTask> |
81 | 89 | <!-- PRE-PACK --> |
82 | 90 | <Target Name="CustomSetup" BeforeTargets="_IntermediatePack"> |
83 | 91 | <Message Text="=== CUSTOM SETUP ===" Importance="high" /> |
|
99 | 107 | <!-- Cleanup License File --> |
100 | 108 | <Target Name="RestoreLicenseFile"> |
101 | 109 | <Message Text="Restore License File Contents" Importance="high" /> |
102 | | - <WriteLinesToFile File="..\LICENSE" Lines="$(OriginalLicenseLines)" Overwrite="true" Encoding="UTF-8" /> |
| 110 | + <WriteLinesToFile |
| 111 | + File="..\LICENSE" |
| 112 | + Lines="$(OriginalLicenseLines)" |
| 113 | + Overwrite="true" |
| 114 | + Encoding="UTF-8" |
| 115 | + /> |
103 | 116 | </Target> |
104 | 117 | </Project> |
0 commit comments