dotnet/msbuild

Use Microsoft.IO.Redist in FileUtilities on net472 instead of custom methods

开放

#13,078 创建于 2026年1月21日

 (0 条评论) (0 个反应) (0 位负责人)C# (1,364 个派生)batch import
backloghelp wantedtriaged

仓库指标

星标
 (5,062 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

The note in the targets file that sets the variable says these optimizations are relevant for net4.6, we're beyond that so we might be able to use the Microsoft.IO redist ones instead.

  1. decouple FEATURE_LEGACY_GETCURRENTDIRECTORY and FEATURE_LEGACY_GETFULLPATH from net472
  2. conditionally compile FileUtilities with using Microsoft.IO
  3. don't compile the custom methods outside of net35 taskhost project

贡献者指南