Skip to content

Merging resources #11514

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
23 changes: 0 additions & 23 deletions src/Build.OM.UnitTests/AssemblyResources.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@
<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>
Expand Down
10 changes: 9 additions & 1 deletion src/Build/Globbing/MSBuildGlob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

using System;
using System.IO;
using System.Reflection.Metadata;
using System.Text.RegularExpressions;
using Microsoft.Build.Collections;
using Microsoft.Build.Shared;
Expand Down Expand Up @@ -170,7 +171,14 @@ public static MSBuildGlob Parse(string globRoot, string fileSpec)
{
ErrorUtilities.VerifyThrowArgumentNull(globRoot);
ErrorUtilities.VerifyThrowArgumentNull(fileSpec);
ErrorUtilities.VerifyThrowArgumentInvalidPath(globRoot, nameof(globRoot));

// ErrorUtilities.VerifyThrowArgumentInvalidPath was removed to decouple ErrorUtilities and FileUtilities
// This was the only call to ErrorUtilities.VerifyThrowArgumentInvalidPath in the entire codebase
// Original code: ErrorUtilities.VerifyThrowArgumentInvalidPath(globRoot, nameof(globRoot));
if (FileUtilities.PathIsInvalid(globRoot))
{
ErrorUtilities.ThrowArgument("Shared.ParameterCannotHaveInvalidPathChars", nameof(globRoot), globRoot);
}

if (string.IsNullOrEmpty(globRoot))
{
Expand Down
16 changes: 0 additions & 16 deletions src/Build/Microsoft.Build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,6 @@
<Compile Include="ObjectModelRemoting\ConstructionObjectLinks\ProjectTargetElementLink.cs" />
<Compile Include="ObjectModelRemoting\ConstructionObjectLinks\ProjectTaskElementLink.cs" />
<Compile Include="ObjectModelRemoting\ConstructionObjectLinks\ProjectUsingTaskBodyElementLink.cs" />
<Compile Include="Resources\AssemblyResources.cs" />
<Compile Include="Resources\Constants.cs" />
<Compile Include="Resources\MSBuildAssemblyFileVersion.cs" />
<!-- ######################## -->
Expand Down Expand Up @@ -616,9 +615,6 @@
<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\EscapingUtilities.cs">
<Link>SharedUtilities\EscapingUtilities.cs</Link>
</Compile>
Expand Down Expand Up @@ -663,9 +659,6 @@
<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">
Expand All @@ -691,15 +684,6 @@
<!-- Win32 RC Files -->
<RCResourceFile Include="native.rc" />
<!-- Resource Files -->
<EmbeddedResource Include="Resources\Strings.resx">
<LogicalName>$(AssemblyName).Strings.resources</LogicalName>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="..\Shared\Resources\Strings.shared.resx">
<Link>Resources\Strings.shared.resx</Link>
<SubType>Designer</SubType>
<LogicalName>$(AssemblyName).Strings.shared.resources</LogicalName>
</EmbeddedResource>
</ItemGroup>

<PropertyGroup>
Expand Down
122 changes: 0 additions & 122 deletions src/Build/Resources/AssemblyResources.cs

This file was deleted.

Loading
Loading