Skip to content

Commit fa845d3

Browse files
authored
Update Ngen Priorities for VS (#11662)
2 parents 30109ad + 3b08917 commit fa845d3

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/Razor/src/Microsoft.VisualStudio.RazorExtension/Microsoft.VisualStudio.RazorExtension.csproj

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@
165165
<!-- Don't trim this list. It is used to feed into the binding redirects -->
166166
<ProjectReference Include="$(SharedSourceRoot)\Microsoft.AspNetCore.Razor.Utilities.Shared\Microsoft.AspNetCore.Razor.Utilities.Shared.csproj">
167167
<AdditionalProperties>TargetFramework=$(NetFxVS)</AdditionalProperties>
168+
<NgenPriority>2</NgenPriority>
168169
</ProjectReference>
169170
<ProjectReference Include="..\Microsoft.AspNetCore.Razor.ExternalAccess.LegacyEditor\Microsoft.AspNetCore.Razor.ExternalAccess.LegacyEditor.csproj" />
170171

@@ -190,7 +191,9 @@
190191
<Ngen>false</Ngen>
191192
</ProjectReference>
192193
<ProjectReference Include="..\Microsoft.VisualStudio.LanguageServer.ContainedLanguage\Microsoft.VisualStudio.LanguageServer.ContainedLanguage.csproj" />
193-
<ProjectReference Include="..\Microsoft.VisualStudio.LanguageServices.Razor\Microsoft.VisualStudio.LanguageServices.Razor.csproj" />
194+
<ProjectReference Include="..\Microsoft.VisualStudio.LanguageServices.Razor\Microsoft.VisualStudio.LanguageServices.Razor.csproj" >
195+
<NgenPriority>1</NgenPriority>
196+
</ProjectReference>
194197
<ProjectReference Include="..\Microsoft.VisualStudio.LegacyEditor.Razor\Microsoft.VisualStudio.LegacyEditor.Razor.csproj" />
195198
<ProjectReference Include="..\..\..\Compiler\Microsoft.CodeAnalysis.Razor.Compiler\src\Microsoft.CodeAnalysis.Razor.Compiler.csproj">
196199
<Name>Microsoft.CodeAnalysis.Razor.Compiler</Name>
@@ -216,13 +219,9 @@
216219

217220
<!-- Include our Razor package dependency dlls in our extension -->
218221
<ItemGroup>
219-
<RazorNgendVSIXSourceItem Include="$(OutputPath)Microsoft.CodeAnalysis.Razor.Compiler.dll" />
220-
221-
<VSIXSourceItem Include="@(RazorNgendVSIXSourceItem)">
222-
<Ngen>$(Ngen)</Ngen>
223-
<NgenApplication>$(NgenApplication)</NgenApplication>
224-
<NgenArchitecture>$(NgenArchitecture)</NgenArchitecture>
225-
<NgenPriority>$(NgenPriority)</NgenPriority>
222+
<VSIXSourceItem Include="$(OutputPath)Microsoft.CodeAnalysis.Razor.Compiler.dll">
223+
<Ngen>true</Ngen>
224+
<NgenPriority>1</NgenPriority>
226225
</VSIXSourceItem>
227226
</ItemGroup>
228227

0 commit comments

Comments
 (0)