在查看Visual Studio的构建时间问题时,我发现使用系统监视器它正在读取大量文件来自.net参考程序集文件夹。
.net参考程序集文件夹位于系统驱动器上,这是一个普通的驱动器; 但是我们在每台机器上都有SSD。那么我能把它移到SSD上吗?
在查看Visual Studio的构建时间问题时,我发现使用系统监视器它正在读取大量文件来自.net参考程序集文件夹。
.net参考程序集文件夹位于系统驱动器上,这是一个普通的驱动器; 但是我们在每台机器上都有SSD。那么我能把它移到SSD上吗?
<!--
============================================================
GetReferenceAssemblyPaths
Get the paths for the Reference Assemblies for the known versions of the
.NET Framework.
These paths are used by the build process in order to resolve the correct
assemblies from the various directories, and to support multi-targeting
============================================================
-->
<PropertyGroup>
<GetReferenceAssemblyPathsDependsOn></GetReferenceAssemblyPathsDependsOn>
</PropertyGroup>
<Target
Name="GetReferenceAssemblyPaths"
DependsOnTargets="$(GetReferenceAssemblyPathsDependsOn)">
<!-- Ordering of target framework directories doesn't matter except for assemblies
that aren't in a redist list; for those, make sure we order 3.5, 3.0, 2.0 -->
<PropertyGroup Condition=" '$(TargetFrameworkVersion)' == 'v3.0' or '$(TargetFrameworkVersion)' == 'v3.5' ">
<TargetFrameworkDirectory>$(WinFXAssemblyDirectory);$(TargetFrameworkDirectory)</TargetFrameworkDirectory>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetFrameworkVersion)' == 'v3.5' ">
<TargetFrameworkDirectory>$(Registry:HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework\AssemblyFolders\v3.5@All Assemblies In);$(TargetFrameworkDirectory)</TargetFrameworkDirectory>
</PropertyGroup>
</Target>
mklink
或类似工具)。 - Joe