Skip to content

Commit

Permalink
[release/9.0.2xx] Workaround for issue 40015: nuget restore uses 'res…
Browse files Browse the repository at this point in the history
…ource' instead of 'resources' (#45115)
  • Loading branch information
marcpopMSFT authored Dec 19, 2024
2 parents 20ac0a6 + 436d2aa commit 9d8b465
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Tasks/Microsoft.NET.Build.Tasks/ResolvedFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ public ResolvedFile(ITaskItem item, bool isRuntimeTarget)
{
Asset = AssetType.Resources;
}
// Workaround for issue 40015: nuget restore uses 'resource' instead of 'resources'
else if (assetType.Equals("resource", StringComparison.OrdinalIgnoreCase))
{
Asset = AssetType.Resources;
}
else
{
throw new InvalidOperationException($"Unrecognized AssetType '{assetType}' for {SourcePath}");
Expand Down

0 comments on commit 9d8b465

Please sign in to comment.