/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Compilers/Core/SdkTaskTests/SdkManagedToolTests.cs
44 строки
1 KB
Jan Jones
Fall back to `dotnet exec` if apphost does not exist (#80153)
11 сен 2025, 10:04
Не верифицирован
11 сен 2025, 10:04
984aa24
Код
Авторство
О чём код?
// 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. using System.IO; using Xunit; using Xunit.Abstractions; namespace Microsoft.CodeAnalysis.BuildTasks.Sdk.UnitTests; public sealed class SdkManagedToolTests { public ITestOutputHelper TestOutputHelper { get; } public SdkManagedToolTests(ITestOutputHelper testOutputHelper) { TestOutputHelper = testOutputHelper; } [Fact] public void PathToBuiltinTool() { var taskPath = Path.GetDirectoryName(typeof(ManagedCompiler).Assembly.Location)!; var task = new Csc(); Assert.Contains(task.PathToBuiltInTool, new[] { Path.Combine(taskPath, "..", "bincore", "csc.dll"), Path.Combine(taskPath, "..", "bincore", "csc.exe"), }); } [Fact] public void IsSdkFrameworkToCoreBridgeTask() { Assert.True(ManagedToolTask.IsSdkFrameworkToCoreBridgeTask); } [Fact] public void IsBuiltinToolRunningOnCoreClr() { Assert.True(ManagedToolTask.IsBuiltinToolRunningOnCoreClr); } }