/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
eng/targets/GenerateServiceHubConfigurationFiles.targets
47 строк
2 KB
Jason Malinowski
Remove the OOP Server GC experiment
09 янв 2026, 05:00
09 янв 2026, 05:00
2cc8dde
Код
Авторство
О чём код?
<?xml version="1.0" encoding="utf-8"?> <!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. --> <Project> <PropertyGroup> <RoslynPackageGuid>6cf2e545-6109-4730-8883-cf43d7aec3e1</RoslynPackageGuid> </PropertyGroup> <PropertyGroup> <GetVsixSourceItemsDependsOn>$(GetVsixSourceItemsDependsOn);GenerateServiceHubConfigurationFiles</GetVsixSourceItemsDependsOn> </PropertyGroup> <Target Name="CalculateServiceHubConfigurationFiles"> <ItemGroup> <_ServicesWithSuffix Include="@(ServiceHubService)" FileSuffix="Core64" HostIdSuffix="" /> <ServiceHubServiceJsonFile Include="$(IntermediateOutputPath)%(_ServicesWithSuffix.Identity)%(_ServicesWithSuffix.FileSuffix).servicehub.service.json" > <Content> <![CDATA[{ "host": "dotnet", "hostId": "RoslynCodeAnalysisService%(_ServicesWithSuffix.HostIdSuffix)", "hostGroupAllowed": true, "serviceOverride": true, "entryPoint": { "assemblyPath": "$(ServiceHubAssemblyBasePath.Replace('\', '\\'))Microsoft.CodeAnalysis.Remote.ServiceHub.dll", "fullClassName": "%(_ServicesWithSuffix.ClassName)" } } ]]> </Content> </ServiceHubServiceJsonFile> </ItemGroup> </Target> <Target Name="GenerateServiceHubConfigurationFiles" DependsOnTargets="CalculateServiceHubConfigurationFiles" BeforeTargets="CreateVsixContainer" Inputs="$(MSBuildAllProjects)" Outputs="@(ServiceHubServiceJsonFile)"> <WriteLinesToFile File="%(ServiceHubServiceJsonFile.Identity)" Lines="%(ServiceHubServiceJsonFile.Content)" Overwrite="true"/> <ItemGroup> <FileWrites Include="@(ServiceHubServiceJsonFile->'%(Identity)')"/> <VSIXSourceItem Include="@(ServiceHubServiceJsonFile->'%(Identity)')" /> </ItemGroup> </Target> </Project>