提交 aa27a03b 编写于 作者: G Gen Lu

Add support to ngen assets included from nuget package

上级 07f74b30
......@@ -70,11 +70,21 @@
<_AssetsByPackageId Remove="@(_ExcludedPackageId)" />
</ItemGroup>
<!-- Update assets to mark those need to be optimized -->
<ItemGroup>
<_AssetsByPackageId Update="@(NuGetPackageToIncludeInVsix)">
<Optimization Condition="'@(NuGetPackageToIncludeInVsix->'%(Optimization)')' == 'true'">true</Optimization>
</_AssetsByPackageId>
</ItemGroup>
<!-- Include the assets in the VSIX -->
<ItemGroup>
<VSIXCopyLocalReferenceSourceItem Include="@(_AssetsByPackageId->'%(Path)')">
<ForceIncludeInVsix>true</ForceIncludeInVsix>
<Private>true</Private>
<Ngen Condition="'%(Optimization)' == 'true'">true</Ngen>
<NgenArchitecture Condition="'%(Optimization)' == 'true'">All</NgenArchitecture>
<NgenPriority Condition="'%(Optimization)' == 'true'">3</NgenPriority>
</VSIXCopyLocalReferenceSourceItem>
</ItemGroup>
</Target>
......
......@@ -255,7 +255,7 @@
</ItemGroup>
<ItemGroup>
<NuGetPackageToIncludeInVsix Include="Humanizer.Core" />
<NuGetPackageToIncludeInVsix Include="Microsoft.CodeAnalysis.FlowAnalysis.Utilities" />
<NuGetPackageToIncludeInVsix Include="Microsoft.CodeAnalysis.FlowAnalysis.Utilities" Optimization="true"/>
<NuGetPackageToIncludeInVsix Include="SQLitePCLRaw.bundle_green" />
<NuGetPackageToIncludeInVsix Include="Microsoft.CodeAnalysis.Elfie" />
<!-- Visual Studio ships with some, but not all, of the assemblies in System.Composition, but we need them all -->
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册