Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
8d6f03a
Move IElementLocation to Build
DustinCampbell Mar 11, 2026
5b2bca1
Move IKeyed to Build
DustinCampbell Mar 11, 2026
5177901
Move ReadOnlyEmptyCollection to Framework
DustinCampbell Mar 11, 2026
39dfacb
Move ReadOnlyCollection to Framework
DustinCampbell Mar 11, 2026
46de306
Move ReadOnlyEmptyDictionary to Framework
DustinCampbell Mar 11, 2026
50b207d
Move BufferedReadStream to Framework
DustinCampbell Mar 11, 2026
55d6512
Move CopyOnWriteDictionary to Framework
DustinCampbell Mar 11, 2026
ab4fef7
Move ConversionUtilities to Framework
DustinCampbell Mar 11, 2026
9fcecee
Move TaskFactoryUtilities to Framework
DustinCampbell Mar 11, 2026
84e4786
Move TranslatorHelpers to Framework
DustinCampbell Mar 11, 2026
84bb9c2
Move InterningBinaryReader to Framework
DustinCampbell Mar 11, 2026
49d6bd5
Don't compile shared files into Microsoft.Build.Engine.OM.UnitTests
DustinCampbell Mar 11, 2026
4ddb3e6
Move EncodingStringWriter to Build
DustinCampbell Mar 11, 2026
82bcee7
Move ProjectWriter to Build
DustinCampbell Mar 11, 2026
eaf0126
Move VersionUtilities to Framework
DustinCampbell Mar 11, 2026
5ecd5ca
Move StringUtils to Framework
DustinCampbell Mar 11, 2026
14d3b8b
Move MetadataConversionUtilities to Framework
DustinCampbell Mar 11, 2026
79e1c15
Move FileMatcher to Framework
DustinCampbell Mar 11, 2026
31a56e3
Move XmlUtilities to Build
DustinCampbell Mar 11, 2026
43b33dd
Move FileDelegates to Framework
DustinCampbell Mar 11, 2026
9ea1731
Move CollectionHelpers to Framework
DustinCampbell Mar 11, 2026
0b6e74b
Move ThreadPoolExtensions to Framework
DustinCampbell Mar 11, 2026
44bc01a
Delete XamlUtilities
DustinCampbell Mar 11, 2026
06e94b0
Move ProcessExtensions to Framework
DustinCampbell Mar 11, 2026
30baf1e
Move QuotingUtilities to Framework
DustinCampbell Mar 11, 2026
851dfcc
Move EventArgsFormatting to Framework
DustinCampbell Mar 11, 2026
a1ef8f5
Move SolutionConfiguration to Framework
DustinCampbell Mar 11, 2026
ba1486b
Move ToolsetElement to Build
DustinCampbell Mar 11, 2026
615f54c
Move StrongNameHelpers to Tasks
DustinCampbell Mar 11, 2026
51a91b4
Move AssemblyNameComparer and AssemblyNameExtension to Framework
DustinCampbell Mar 11, 2026
7974bc8
Move AssemblyNameReverseVersionComparer to Framework
DustinCampbell Mar 11, 2026
20935c4
Move AssemblyLoadInfo to Framework
DustinCampbell Mar 11, 2026
1e32446
Move AwaitExtensions to Build
DustinCampbell Mar 11, 2026
29741da
Move BuildEnvironmentHelper to Framework
DustinCampbell Mar 11, 2026
d3d34fe
Move TypeUtilities to Framework
DustinCampbell Mar 11, 2026
7caba83
Move ReflectableTaskPropertyInfo to Framework
DustinCampbell Mar 11, 2026
7d62c0f
Move LoadedType to Framework
DustinCampbell Mar 11, 2026
7b5fb45
Move MSBuildLoadContext to Framework
DustinCampbell Mar 11, 2026
8bbe879
Move CoreClrAssemblyLoader to Framework
DustinCampbell Mar 11, 2026
ee00133
Move FrameworkLocationHelper to Framework
DustinCampbell Mar 11, 2026
0117d61
Move CopyOnWriteDictionary_Tests to Framework.UnitTests
DustinCampbell Mar 11, 2026
416f888
Move FileMatcher_Tests to Framework.UnitTests
DustinCampbell Mar 11, 2026
89f0524
Move XmlUtilities_Tests to Build.UnitTests
DustinCampbell Mar 11, 2026
583612c
Merge branch 'main' into further-shared-file-work
DustinCampbell Mar 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\Shared\DebuggingSources.proj" />

<PropertyGroup>
<TargetFrameworks>$(RuntimeOutputTargetFrameworks)</TargetFrameworks>
<PlatformTarget>$(RuntimeOutputPlatformTarget)</PlatformTarget>
<IsPackable>false</IsPackable>

<AssemblyName>Microsoft.Build.Engine.OM.UnitTests</AssemblyName>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>

<DefineConstants>$(DefineConstants);MICROSOFT_BUILD_ENGINE_OM_UNITTESTS;NO_FRAMEWORK_IVT</DefineConstants>
</PropertyGroup>

<PropertyGroup>
Expand All @@ -36,15 +32,6 @@
<Compile Include="..\GlobalUsings.cs">
<Link>GlobalUsings.cs</Link>
</Compile>
<Compile Include="..\Shared\EncodingStringWriter.cs">
<Link>EncodingStringWriter.cs</Link>
</Compile>
<Compile Include="..\Shared\ErrorUtilities.cs" />
<Compile Include="..\Shared\FileDelegates.cs" />
<Compile Include="..\Shared\ResourceUtilities.cs" />
<Compile Include="..\Shared\BuildEnvironmentHelper.cs">
<Link>BuildEnvironmentHelper.cs</Link>
</Compile>
<None Include="..\Shared\UnitTests\App.config">
<Link>App.config</Link>
<SubType>Designer</SubType>
Expand All @@ -61,7 +48,7 @@
<ProjectReference Include="..\Tasks\Microsoft.Build.Tasks.csproj" />
<ProjectReference Include="..\Xunit.NetCore.Extensions\Xunit.NetCore.Extensions.csproj" />
<ProjectReference Include="..\UnitTests.Shared\Microsoft.Build.UnitTests.Shared.csproj" />
<PackageReference Include="Microsoft.VisualStudio.SolutionPersistence" PrivateAssets="all"/>
<PackageReference Include="Microsoft.VisualStudio.SolutionPersistence" PrivateAssets="all" />
</ItemGroup>

<ItemGroup>
Expand Down
7 changes: 1 addition & 6 deletions src/Build.UnitTests/BackEnd/SdkResolverLoader_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -426,12 +426,7 @@ public void LoadResolverAssembly_MSBuildSdkResolver_WithAndWithoutFallback(bool
if (string.IsNullOrEmpty(msBuildExePath))
{
// Use the executing assembly path as fallback
msBuildExePath = BuildEnvironmentHelper.ExecutingAssemblyPath;
// If that's also null/empty, use test assembly location
if (string.IsNullOrEmpty(msBuildExePath))
{
msBuildExePath = typeof(BuildEnvironmentHelper).Assembly.Location;
}
msBuildExePath = Path.GetFullPath(Assembly.GetExecutingAssembly().Location);
}

BuildEnvironmentHelper.ResetInstance_ForUnitTestsOnly(
Expand Down
2 changes: 1 addition & 1 deletion src/Build.UnitTests/BuildEnvironmentHelper_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class BuildEnvironmentHelper_Tests
[Fact]
public void GetExecutablePath()
{
var msbuildPath = Path.GetDirectoryName(BuildEnvironmentHelper.ExecutingAssemblyPath);
var msbuildPath = Path.GetDirectoryName(typeof(BuildEnvironmentHelper).GetAssemblyPath());
string expectedMSBuildPath = Path.Combine(msbuildPath, Constants.MSBuildExecutableName).ToLowerInvariant();

string configFilePath = BuildEnvironmentHelper.Instance.CurrentMSBuildConfigurationFile.ToLowerInvariant();
Expand Down
5 changes: 0 additions & 5 deletions src/Build.UnitTests/Microsoft.Build.Engine.UnitTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -67,23 +67,18 @@
<Compile Include="..\Shared\UnitTests\CommunicationUtilities_Tests.cs" />
<Compile Include="..\Shared\UnitTests\ErrorUtilities_Tests.cs" />
<Compile Include="..\Shared\UnitTests\PrintLineDebugger_Tests.cs" />
<Compile Include="..\Shared\UnitTests\FileMatcher_Tests.cs" />
<Compile Include="..\Shared\UnitTests\ResourceUtilities_Tests.cs" />
<Compile Include="..\Shared\UnitTests\TypeLoader_Tests.cs" />
<Compile Include="..\Shared\UnitTests\TypeLoader_Dependencies_Tests.cs" />
<Compile Include="..\Shared\UnitTests\XmakeAttributes_Tests.cs">
<Link>XmakeAttributes_Tests.cs</Link>
</Compile>
<Compile Include="..\Shared\UnitTests\XmlUtilities_Tests.cs" />
<Compile Include="..\Shared\UnitTests\AssemblyNameEx_Tests.cs">
<Link>AssemblyNameEx_Tests.cs</Link>
</Compile>
<Compile Include="..\Shared\UnitTests\TaskParameter_Tests.cs">
<Link>TaskParameter_Tests.cs</Link>
</Compile>
<Compile Include="..\Shared\UnitTests\CopyOnWriteDictionary_Tests.cs">
<Link>Collections\CopyOnWriteDictionary_Tests.cs</Link>
</Compile>
<Compile Include="..\GlobalUsings.cs" Link="GlobalUsings.cs" />

<None Include="..\Shared\UnitTests\App.config">
Expand Down
1 change: 1 addition & 0 deletions src/Build/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#endif
[assembly: InternalsVisibleTo("Microsoft.Build.Framework.UnitTests, PublicKey=002400000480000094000000060200000024000052534131000400000100010015c01ae1f50e8cc09ba9eac9147cf8fd9fce2cfe9f8dce4f7301c4132ca9fb50ce8cbf1df4dc18dd4d210e4345c744ecb3365ed327efdbc52603faa5e21daa11234c8c4a73e51f03bf192544581ebe107adee3a34928e39d04e524a9ce729d5090bfd7dad9d10c722c0def9ccc08ff0a03790e48bcd1f9b6c476063e1966a1c4")]
[assembly: InternalsVisibleTo("Microsoft.Build.Engine.UnitTests, PublicKey=002400000480000094000000060200000024000052534131000400000100010015c01ae1f50e8cc09ba9eac9147cf8fd9fce2cfe9f8dce4f7301c4132ca9fb50ce8cbf1df4dc18dd4d210e4345c744ecb3365ed327efdbc52603faa5e21daa11234c8c4a73e51f03bf192544581ebe107adee3a34928e39d04e524a9ce729d5090bfd7dad9d10c722c0def9ccc08ff0a03790e48bcd1f9b6c476063e1966a1c4")]
[assembly: InternalsVisibleTo("Microsoft.Build.Engine.OM.UnitTests, PublicKey=002400000480000094000000060200000024000052534131000400000100010015c01ae1f50e8cc09ba9eac9147cf8fd9fce2cfe9f8dce4f7301c4132ca9fb50ce8cbf1df4dc18dd4d210e4345c744ecb3365ed327efdbc52603faa5e21daa11234c8c4a73e51f03bf192544581ebe107adee3a34928e39d04e524a9ce729d5090bfd7dad9d10c722c0def9ccc08ff0a03790e48bcd1f9b6c476063e1966a1c4")]
[assembly: InternalsVisibleTo("Microsoft.Build.BuildCheck.UnitTests, PublicKey=002400000480000094000000060200000024000052534131000400000100010015c01ae1f50e8cc09ba9eac9147cf8fd9fce2cfe9f8dce4f7301c4132ca9fb50ce8cbf1df4dc18dd4d210e4345c744ecb3365ed327efdbc52603faa5e21daa11234c8c4a73e51f03bf192544581ebe107adee3a34928e39d04e524a9ce729d5090bfd7dad9d10c722c0def9ccc08ff0a03790e48bcd1f9b6c476063e1966a1c4")]
[assembly: InternalsVisibleTo("Microsoft.Build.UnitTests.Shared, PublicKey=002400000480000094000000060200000024000052534131000400000100010015c01ae1f50e8cc09ba9eac9147cf8fd9fce2cfe9f8dce4f7301c4132ca9fb50ce8cbf1df4dc18dd4d210e4345c744ecb3365ed327efdbc52603faa5e21daa11234c8c4a73e51f03bf192544581ebe107adee3a34928e39d04e524a9ce729d5090bfd7dad9d10c722c0def9ccc08ff0a03790e48bcd1f9b6c476063e1966a1c4")]
[assembly: InternalsVisibleTo("Microsoft.Build.UnitTests.Shared, PublicKey=002400000480000094000000060200000024000052534131000400000100010015c01ae1f50e8cc09ba9eac9147cf8fd9fce2cfe9f8dce4f7301c4132ca9fb50ce8cbf1df4dc18dd4d210e4345c744ecb3365ed327efdbc52603faa5e21daa11234c8c4a73e51f03bf192544581ebe107adee3a34928e39d04e524a9ce729d5090bfd7dad9d10c722c0def9ccc08ff0a03790e48bcd1f9b6c476063e1966a1c4")]
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/Build/Definition/ProjectCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ public static Version Version
// Use .CodeBase instead of .Location, because .Location doesn't
// work when Microsoft.Build.dll has been shadow-copied, for example
// in scenarios where NUnit is loading Microsoft.Build.
var versionInfo = FileVersionInfo.GetVersionInfo(BuildEnvironmentHelper.ExecutingAssemblyPath);
var versionInfo = FileVersionInfo.GetVersionInfo(typeof(ProjectCollection).GetAssemblyPath());
s_engineVersion = new Version(versionInfo.FileMajorPart, versionInfo.FileMinorPart, versionInfo.FileBuildPart, versionInfo.FilePrivatePart);
}

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@

using Microsoft.Build.BackEnd;

#nullable disable
namespace Microsoft.Build.Shared;

namespace Microsoft.Build.Shared
internal interface IElementLocation : IMSBuildElementLocation, ITranslatable
{
internal interface IElementLocation : IMSBuildElementLocation, ITranslatable { }
}
89 changes: 7 additions & 82 deletions src/Build/Microsoft.Build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -84,21 +84,6 @@
</ItemGroup>

<ItemGroup>
<Compile Include="..\Shared\BuildEnvironmentHelper.cs">
<Link>SharedUtilities\BuildEnvironmentHelper.cs</Link>
</Compile>
<Compile Include="..\Shared\EncodingStringWriter.cs">
<Link>SharedUtilities\EncodingStringWriter.cs</Link>
</Compile>
<Compile Include="..\Shared\AssemblyNameComparer.cs">
<Link>SharedUtilities\AssemblyNameComparer.cs</Link>
</Compile>
<Compile Include="..\Shared\AwaitExtensions.cs">
<Link>SharedUtilities\AwaitExtensions</Link>
</Compile>
<Compile Include="..\Shared\AssemblyNameReverseVersionComparer.cs">
<Link>SharedUtilities\AssemblyNameReverseVersionComparer.cs</Link>
</Compile>
<Compile Include="..\Shared\CanonicalError.cs">
<Link>BackEnd\Components\RequestBuilder\IntrinsicTasks\CanonicalError.cs</Link>
</Compile>
Expand All @@ -108,14 +93,6 @@
<Compile Include="..\Shared\StringExtensions.cs">
<Link>SharedUtilities\StringExtensions.cs</Link>
</Compile>
<Compile Include="..\Shared\StringUtils.cs">
<Link>SharedUtilities\StringUtils.cs</Link>
</Compile>
<Compile Include="..\Shared\ReadOnlyEmptyCollection.cs">
<Link>Collections\ReadOnlyEmptyCollection.cs</Link>
</Compile>
<Compile Include="..\Shared\BufferedReadStream.cs" />
<Compile Include="..\Shared\TaskFactoryUtilities.cs" />
<Compile Include="..\GlobalUsings.cs" Link="GlobalUsings.cs" />
<Compile Include="..\Shared\TaskHostConfiguration.cs" />
<Compile Include="..\Shared\TaskHostTaskCancelled.cs" />
Expand All @@ -128,7 +105,6 @@
<Compile Include="..\Shared\OutOfProcTaskHostTaskResult.cs" />
<Compile Include="..\Shared\TaskLoader.cs" />
<Compile Include="..\Shared\NodeEngineShutdownReason.cs" />
<Compile Include="..\Shared\IKeyed.cs" />
<Compile Include="..\Shared\INodeEndpoint.cs" />
<Compile Include="..\Shared\NodeEndpointOutOfProcBase.cs" />
<Compile Include="..\Shared\INodePacket.cs" />
Expand All @@ -139,11 +115,9 @@
<Compile Include="..\Shared\NodeBuildComplete.cs" />
<Compile Include="..\Shared\NodeShutdown.cs" />
<Compile Include="..\Shared\NamedPipeUtil.cs" />
<Compile Include="..\Shared\ProcessExtensions.cs" />
<Compile Include="..\Shared\PlatformNegotiation.cs">
<Link>PlatformNegotiation.cs</Link>
</Compile>
<Compile Include="..\Shared\SolutionConfiguration.cs" />
<Compile Include="..\Shared\TaskLoggingHelper.cs">
<Link>BackEnd\Components\RequestBuilder\IntrinsicTasks\TaskLoggingHelper.cs</Link>
</Compile>
Expand All @@ -152,11 +126,8 @@
</Compile>
<Compile Include="..\Shared\TaskParameter.cs" />
<Compile Include="..\Shared\TaskParameterTypeVerifier.cs" />
<Compile Include="..\Shared\TranslatorHelpers.cs" />
<Compile Include="..\Shared\CommunicationsUtilities.cs" />
<Compile Include="..\Shared\InterningBinaryReader.cs" />
<Compile Include="..\Shared\TaskEngineAssemblyResolver.cs" />
<Compile Include="..\Shared\ThreadPoolExtensions.cs" />
<Compile Include="AssemblyInfo.cs" />
<Compile Include="BackEnd\BuildManager\BuildManager.cs" />
<Compile Include="BackEnd\BuildManager\BuildParameters.cs" />
Expand Down Expand Up @@ -192,23 +163,29 @@
<Compile Include="FileSystem\*.cs" />
<Compile Include="BackEnd\Shared\BuildResultBase.cs" />
<Compile Include="BuildCheck\**\*.cs" />
<Compile Include="Collections\IKeyed.cs" />
<Compile Include="Collections\IValueDictionaryConverter.cs" />
<Compile Include="Collections\RetrievableEntryHashSet\IRetrievableUnescapedValuedEntryHashSet.cs" />
<Compile Include="Evaluation\IItemTypeDefinition.cs" />
<Compile Include="Evaluation\PropertiesUseTracker.cs" />
<Compile Include="Evaluation\ToolsetElement.cs" />
<Compile Include="FileAccess\DesiredAccess.cs" />
<Compile Include="FileAccess\FileAccessData.cs" />
<Compile Include="FileAccess\FlagsAndAttributes.cs" />
<Compile Include="FileAccess\ProcessData.cs" />
<Compile Include="FileAccess\ReportedFileOperation.cs" />
<Compile Include="FileAccess\RequestedAccess.cs" />
<Compile Include="IElementLocation.cs" />
<Compile Include="Instance\IPropertyElementWithLocation.cs" />
<Compile Include="Logging\BuildEventArgsExtensions.cs" />
<Compile Include="Logging\TerminalLogger\**\*.cs" />
<Compile Include="Logging\ReusableLogger.cs" />
<Compile Include="TelemetryInfra\InternalTelemetryConsumingLogger.cs" />
<Compile Include="TelemetryInfra\ITelemetryForwarder.cs" />
<Compile Include="TelemetryInfra\TelemetryForwarderProvider.cs" />
<Compile Include="Utilities\AwaitExtensions.cs" />
<Compile Include="Utilities\EncodingStringWriter.cs" />
<Compile Include="Utilities\ProjectWriter.cs" />
<Compile Include="Utilities\ReaderWriterLockSlimExtensions.cs" />
<Compile Include="BackEnd\Node\ConsoleOutput.cs" />
<Compile Include="BackEnd\Node\PartialBuildTelemetry.cs" />
Expand Down Expand Up @@ -403,15 +380,11 @@
<Compile Include="BackEnd\TaskExecutionHost\MultiProcessTaskEnvironmentDriver.cs" />
<Compile Include="BackEnd\TaskExecutionHost\MultiThreadedTaskEnvironmentDriver.cs" />
<!-- #### COLLECTIONS ### -->
<Compile Include="..\Shared\CollectionHelpers.cs" />
<Compile Include="Collections\ArrayDictionary.cs" />
<Compile Include="Collections\ConcurrentQueueExtensions.cs" />
<Compile Include="Collections\ConcurrentStackExtensions.cs" />
<Compile Include="Collections\ConvertingEnumerable.cs" />
<Compile Include="Collections\CopyOnReadEnumerable.cs" />
<Compile Include="..\Shared\CopyOnWriteDictionary.cs">
<Link>Collections\CopyOnWriteDictionary.cs</Link>
</Compile>
<Compile Include="Collections\CopyOnWritePropertyDictionary.cs" />
<Compile Include="Collections\HashTableUtility.cs" />
<Compile Include="Collections\IConstrainableDictionary.cs" />
Expand All @@ -425,7 +398,6 @@
<Compile Include="Collections\IValued.cs" />
<Compile Include="Collections\LookasideStringInterner.cs" />
<Compile Include="Collections\PropertyDictionary.cs" />
<Compile Include="..\Shared\ReadOnlyCollection.cs" />
<Compile Include="Collections\ReadOnlyConvertingDictionary.cs" />
<Compile Include="Collections\RetrievableEntryHashSet\BitHelper.cs" />
<Compile Include="Collections\RetrievableEntryHashSet\HashSetDebugView.cs" />
Expand Down Expand Up @@ -476,7 +448,6 @@
<Compile Include="Definition\SubToolset.cs" />
<Compile Include="Definition\Toolset.cs" />
<Compile Include="Definition\ToolsetConfigurationReader.cs" />
<Compile Include="..\Shared\ToolsetElement.cs" />
<Compile Include="Definition\ToolsetPropertyDefinition.cs" />
<Compile Include="Definition\ToolsetReader.cs" />
<Compile Include="Definition\ToolsetRegistryReader.cs" />
Expand Down Expand Up @@ -557,7 +528,6 @@
<Compile Include="Instance\ImmutableProjectCollections\ImmutableProjectMetadataCollectionConverter.cs" />
<Compile Include="Instance\ImmutableProjectCollections\ImmutableProjectPropertyCollectionConverter.cs" />
<Compile Include="Instance\ImmutableProjectCollections\LazyStringValuedList.cs" />
<Compile Include="Instance\ReflectableTaskPropertyInfo.cs" />
<Compile Include="Instance\HostServices.cs" />
<Compile Include="Instance\ProjectTargetInstanceChild.cs" />
<Compile Include="Instance\ProjectTaskInstanceChild.cs" />
Expand Down Expand Up @@ -631,51 +601,16 @@
<Compile Include="Utilities\RegistryKeyWrapper.cs" />
<Compile Include="Utilities\Utilities.cs" />
<Compile Include="Utilities\SimpleVersion.cs" />
<Compile Include="Utilities\XmlUtilities.cs" />
<Compile Include="Xml\ProjectXmlUtilities.XmlElementChildIterator.cs" />
<Compile Include="Xml\ProjectXmlUtilities.cs" />
<Compile Include="Xml\XmlReaderExtension.cs" />
<Compile Include="..\Shared\AssemblyLoadInfo.cs">
<Link>SharedUtilities\AssemblyLoadInfo.cs</Link>
</Compile>
<Compile Include="..\Shared\ReadOnlyEmptyDictionary.cs">
<Link>SharedUtilities\ReadOnlyEmptyDictionary.cs</Link>
</Compile>
<Compile Include="..\Shared\AssemblyNameExtension.cs">
<Link>SharedUtilities\AssemblyNameExtension.cs</Link>
</Compile>
<Compile Include="..\Shared\BuildEventFileInfo.cs">
<Link>SharedUtilities\BuildEventFileInfo.cs</Link>
</Compile>
<Compile Include="..\Shared\ConversionUtilities.cs">
<Link>SharedUtilities\ConversionUtilities.cs</Link>
</Compile>
<Compile Include="..\Shared\FileDelegates.cs">
<Link>SharedUtilities\FileDelegates.cs</Link>
</Compile>
<Compile Include="..\Shared\ErrorUtilities.cs">
<Link>Errors\ErrorUtilities.cs</Link>
</Compile>
<Compile Include="..\Shared\VersionUtilities.cs">
<Link>SharedUtilities\VersionUtilities.cs</Link>
</Compile>
<Compile Include="..\Shared\EventArgsFormatting.cs">
<Link>SharedUtilities\EventArgsFormatting.cs</Link>
</Compile>
<Compile Include="..\Shared\FileMatcher.cs">
<Link>SharedUtilities\FileMatcher.cs</Link>
</Compile>
<Compile Include="..\Shared\FrameworkLocationHelper.cs">
<Link>SharedUtilities\FrameworkLocationHelper.cs</Link>
</Compile>
<Compile Include="..\Shared\IElementLocation.cs">
<Link>SharedUtilities\IElementLocation.cs</Link>
</Compile>
<Compile Include="..\Shared\LoadedType.cs">
<Link>SharedUtilities\LoadedType.cs</Link>
</Compile>
<Compile Include="..\Shared\TypeUtilities.cs">
<Link>SharedUtilities\TypeUtilities.cs</Link>
</Compile>
<Compile Include="..\Shared\InprocTrackingNativeMethods.cs">
<Link>InprocTrackingNativeMethods.cs</Link>
</Compile>
Expand All @@ -685,20 +620,13 @@
<Compile Include="..\Shared\ProjectFileErrorUtilities.cs">
<Link>Errors\ProjectFileErrorUtilities.cs</Link>
</Compile>
<Compile Include="..\Shared\ProjectWriter.cs">
<Link>SharedUtilities\ProjectWriter.cs</Link>
</Compile>
<Compile Include="..\Shared\ResourceUtilities.cs">
<Link>SharedUtilities\ResourceUtilities.cs</Link>
</Compile>
<Compile Include="..\Shared\Tracing.cs" />
<Compile Include="..\Shared\CoreCLRAssemblyLoader.cs" Condition="'$(TargetFrameworkIdentifier)'!='.NETFramework'" />
<Compile Include="..\Shared\TypeLoader.cs">
<Link>SharedUtilities\TypeLoader.cs</Link>
</Compile>
<Compile Include="..\Shared\MSBuildLoadContext.cs" Condition="'$(TargetFrameworkIdentifier)'!='.NETFramework'">
<Link>SharedUtilities\MSBuildLoadContext.cs</Link>
</Compile>
<Compile Include="..\Shared\VisualStudioConstants.cs">
<Link>VisualStudioConstants.cs</Link>
</Compile>
Expand All @@ -708,9 +636,6 @@
<Compile Include="..\Shared\XMakeElements.cs">
<Link>Resources\XMakeElements.cs</Link>
</Compile>
<Compile Include="..\Shared\XmlUtilities.cs">
<Link>SharedUtilities\XmlUtilities.cs</Link>
</Compile>
<Compile Include="Evaluation\LazyItemEvaluator.EvaluatorData.cs" />

<!-- Win32 RC Files -->
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 1 addition & 2 deletions src/Framework.UnitTests/FileUtilities_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -938,8 +938,7 @@ public void RelativePathMaybeAdjustFilePathWithBaseDirectory()
}
}

private static string SystemSpecificAbsolutePath => BuildEnvironmentHelper.ExecutingAssemblyPath;

private static string SystemSpecificAbsolutePath => typeof(BuildEnvironmentHelper).GetAssemblyPath();

[Fact]
public void GetFolderAboveTest()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@
using System.IO;
using System.IO.Pipes;
using System.Threading;

#if NET451_OR_GREATER || NETCOREAPP
using System.Threading.Tasks;
#endif


namespace Microsoft.Build.BackEnd
{
Expand Down Expand Up @@ -125,7 +121,6 @@ public override int Read(byte[] buffer, int offset, int count)
}
}

#if NET451_OR_GREATER || NETCOREAPP
public override async Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
{
if (count > BUFFER_SIZE)
Expand Down Expand Up @@ -179,7 +174,6 @@ int CopyToBuffer(byte[] buffer, int offset)
return alreadyCopied;
}
}
#endif

public override long Seek(long offset, SeekOrigin origin)
{
Expand Down
Loading