2 writes to Assets
Microsoft.NET.Sdk.StaticWebAssets.Tasks (2)
DefineStaticWebAssets.cs (2)
86Assets = [.. outputs.Assets]; 309Assets = [.. outputs.Assets];
37 references to Assets
Microsoft.NET.Sdk.StaticWebAssets.Tests (37)
StaticWebAssets\DiscoverStaticWebAssetsTest.cs (37)
46task.Assets.Length.Should().Be(1); 47var asset = task.Assets[0]; 100task.Assets.Length.Should().Be(1); 101var asset = task.Assets[0]; 150task.Assets.Length.Should().Be(1); 151var asset = task.Assets[0]; 201task.Assets.Length.Should().Be(1); 202var asset = task.Assets[0]; 270task.Assets.Length.Should().Be(1); 271var asset = task.Assets[0]; 311task.Assets.Length.Should().Be(1); 312var asset = task.Assets[0]; 358task.Assets.Length.Should().Be(1); 359var asset = task.Assets[0]; 405task.Assets.Length.Should().Be(1); 406var asset = task.Assets[0]; 453task.Assets.Length.Should().Be(2); 454var buildAsset = task.Assets.Single(a => a.ItemSpec == Path.GetFullPath(Path.Combine("wwwroot", "candidate.js"))); 455var publishAsset = task.Assets.Single(a => a.ItemSpec == Path.GetFullPath(Path.Combine("wwwroot", "candidate.publish.js"))); 561task.Assets.Length.Should().Be(1); 562var asset = task.Assets[0]; 615task.Assets.Length.Should().Be(1); 616var asset = task.Assets[0]; 788task.Assets.Length.Should().Be(2); 789task.Assets[0].GetMetadata(nameof(StaticWebAsset.RelativePath)).Should().Be("Microsoft.AspNetCore.Components.CustomElements.lib.module.js"); 790task.Assets[0].GetMetadata(nameof(StaticWebAsset.BasePath)).Should().Be("_content/Microsoft.AspNetCore.Components.CustomElements"); 791task.Assets[1].GetMetadata(nameof(StaticWebAsset.RelativePath)).Should().Be("Microsoft.AspNetCore.Components.CustomElements.lib.module.js.map"); 792task.Assets[1].GetMetadata(nameof(StaticWebAsset.BasePath)).Should().Be("_content/Microsoft.AspNetCore.Components.CustomElements"); 828task.Assets.Length.Should().Be(2); 829task.Assets[0].GetMetadata(nameof(StaticWebAsset.RelativePath)).Should().Be("Microsoft.AspNetCore.Components.CustomElements.lib.module.js"); 830task.Assets[0].GetMetadata(nameof(StaticWebAsset.BasePath)).Should().Be("_content/Microsoft.AspNetCore.Components.CustomElements"); 831task.Assets[1].GetMetadata(nameof(StaticWebAsset.RelativePath)).Should().Be("Microsoft.AspNetCore.Components.CustomElements.lib.module.js.map"); 832task.Assets[1].GetMetadata(nameof(StaticWebAsset.BasePath)).Should().Be("_content/Microsoft.AspNetCore.Components.CustomElements"); 865task.Assets.Length.Should().Be(1); 866task.Assets[0].GetMetadata(nameof(StaticWebAsset.RelativePath)).Should().Be("Components/Dropdown/Dropdown.razor.js"); 867task.Assets[0].GetMetadata(nameof(StaticWebAsset.BasePath)).Should().Be("_content/Project"); 868task.Assets[0].GetMetadata(nameof(StaticWebAsset.ContentRoot)).Should().Be("/home/user/work/Repo/Project/");