2 writes to Assets
Microsoft.NET.Sdk.StaticWebAssets.Tasks (2)
DefineStaticWebAssets.cs (2)
86
Assets
= [.. outputs.Assets];
296
Assets
= [.. outputs.Assets];
35 references to Assets
Microsoft.NET.Sdk.StaticWebAssets.Tests (35)
StaticWebAssets\DiscoverStaticWebAssetsTest.cs (35)
46
task.
Assets
.Length.Should().Be(1);
47
var asset = task.
Assets
[0];
100
task.
Assets
.Length.Should().Be(1);
101
var asset = task.
Assets
[0];
150
task.
Assets
.Length.Should().Be(1);
151
var asset = task.
Assets
[0];
201
task.
Assets
.Length.Should().Be(1);
202
var asset = task.
Assets
[0];
248
task.
Assets
.Length.Should().Be(1);
249
var asset = task.
Assets
[0];
295
task.
Assets
.Length.Should().Be(1);
296
var asset = task.
Assets
[0];
342
task.
Assets
.Length.Should().Be(1);
343
var asset = task.
Assets
[0];
390
task.
Assets
.Length.Should().Be(2);
391
var buildAsset = task.
Assets
.Single(a => a.ItemSpec == Path.GetFullPath(Path.Combine("wwwroot", "candidate.js")));
392
var publishAsset = task.
Assets
.Single(a => a.ItemSpec == Path.GetFullPath(Path.Combine("wwwroot", "candidate.publish.js")));
498
task.
Assets
.Length.Should().Be(1);
499
var asset = task.
Assets
[0];
552
task.
Assets
.Length.Should().Be(1);
553
var asset = task.
Assets
[0];
725
task.
Assets
.Length.Should().Be(2);
726
task.
Assets
[0].GetMetadata(nameof(StaticWebAsset.RelativePath)).Should().Be("Microsoft.AspNetCore.Components.CustomElements.lib.module.js");
727
task.
Assets
[0].GetMetadata(nameof(StaticWebAsset.BasePath)).Should().Be("_content/Microsoft.AspNetCore.Components.CustomElements");
728
task.
Assets
[1].GetMetadata(nameof(StaticWebAsset.RelativePath)).Should().Be("Microsoft.AspNetCore.Components.CustomElements.lib.module.js.map");
729
task.
Assets
[1].GetMetadata(nameof(StaticWebAsset.BasePath)).Should().Be("_content/Microsoft.AspNetCore.Components.CustomElements");
765
task.
Assets
.Length.Should().Be(2);
766
task.
Assets
[0].GetMetadata(nameof(StaticWebAsset.RelativePath)).Should().Be("Microsoft.AspNetCore.Components.CustomElements.lib.module.js");
767
task.
Assets
[0].GetMetadata(nameof(StaticWebAsset.BasePath)).Should().Be("_content/Microsoft.AspNetCore.Components.CustomElements");
768
task.
Assets
[1].GetMetadata(nameof(StaticWebAsset.RelativePath)).Should().Be("Microsoft.AspNetCore.Components.CustomElements.lib.module.js.map");
769
task.
Assets
[1].GetMetadata(nameof(StaticWebAsset.BasePath)).Should().Be("_content/Microsoft.AspNetCore.Components.CustomElements");
802
task.
Assets
.Length.Should().Be(1);
803
task.
Assets
[0].GetMetadata(nameof(StaticWebAsset.RelativePath)).Should().Be("Components/Dropdown/Dropdown.razor.js");
804
task.
Assets
[0].GetMetadata(nameof(StaticWebAsset.BasePath)).Should().Be("_content/Project");
805
task.
Assets
[0].GetMetadata(nameof(StaticWebAsset.ContentRoot)).Should().Be("/home/user/work/Repo/Project/");