File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
src/Tasks/Microsoft.NET.Build.Tasks Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change
1
+ rmdir artifacts /s /q
Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ namespace Microsoft.NET.Build.Tasks
27
27
/// </summary>
28
28
public sealed class ResolvePackageAssets : TaskBase
29
29
{
30
+ #region Input Items
31
+
30
32
/// <summary>
31
33
/// Path to assets.json.
32
34
/// </summary>
@@ -160,6 +162,9 @@ public sealed class ResolvePackageAssets : TaskBase
160
162
/// </summary>
161
163
public bool DesignTimeBuild { get ; set ; }
162
164
165
+ #endregion
166
+
167
+ #region Output Items
163
168
/// <summary>
164
169
/// Full paths to assemblies from packages to pass to compiler as analyzers.
165
170
/// </summary>
@@ -251,6 +256,8 @@ public sealed class ResolvePackageAssets : TaskBase
251
256
[ Output ]
252
257
public ITaskItem [ ] ReferenceDocumentationFiles { get ; private set ; }
253
258
259
+ #endregion
260
+
254
261
/// <summary>
255
262
/// Messages from the assets file.
256
263
/// These are logged directly and therefore not returned to the targets (note private here).
@@ -1157,17 +1164,13 @@ private void WriteDebugItems(
1157
1164
1158
1165
foreach ( string fileExtension in relatedExtensions . Split ( RelatedPropertySeparator ) )
1159
1166
{
1160
- if ( fileExtension . ToLower ( ) == extension )
1167
+ if ( fileExtension . ToLowerInvariant ( ) == extension )
1161
1168
{
1162
1169
string xmlFilePath = Path . ChangeExtension ( itemSpec , fileExtension ) ;
1163
1170
if ( File . Exists ( xmlFilePath ) )
1164
1171
{
1165
1172
WriteItem ( xmlFilePath , library ) ;
1166
1173
}
1167
- else
1168
- {
1169
- _task . Log . LogWarning ( Strings . AssetsFileNotFound , xmlFilePath ) ;
1170
- }
1171
1174
}
1172
1175
}
1173
1176
}
You can’t perform that action at this time.
0 commit comments