Add comments
authorluqunl <luqunl@LUQUN03>
Thu, 9 Aug 2018 00:13:16 +0000 (17:13 -0700)
committerluqunl <luqunl@LUQUN03>
Thu, 9 Aug 2018 00:13:16 +0000 (17:13 -0700)
Commit migrated from https://github.com/dotnet/core-setup/commit/619dea13fd8937e59efda4f845fbc5880dc29113

src/installer/pkg/projects/Microsoft.NETCore.App/src/Microsoft.NETCore.App.depproj

index 0b16241..4c52105 100644 (file)
     <Exec Command="chmod u+x $(_crossGenPath)"
           Condition="'$(OSGroup)' != 'Windows_NT'" />
     <ItemGroup>
-      <!-- -->
+      <!-- Exclude run crossgen on System.Runtime.WindowsRuntime for non-Windows due to System.Runtime.WindowsRuntime.dll for non-Windows only throw NotSupported Exception  -->
+      <!-- Also crossgen on non-windows doesn't support -Platform_Winmd_Paths -->
       <_filesToCrossGen Include="@(FilesToPackage)"
                         Condition="'%(FilesToPackage.IsNative)' != 'true' AND '%(FileName)' != 'System.Private.CoreLib' AND '%(FileName)' != 'mscorlib' AND '%(Extension)' == '.dll' AND ('%(FileName)' != 'System.Runtime.WindowsRuntime' Or '$(OsEnvironment)'=='Windows_NT')">
         <CrossGenedDirectory>$(CrossGenOutputPath)/%(TargetPath)/</CrossGenedDirectory>