Skip to content

Commit 959bcb7

Browse files
authored
Ensure new Razor features project gets codebase (#78147)
Should fix ngen issues like ``` 04/11/2025 18:20:23.284 [5832]: 1> Compiling assembly C:\VisualStudio\Common7\IDE\CommonExtensions\Microsoft\RazorLanguageServices\Microsoft.VisualStudio.LanguageServices.Razor.dll (CLR v4.0.30319) ... 04/11/2025 18:20:23.419 [5832]: 1>Warning: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.CodeAnalysis.ExternalAccess.Razor.Features, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. while resolving 0x200001f - Microsoft.VisualStudio.LanguageServices.Razor.LanguageClient.Cohost.CohostOnAutoInsertEndpoint. ``` seen in https://dev.azure.com/devdiv/DevDiv/_git/VS/pullrequest/627582
2 parents 50b6120 + 84dd277 commit 959bcb7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/VisualStudio/Setup/Roslyn.VisualStudio.Setup.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@
7979
<ForceIncludeInVSIX>true</ForceIncludeInVSIX>
8080
<PkgDefEntry>BindingRedirect</PkgDefEntry>
8181
</ProjectReference>
82+
<ProjectReference Include="..\..\Tools\ExternalAccess\Razor\Features\Microsoft.CodeAnalysis.ExternalAccess.Razor.Features.csproj">
83+
<Name>Microsoft.CodeAnalysis.ExternalAccess.Razor</Name>
84+
<IncludeOutputGroupsInVSIX>BuiltProjectOutputGroup</IncludeOutputGroupsInVSIX>
85+
<ForceIncludeInVSIX>true</ForceIncludeInVSIX>
86+
<PkgDefEntry>BindingRedirect</PkgDefEntry>
87+
</ProjectReference>
8288
<ProjectReference Include="..\..\Tools\ExternalAccess\Razor\EditorFeatures\Microsoft.CodeAnalysis.ExternalAccess.Razor.EditorFeatures.csproj">
8389
<Name>Microsoft.CodeAnalysis.ExternalAccess.Razor</Name>
8490
<IncludeOutputGroupsInVSIX>BuiltProjectOutputGroup</IncludeOutputGroupsInVSIX>

0 commit comments

Comments
 (0)