/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Tools/IdeCoreBenchmarks/IdeCoreBenchmarks.csproj
102 строки
7 KB
dotnet-maestro[bot]
[main] Update dependencies from dotnet/arcade (#84740)
07 авг 2026, 21:43
Не верифицирован
07 авг 2026, 21:43
4cfd9ff
Код
Авторство
О чём код?
<?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"> <Import Project="$(RepositoryEngineeringDir)targets\GenerateCompilerExecutableBindingRedirects.targets" /> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFrameworks>$(NetRoslyn);net472</TargetFrameworks> <IsShipping>false</IsShipping> <LangVersion>11</LangVersion> <ProduceReferenceAssembly>False</ProduceReferenceAssembly> <NoWarn>$(NoWarn);NETSDK1206</NoWarn> <!-- This project is not a test project in context of how this repo views test projects. Marking it as such will change TFMs, bring in additional targets, and generally fail to build. However, it is a 'test' type project and depends on other test utility projects that may be built in every build invocation. For instance, when building officially in the VMR, test and test utility projects are excluded. So, when test projects are excluded, exclude this benchmark project. See https://github.com/dotnet/arcade/blob/main/Documentation/UnifiedBuild/Unified-Build-Controls.md for information on controls. --> <ExcludeFromDotNetBuild Condition="'$(DotNetBuildTests)' != 'true'">true</ExcludeFromDotNetBuild> <ExcludeFromBuild Condition="'$(DotNetBuildTests)' == 'false'">true</ExcludeFromBuild> </PropertyGroup> <!-- The VS DiagnosticsHub adapter requires BenchmarkDotNet 0.15.x, which does not recognize a .NET 11 host. Imports.targets assigns the shared major-roll-forward template after this project is evaluated, so override it just before generation. --> <Target Name="UseIdeCoreBenchmarksRuntimeConfig" BeforeTargets="_GenerateRuntimeConfigurationFilesInputCache" Condition="'$(TargetFramework)' == '$(NetRoslyn)'"> <PropertyGroup> <UserRuntimeConfig></UserRuntimeConfig> <RollForward>LatestPatch</RollForward> </PropertyGroup> </Target> <ItemGroup> <!-- Keep these overrides aligned with the BenchmarkDotNet 0.15 dependency of the VS DiagnosticsHub adapter. --> <PackageReference Include="BenchmarkDotNet" VersionOverride="0.15.8" /> <PackageReference Include="BenchmarkDotNet.Diagnostics.Windows" VersionOverride="0.15.8" /> <PackageReference Include="Microsoft.VisualStudio.DiagnosticsHub.BenchmarkDotNetDiagnosers" /> <PackageReference Include="Microsoft.VisualStudio.Cache" /> </ItemGroup> <ItemGroup> <!-- BenchmarkDotNet generates runner projects beneath TargetDir. Give those projects a local package policy so central transitive pinning does not replace this project's BenchmarkDotNet 0.15 override with 0.16. --> <None Include="BenchmarkDotNet.Directory.Packages.props" CopyToOutputDirectory="PreserveNewest" TargetPath="Directory.Packages.props" /> </ItemGroup> <ItemGroup Condition="'$(TargetFramework)' == 'net472'"> <!-- Exclude the Index and Range implementations since we inherit ones from M.CA.Workspace --> <PackageReference Include="Microsoft.Bcl.Memory" ExcludeAssets="compile" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\..\Compilers\Core\Portable\Microsoft.CodeAnalysis.csproj" /> <ProjectReference Include="..\..\Compilers\CSharp\Portable\Microsoft.CodeAnalysis.CSharp.csproj" /> <ProjectReference Include="..\..\Compilers\VisualBasic\Portable\Microsoft.CodeAnalysis.VisualBasic.vbproj" /> <ProjectReference Include="..\..\LanguageServer\Protocol\Microsoft.CodeAnalysis.LanguageServer.Protocol.csproj" /> <ProjectReference Include="..\..\Scripting\Core\Microsoft.CodeAnalysis.Scripting.csproj" /> <ProjectReference Include="..\..\Workspaces\Core\Portable\Microsoft.CodeAnalysis.Workspaces.csproj" /> <ProjectReference Include="..\..\Workspaces\MSBuild\Core\Microsoft.CodeAnalysis.Workspaces.MSBuild.csproj" /> <!-- Workspaces.MSBuild embeds Contracts privately (it's not a transitive reference), so reference it directly to deploy it next to MSBuildWorkspace at runtime. An extern alias prevents ambiguity between shared projects linked to both Workspace and BuildHost. --> <ProjectReference Include="..\..\Workspaces\MSBuild\Contracts\Microsoft.CodeAnalysis.Workspaces.MSBuild.Contracts.csproj" Aliases="Contracts" /> <ProjectReference Include="..\..\Workspaces\CSharp\Portable\Microsoft.CodeAnalysis.CSharp.Workspaces.csproj" /> <ProjectReference Include="..\..\Workspaces\VisualBasic\Portable\Microsoft.CodeAnalysis.VisualBasic.Workspaces.vbproj" /> <ProjectReference Include="..\..\Features\Core\Portable\Microsoft.CodeAnalysis.Features.csproj" /> <ProjectReference Include="..\..\EditorFeatures\Text\Microsoft.CodeAnalysis.EditorFeatures.Text.csproj" /> <ProjectReference Include="..\..\Compilers\Test\Resources\Core\Microsoft.CodeAnalysis.Compiler.Test.Resources.csproj" /> <ProjectReference Include="..\..\Compilers\Test\Utilities\CSharp\Microsoft.CodeAnalysis.CSharp.Test.Utilities.csproj" /> <ProjectReference Include="..\..\Test\PdbUtilities\Roslyn.Test.PdbUtilities.csproj" /> <ProjectReference Include="..\..\Compilers\Test\Core\Microsoft.CodeAnalysis.Test.Utilities.csproj" /> <ProjectReference Include="..\..\Features\CSharp\Portable\Microsoft.CodeAnalysis.CSharp.Features.csproj" /> <ProjectReference Include="..\..\Features\VisualBasic\Portable\Microsoft.CodeAnalysis.VisualBasic.Features.vbproj" /> <ProjectReference Include="..\AnalyzerRunner\AnalyzerRunner.csproj" /> </ItemGroup> <ItemGroup Condition="'$(TargetFramework)' == '$(NetRoslyn)'"> <ProjectReference Include="..\..\LanguageServer\Microsoft.CodeAnalysis.LanguageServer.UnitTests\Microsoft.CodeAnalysis.LanguageServer.UnitTests.csproj" /> <ProjectReference Include="..\..\LanguageServer\Protocol.TestUtilities\Microsoft.CodeAnalysis.LanguageServer.Protocol.Test.Utilities.csproj" /> </ItemGroup> <ItemGroup Condition="'$(TargetFramework)' == 'net472'"> <Compile Remove="LanguageServer\**\*.cs" /> </ItemGroup> <ItemGroup Condition="'$(TargetFramework)' == 'net472'"> <!-- These aren't used by the build, but it allows the tool to locate dependencies of the built-in analyzers. --> <ProjectReference Include="..\..\EditorFeatures\Core\Microsoft.CodeAnalysis.EditorFeatures.csproj" /> <ProjectReference Include="..\..\EditorFeatures\CSharp\Microsoft.CodeAnalysis.CSharp.EditorFeatures.csproj" /> <ProjectReference Include="..\..\EditorFeatures\VisualBasic\Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.vbproj" /> </ItemGroup> <!-- Microsoft.CodeAnalysis.LanguageServer only targets .NET, so its assets reader is linked in (rather than referenced) and benchmarked on .NET only. ProjectAssetsReaderBenchmarks.cs is guarded to match. The Using items mirror the global usings the linked file relies on in its own project. --> <ItemGroup Condition="'$(TargetFramework)' != 'net472'"> <PackageReference Include="NuGet.ProjectModel" /> <Compile Include="..\..\LanguageServer\Microsoft.CodeAnalysis.LanguageServer\HostWorkspace\ProjectAssetsReader.cs" Link="Lsp\ProjectAssetsReader.cs" /> <Using Include="System" /> <Using Include="System.IO" /> <Using Include="Roslyn.Utilities" /> </ItemGroup> </Project>