-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[release/9.0] [browser] Fix processing of satellite assemblies from r…
…eferenced assembly during publish (#107398) * Fix related asset computation for satellites from reference (not projectReference) where ResolvedFrom contains {RawFileName} * WBT * Don't remove files with DestinationSubDirectory from ResolvedFileToPublish because they can be resource assemblies from References * Feedback * Fix condition * We can't check for RawFileName, because ProjectReference satellites goes through the same path and are not discovered by nested publish * Comment about "{RawFileName}" * Explicitly set ResolveAssemblyReferencesFindRelatedSatellites=true for nested publish --------- Co-authored-by: Marek Fišera <mara@neptuo.com> Co-authored-by: Larry Ewing <lewing@microsoft.com> Co-authored-by: Jeff Schwartz <jeffschw@microsoft.com>
- Loading branch information
1 parent
73229ad
commit 24cd94c
Showing
10 changed files
with
81 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/mono/wasm/testassets/WasmBasicTestApp/ResourceLibrary/ResourceAccessor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using System; | ||
using System.Globalization; | ||
using System.Threading.Tasks; | ||
using System.Resources; | ||
|
||
namespace ResourceLibrary; | ||
|
||
public static class ResourceAccessor | ||
{ | ||
public static void Read(Action<string> testOuput, bool hasSatellites) | ||
{ | ||
var rm = new ResourceManager("ResourceLibrary.words", typeof(ResourceAccessor).Assembly); | ||
testOuput($"default: {rm.GetString("hello", CultureInfo.CurrentCulture)}"); | ||
testOuput($"es-ES {(hasSatellites ? "with" : "without")} satellite: {rm.GetString("hello", new CultureInfo("es-ES"))}"); | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/mono/wasm/testassets/WasmBasicTestApp/ResourceLibrary/ResourceLibrary.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>net9.0</TargetFramework> | ||
<OutputType>Library</OutputType> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
</PropertyGroup> | ||
</Project> |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters