/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/VisualStudio/Core/Def/Microsoft.VisualStudio.LanguageServices.csproj
171 строка
12 KB
Joey Robichaud
Consolidate ExternalAccess libraries (#81593)
07 июл 2026, 23:16
Не верифицирован
07 июл 2026, 23:16
97ee762
Код
Авторство
О чём код?
<?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 Sdk="Microsoft.NET.Sdk.WindowsDesktop"> <Import Project="$(RepositoryEngineeringDir)targets\Services.props" /> <PropertyGroup> <OutputType>Library</OutputType> <RootNamespace>Microsoft.VisualStudio.LanguageServices</RootNamespace> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> <TargetFramework>net472</TargetFramework> <UseWpf>true</UseWpf> <ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>None</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch> <ApplyNgenOptimization>full</ApplyNgenOptimization> <!-- Vsix --> <CreateVsixContainer>false</CreateVsixContainer> <GeneratePkgDefFile>true</GeneratePkgDefFile> <DeployExtension>false</DeployExtension> <!-- NuGet --> <IsPackable>true</IsPackable> <NuspecFile>$(MSBuildProjectName).nuspec</NuspecFile> <NuspecBasePath>$(OutputPath)</NuspecBasePath> <PackageDescription> .NET Compiler Platform ("Roslyn") support for Visual Studio. </PackageDescription> </PropertyGroup> <PropertyGroup> <RoslynPackageGuid>6cf2e545-6109-4730-8883-cf43d7aec3e1</RoslynPackageGuid> </PropertyGroup> <ItemGroup Label="PkgDef"> <PkgDefPackageRegistration Include="{$(RoslynPackageGuid)}" Name="RoslynPackage" Class="Microsoft.VisualStudio.LanguageServices.Setup.RoslynPackage" AllowsBackgroundLoad="true" /> <None Include="CodeCleanup\readme.md" /> <None Include="PackageRegistration.pkgdef" PkgDefEntry="FileContent" /> <None Include=".\ColorSchemes\VisualStudio2019.pkgdef" PkgDefEntry="FileContent" /> </ItemGroup> <ItemGroup Label="Build Items"> <Compile Include="..\..\..\Compilers\Shared\GlobalAssemblyCacheHelpers\GlobalAssemblyCacheLocation.cs"> <Link>InternalUtilities\GlobalAssemblyCache.cs</Link> </Compile> <Compile Include="..\..\..\Compilers\Core\Portable\FileKey.cs"> <Link>InternalUtilities\FileKey.cs</Link> </Compile> <Compile Include="..\..\..\Compilers\Core\Portable\InternalUtilities\ConcurrentLruCache.cs"> <Link>Shared\ConcurrentLruCache.cs</Link> </Compile> <Content Include="UnifiedSettings\roslynSettings.registration.json" IncludeInVSIX="true" CopyToOutputDirectory="PreserveNewest" /> <Compile Update="VSPackage.Designer.cs"> <AutoGen>True</AutoGen> <DesignTime>True</DesignTime> <DependentUpon>VSPackage.resx</DependentUpon> </Compile> </ItemGroup> <ItemGroup Label="Project References"> <ProjectReference Include="..\..\..\Compilers\Core\Portable\Microsoft.CodeAnalysis.csproj" /> <ProjectReference Include="..\..\..\EditorFeatures\Core\Microsoft.CodeAnalysis.EditorFeatures.csproj" /> <ProjectReference Include="..\..\..\LanguageServer\Protocol\Microsoft.CodeAnalysis.LanguageServer.Protocol.csproj" /> <ProjectReference Include="..\..\..\EditorFeatures\Text\Microsoft.CodeAnalysis.EditorFeatures.Text.csproj" /> <ProjectReference Include="..\..\..\Workspaces\Core\Portable\Microsoft.CodeAnalysis.Workspaces.csproj" /> <ProjectReference Include="..\..\..\Features\Core\Portable\Microsoft.CodeAnalysis.Features.csproj" /> <ProjectReference Include="..\..\..\Interactive\Host\Microsoft.CodeAnalysis.InteractiveHost.csproj" Aliases="InteractiveHost" /> </ItemGroup> <ItemGroup Label="File References"> <Reference Include="System.ComponentModel.Composition" /> </ItemGroup> <ItemGroup> <RestrictedInternalsVisibleTo Include="Microsoft.CodeAnalysis.LiveUnitTesting.BuildManager" Partner="UnitTesting" Key="$(UnitTestingKey)" /> <RestrictedInternalsVisibleTo Include="Microsoft.CodeAnalysis.LiveUnitTesting.BuildManager.Core" Partner="UnitTesting" Key="$(UnitTestingKey)" /> <RestrictedInternalsVisibleTo Include="Microsoft.CodeAnalysis.UnitTesting.SourceBasedTestDiscovery" Partner="UnitTesting" Key="$(UnitTestingKey)" /> <RestrictedInternalsVisibleTo Include="Microsoft.CodeAnalysis.UnitTesting.SourceBasedTestDiscovery.Core" Partner="UnitTesting" Key="$(UnitTestingKey)" /> <RestrictedInternalsVisibleTo Include="Microsoft.VisualStudio.IntelliCode.CSharp" Partner="Pythia" Key="$(IntelliCodeCSharpKey)" /> <RestrictedInternalsVisibleTo Include="Microsoft.VisualStudio.IntelliCode.CSharp.Extraction" Partner="Pythia" Key="$(IntelliCodeCSharpKey)" /> <InternalsVisibleTo Include="Microsoft.VisualStudio.LanguageServices.CSharp" /> <InternalsVisibleTo Include="Microsoft.VisualStudio.LanguageServices.Implementation" /> <InternalsVisibleTo Include="Microsoft.VisualStudio.LanguageServices.ExternalDependencyServices" WorkItem="https://github.com/dotnet/roslyn/issues/35085" /> <InternalsVisibleTo Include="Microsoft.VisualStudio.LanguageServices.Razor" Key="$(RazorKey)" /> <InternalsVisibleTo Include="Microsoft.VisualStudio.LanguageServices.VisualBasic" /> <InternalsVisibleTo Include="Microsoft.VisualStudio.LanguageServices.Xaml" /> <InternalsVisibleTo Include="Roslyn.VisualStudio.Setup" /> <InternalsVisibleTo Include="Roslyn.VisualStudio.DiagnosticsWindow" /> <InternalsVisibleTo Include="Microsoft.VisualStudio.ProjectSystem.Managed" WorkItem="https://github.com/dotnet/roslyn/issues/35070" /> <InternalsVisibleTo Include="Microsoft.VisualStudio.ProjectSystem.Managed.VS" WorkItem="https://github.com/dotnet/roslyn/issues/35070" /> <InternalsVisibleTo Include="Microsoft.VisualStudio.ProjectSystem.Managed.UnitTests" WorkItem="https://github.com/dotnet/roslyn/issues/35070" /> <InternalsVisibleTo Include="Microsoft.VisualStudio.ProjectSystem.Managed.VS.UnitTests" WorkItem="https://github.com/dotnet/roslyn/issues/35070" /> <InternalsVisibleTo Include="Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests" /> <InternalsVisibleTo Include="Microsoft.VisualStudio.LanguageServices.UnitTests" /> <InternalsVisibleTo Include="Microsoft.VisualStudio.LanguageServices.Test.Utilities2" /> <internalsVisibleTo Include="Microsoft.VisualStudio.LanguageServices.New.IntegrationTests" /> <InternalsVisibleTo Include="Microsoft.VisualStudio.ErrorList.UnitTests" WorkItem="https://github.com/dotnet/roslyn/issues/35081" /> <InternalsVisibleTo Include="Roslyn.VisualStudio.Next.UnitTests" /> <InternalsVisibleTo Include="Microsoft.CodeAnalysis.ExternalAccess.FSharp" /> <InternalsVisibleTo Include="Microsoft.VisualStudio.LanguageServices.ExternalAccess.UnitTests" /> <InternalsVisibleTo Include="Microsoft.VisualStudio.LanguageServices.LiveShare" /> <InternalsVisibleTo Include="Microsoft.VisualStudio.LanguageServices.ExternalAccess" /> <InternalsVisibleTo Include="Microsoft.VisualStudio.LanguageServices.ExternalAccess.Copilot" /> <InternalsVisibleTo Include="FSharp.Editor" Key="$(FSharpKey)" WorkItem="https://github.com/dotnet/roslyn/issues/35076" /> <InternalsVisibleTo Include="FSharp.LanguageService" Key="$(FSharpKey)" WorkItem="https://github.com/dotnet/roslyn/issues/35076" /> <InternalsVisibleTo Include="DynamicProxyGenAssembly2" Key="$(MoqPublicKey)" LoadsWithinVisualStudio="false" /> <InternalsVisibleTo Include="Microsoft.CodeAnalysis.TypeScript.EditorFeatures" Key="$(TypeScriptKey)" WorkItem="https://github.com/dotnet/roslyn/issues/35077" /> <InternalsVisibleTo Include="Microsoft.VisualStudio.LanguageServices.TypeScript" Key="$(TypeScriptKey)" WorkItem="https://github.com/dotnet/roslyn/issues/35077" /> <InternalsVisibleTo Include="Roslyn.Services.Editor.TypeScript.UnitTests" Key="$(TypeScriptKey)" WorkItem="https://github.com/dotnet/roslyn/issues/35077" /> <InternalsVisibleTo Include="IdeBenchmarks" /> <RestrictedInternalsVisibleTo Include="ManagedSourceCodeAnalysis" Key="$(TypeScriptKey)" Partner="LegacyCodeAnalysis" /> <RestrictedInternalsVisibleTo Include="CodeAnalysis" Key="$(TypeScriptKey)" Partner="LegacyCodeAnalysis" /> <RestrictedInternalsVisibleTo Include="StanCore" Key="$(TypeScriptKey)" Partner="LegacyCodeAnalysis" /> </ItemGroup> <ItemGroup> <Reference Include="System.Design" /> <Reference Include="System.IO.Compression" /> <Reference Include="UIAutomationProvider" /> <Reference Include="UIAutomationTypes" /> <Reference Include="WindowsFormsIntegration" /> <PackageReference Include="Microsoft.CodeAnalysis.Elfie" /> <PackageReference Include="Microsoft.Internal.Performance.CodeMarkers.DesignTime" /> <PackageReference Include="Microsoft.Internal.VisualStudio.Shell.Framework" /> <PackageReference Include="Microsoft.VisualStudio.Debugger.Engine-implementation" /> <PackageReference Include="Microsoft.VisualStudio.Sdk" /> <PackageReference Include="Microsoft.VisualStudio.Search" /> <PackageReference Include="Microsoft.VisualStudio.CallHierarchy.Package.Definitions" /> <PackageReference Include="Microsoft.VisualStudio.Language.CallHierarchy" /> <PackageReference Include="Microsoft.VisualStudio.VsInteractiveWindow" /> <PackageReference Include="Microsoft.VisualStudio.WinForms.Interfaces" /> <PackageReference Include="VsWebsite.Interop" /> <PackageReference Include="NuGet.VisualStudio" /> <PackageReference Include="NuGet.VisualStudio.Contracts" /> <!-- This is necessary because Microsoft.VisualStudio.LanguageServer.Client.Implementation has transitive dependencies on Microsoft.VisualStudio.Workspace. This package causes Namespace/Type collisions with Microsoft.CodeAnalysis.Workspace. We only reference ILanguageServiceBroker2 from here so the simplest fix is to reference the Microsoft.VisualStudio.LanguageServer.Client.Implementation dll directly. The fix for this is tracked internally by https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1542016 --> <PackageReference Include="Microsoft.VisualStudio.LanguageServer.Client.Implementation" ExcludeAssets="all" GeneratePathProperty="true" /> <Reference Include="$(PkgMicrosoft_VisualStudio_LanguageServer_Client_Implementation)\lib\net472\Microsoft.VisualStudio.LanguageServer.Client.Implementation.dll"> <Private>true</Private> </Reference> </ItemGroup> <ItemGroup> <EmbeddedResource Update="ServicesVSResources.resx" GenerateSource="true" /> <EmbeddedResource Update="VSPackage.resx"> <MergeWithCTO>true</MergeWithCTO> <ManifestResourceName>VSPackage</ManifestResourceName> <Generator>ResXFileCodeGenerator</Generator> <LastGenOutput>VSPackage.Designer.cs</LastGenOutput> </EmbeddedResource> </ItemGroup> <ItemGroup> <PublicAPI Include="PublicAPI.Shipped.txt" /> <PublicAPI Include="PublicAPI.Unshipped.txt" /> </ItemGroup> <ItemGroup> <VSCTCompile Include="Commands.vsct"> <ResourceName>Menus.ctmenu</ResourceName> <SubType>Designer</SubType> </VSCTCompile> </ItemGroup> <Import Project="$(RepositoryEngineeringDir)targets\Vsdconfig.targets" /> <Target Name="GeneratePkgDefServiceRegistrations" BeforeTargets="GeneratePkgDef"> <ItemGroup> <PkgDefBrokeredService Include="@(InProcService)" ProfferingPackageId="$(RoslynPackageGuid)" /> </ItemGroup> </Target> <Target Name="SetNuspecDependencyVersions" BeforeTargets="InitializeStandardNuspecProperties"> <ItemGroup> <NuspecProperty Include="@(PackageVersion->'MicrosoftCSharpVersion=%(Version)')" Condition="'%(Identity)' == 'Microsoft.CSharp'" /> <NuspecProperty Include="@(PackageVersion->'MicrosoftVisualStudioCompositionVersion=%(Version)')" Condition="'%(Identity)' == 'Microsoft.VisualStudio.Composition'" /> <NuspecProperty Include="@(PackageVersion->'SystemThreadingTasksDataflowVersion=%(Version)')" Condition="'%(Identity)' == 'System.Threading.Tasks.Dataflow'" /> </ItemGroup> </Target> </Project>