diff --git a/src/StaticWebAssetsSdk/Targets/Microsoft.NET.Sdk.StaticWebAssets.Compression.targets b/src/StaticWebAssetsSdk/Targets/Microsoft.NET.Sdk.StaticWebAssets.Compression.targets index 03e88aac848d..7dbbd3d2614a 100644 --- a/src/StaticWebAssetsSdk/Targets/Microsoft.NET.Sdk.StaticWebAssets.Compression.targets +++ b/src/StaticWebAssetsSdk/Targets/Microsoft.NET.Sdk.StaticWebAssets.Compression.targets @@ -161,11 +161,13 @@ Copyright (c) .NET Foundation. All rights reserved. - $(BuildCompressionFormats);gzip - $(PublishCompressionFormats);gzip;brotli + true + $(BuildCompressionFormats);gzip + $(PublishCompressionFormats);gzip;brotli false - $(CompressionIncludePatterns) - $(CompressionExcludePatterns) + true + + $(_BlazorBrotliCompressionLevel) @@ -195,7 +197,7 @@ Copyright (c) .NET Foundation. All rights reserved. GeneratePublishCompressedStaticWebAssets ResolvePublishCompressedStaticWebAssetsConfiguration --> - + ResolvePublishCompressedStaticWebAssets; $(ResolvePublishRelatedStaticWebAssetsDependsOn) @@ -270,7 +272,7 @@ Copyright (c) .NET Foundation. All rights reserved. @@ -304,8 +306,29 @@ Copyright (c) .NET Foundation. All rights reserved. + + true + false + + + + <_CandidateAssetsForBuild Include="@(StaticWebAsset)" /> + + + + <_CandidateAssetsForBuild + Include="@(StaticWebAsset)" + Condition="'%(SourceType)' == 'Discovered' or '%(SourceType)' == 'Computed'" /> + + + + <_CandidateAssetsForBuild + Remove="@(_CandidateAssetsForBuild)" + Condition="'%(SourceType)' == 'Discovered'" /> + + - + + true + false + + + <_CandidateAssetsForPublish Include="@(StaticWebAsset)" Condition="'%(AssetKind)' != 'Build'" /> + + <_CandidateAssetsForPublish + Include="@(StaticWebAsset)" + Condition="'%(AssetKind)' != 'Build' and ('%(SourceType)' == 'Discovered' or '%(SourceType)' == 'Computed')" /> + + + + <_AssetsWithoutEndpoints Include="@(_UpdatedPackageAssets)" Exclude="@(StaticWebAssetEndpoint->'%(AssetFile)')" /> + + + + + + + + diff --git a/src/WebSdk/Web/Targets/Sdk.Server.props b/src/WebSdk/Web/Targets/Sdk.Server.props index 0e6da3e9dcca..a02fa3697923 100644 --- a/src/WebSdk/Web/Targets/Sdk.Server.props +++ b/src/WebSdk/Web/Targets/Sdk.Server.props @@ -21,6 +21,8 @@ Copyright (c) .NET Foundation. All rights reserved. true + Root + / diff --git a/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/JSModules_ManifestIncludesModuleTargetPaths.Build.staticwebassets.json b/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/JSModules_ManifestIncludesModuleTargetPaths.Build.staticwebassets.json index a02fbb0e7a4f..13fdd975e774 100644 --- a/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/JSModules_ManifestIncludesModuleTargetPaths.Build.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/JSModules_ManifestIncludesModuleTargetPaths.Build.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "blazorhosted", - "BasePath": "_content/blazorhosted", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Build", "ReferencedProjectsConfiguration": [ { @@ -47,11 +47,11 @@ ], "Assets": [ { - "Identity": "${ProjectPath}\\blazorhosted\\obj\\Debug\\${Tfm}\\compressed\\_content\\blazorhosted\\blazorhosted.modules.json.gz", + "Identity": "${ProjectPath}\\blazorhosted\\obj\\Debug\\${Tfm}\\compressed\\blazorhosted.modules.json.gz", "SourceId": "blazorhosted", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\blazorhosted\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/blazorhosted", + "BasePath": "/", "RelativePath": "blazorhosted.modules.json.gz", "AssetKind": "Build", "AssetMode": "CurrentProject", @@ -65,7 +65,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\blazorhosted\\obj\\Debug\\${Tfm}\\jsmodules\\_content\\blazorhosted\\blazorhosted.modules.json.gz", + "OriginalItemSpec": "${ProjectPath}\\blazorhosted\\obj\\Debug\\${Tfm}\\jsmodules\\blazorhosted.modules.json.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -74,7 +74,7 @@ "SourceId": "blazorhosted", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\blazorhosted\\obj\\Debug\\${Tfm}\\jsmodules\\", - "BasePath": "_content/blazorhosted", + "BasePath": "/", "RelativePath": "blazorhosted.modules.json", "AssetKind": "Build", "AssetMode": "CurrentProject", @@ -10078,7 +10078,7 @@ "Endpoints": [ { "Route": "blazorhosted.modules.json.gz", - "AssetFile": "${ProjectPath}\\blazorhosted\\obj\\Debug\\${Tfm}\\compressed\\_content\\blazorhosted\\blazorhosted.modules.json.gz", + "AssetFile": "${ProjectPath}\\blazorhosted\\obj\\Debug\\${Tfm}\\compressed\\blazorhosted.modules.json.gz", "Selectors": [], "ResponseHeaders": [ { @@ -10123,7 +10123,7 @@ }, { "Route": "blazorhosted.modules.json", - "AssetFile": "${ProjectPath}\\blazorhosted\\obj\\Debug\\${Tfm}\\compressed\\_content\\blazorhosted\\blazorhosted.modules.json.gz", + "AssetFile": "${ProjectPath}\\blazorhosted\\obj\\Debug\\${Tfm}\\compressed\\blazorhosted.modules.json.gz", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/JsModules_Hosted_CanCustomizeBlazorInitialization.Publish.files.json b/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/JsModules_Hosted_CanCustomizeBlazorInitialization.Publish.files.json index 9aa0c9b5b797..d2a4d8613c1c 100644 --- a/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/JsModules_Hosted_CanCustomizeBlazorInitialization.Publish.files.json +++ b/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/JsModules_Hosted_CanCustomizeBlazorInitialization.Publish.files.json @@ -248,8 +248,8 @@ "${OutputPath}\\wwwroot\\serviceworkers\\my-service-worker.js", "${OutputPath}\\wwwroot\\serviceworkers\\my-service-worker.js.br", "${OutputPath}\\wwwroot\\serviceworkers\\my-service-worker.js.gz", - "${ProjectPath}\\blazorhosted\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\blazorhosted\\blazorhosted.modules.json.br", - "${ProjectPath}\\blazorhosted\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\blazorhosted\\blazorhosted.modules.json.gz", + "${ProjectPath}\\blazorhosted\\obj\\Debug\\${Tfm}\\compressed\\publish\\blazorhosted.modules.json.br", + "${ProjectPath}\\blazorhosted\\obj\\Debug\\${Tfm}\\compressed\\publish\\blazorhosted.modules.json.gz", "${ProjectPath}\\blazorhosted\\obj\\Debug\\${Tfm}\\jsmodules\\jsmodules.publish.manifest.json", "${OutputPath}\\wwwroot\\Fake-License.txt", "${OutputPath}\\wwwroot\\Fake-License.txt.br", diff --git a/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/JsModules_Hosted_CanCustomizeBlazorInitialization.Publish.staticwebassets.json b/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/JsModules_Hosted_CanCustomizeBlazorInitialization.Publish.staticwebassets.json index 9314f4449977..3705f1a181a4 100644 --- a/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/JsModules_Hosted_CanCustomizeBlazorInitialization.Publish.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/JsModules_Hosted_CanCustomizeBlazorInitialization.Publish.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "blazorhosted", - "BasePath": "_content/blazorhosted", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Publish", "ReferencedProjectsConfiguration": [ { @@ -47,11 +47,11 @@ ], "Assets": [ { - "Identity": "${ProjectPath}\\blazorhosted\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\blazorhosted\\blazorhosted.modules.json.br", + "Identity": "${ProjectPath}\\blazorhosted\\obj\\Debug\\${Tfm}\\compressed\\publish\\blazorhosted.modules.json.br", "SourceId": "blazorhosted", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\blazorhosted\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/blazorhosted", + "BasePath": "/", "RelativePath": "blazorhosted.modules.json.br", "AssetKind": "Publish", "AssetMode": "CurrentProject", @@ -65,16 +65,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\blazorhosted\\obj\\Debug\\${Tfm}\\jsmodules\\_content\\blazorhosted\\blazorhosted.modules.json.br", + "OriginalItemSpec": "${ProjectPath}\\blazorhosted\\obj\\Debug\\${Tfm}\\jsmodules\\blazorhosted.modules.json.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\blazorhosted\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\blazorhosted\\blazorhosted.modules.json.gz", + "Identity": "${ProjectPath}\\blazorhosted\\obj\\Debug\\${Tfm}\\compressed\\publish\\blazorhosted.modules.json.gz", "SourceId": "blazorhosted", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\blazorhosted\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/blazorhosted", + "BasePath": "/", "RelativePath": "blazorhosted.modules.json.gz", "AssetKind": "Publish", "AssetMode": "CurrentProject", @@ -88,7 +88,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\blazorhosted\\obj\\Debug\\${Tfm}\\jsmodules\\_content\\blazorhosted\\blazorhosted.modules.json.gz", + "OriginalItemSpec": "${ProjectPath}\\blazorhosted\\obj\\Debug\\${Tfm}\\jsmodules\\blazorhosted.modules.json.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -97,7 +97,7 @@ "SourceId": "blazorhosted", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\blazorhosted\\obj\\Debug\\${Tfm}\\jsmodules\\", - "BasePath": "_content/blazorhosted", + "BasePath": "/", "RelativePath": "blazorhosted.modules.json", "AssetKind": "Publish", "AssetMode": "CurrentProject", @@ -5777,7 +5777,7 @@ "Endpoints": [ { "Route": "blazorhosted.modules.json.br", - "AssetFile": "${ProjectPath}\\blazorhosted\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\blazorhosted\\blazorhosted.modules.json.br", + "AssetFile": "${ProjectPath}\\blazorhosted\\obj\\Debug\\${Tfm}\\compressed\\publish\\blazorhosted.modules.json.br", "Selectors": [], "ResponseHeaders": [ { @@ -5822,7 +5822,7 @@ }, { "Route": "blazorhosted.modules.json", - "AssetFile": "${ProjectPath}\\blazorhosted\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\blazorhosted\\blazorhosted.modules.json.br", + "AssetFile": "${ProjectPath}\\blazorhosted\\obj\\Debug\\${Tfm}\\compressed\\publish\\blazorhosted.modules.json.br", "Selectors": [ { "Name": "Content-Encoding", @@ -5877,7 +5877,7 @@ }, { "Route": "blazorhosted.modules.json.gz", - "AssetFile": "${ProjectPath}\\blazorhosted\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\blazorhosted\\blazorhosted.modules.json.gz", + "AssetFile": "${ProjectPath}\\blazorhosted\\obj\\Debug\\${Tfm}\\compressed\\publish\\blazorhosted.modules.json.gz", "Selectors": [], "ResponseHeaders": [ { @@ -5922,7 +5922,7 @@ }, { "Route": "blazorhosted.modules.json", - "AssetFile": "${ProjectPath}\\blazorhosted\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\blazorhosted\\blazorhosted.modules.json.gz", + "AssetFile": "${ProjectPath}\\blazorhosted\\obj\\Debug\\${Tfm}\\compressed\\publish\\blazorhosted.modules.json.gz", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/Publish60Hosted_Works.Publish.staticwebassets.json b/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/Publish60Hosted_Works.Publish.staticwebassets.json index a407a5c65d9c..900c1538026a 100644 --- a/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/Publish60Hosted_Works.Publish.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/Publish60Hosted_Works.Publish.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "BlazorWasmHosted60.Server", - "BasePath": "_content/BlazorWasmHosted60.Server", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Publish", "ReferencedProjectsConfiguration": [ { diff --git a/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/StaticWebAssets_BackCompatibilityPublish_Hosted_Works.Publish.staticwebassets.json b/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/StaticWebAssets_BackCompatibilityPublish_Hosted_Works.Publish.staticwebassets.json index e7f4692d6563..fc2fb8a6fc44 100644 --- a/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/StaticWebAssets_BackCompatibilityPublish_Hosted_Works.Publish.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/StaticWebAssets_BackCompatibilityPublish_Hosted_Works.Publish.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "blazorhosted", - "BasePath": "_content/blazorhosted", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Publish", "ReferencedProjectsConfiguration": [ { diff --git a/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/StaticWebAssets_Build_Hosted_Works.Build.staticwebassets.json b/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/StaticWebAssets_Build_Hosted_Works.Build.staticwebassets.json index 1372970f9bc1..fc5c2098280e 100644 --- a/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/StaticWebAssets_Build_Hosted_Works.Build.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/StaticWebAssets_Build_Hosted_Works.Build.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "blazorhosted", - "BasePath": "_content/blazorhosted", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Build", "ReferencedProjectsConfiguration": [ { diff --git a/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/StaticWebAssets_HostedApp_ReferencingNetStandardLibrary_Works.Build.staticwebassets.json b/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/StaticWebAssets_HostedApp_ReferencingNetStandardLibrary_Works.Build.staticwebassets.json index 64e544c8df0d..87f0e8bc9bd9 100644 --- a/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/StaticWebAssets_HostedApp_ReferencingNetStandardLibrary_Works.Build.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/StaticWebAssets_HostedApp_ReferencingNetStandardLibrary_Works.Build.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "blazorhosted", - "BasePath": "_content/blazorhosted", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Build", "ReferencedProjectsConfiguration": [ { diff --git a/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/StaticWebAssets_Publish_DoesNotIncludeXmlDocumentationFiles_AsAssets.Publish.staticwebassets.json b/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/StaticWebAssets_Publish_DoesNotIncludeXmlDocumentationFiles_AsAssets.Publish.staticwebassets.json index f95a6edfb5e2..28426288a658 100644 --- a/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/StaticWebAssets_Publish_DoesNotIncludeXmlDocumentationFiles_AsAssets.Publish.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/StaticWebAssets_Publish_DoesNotIncludeXmlDocumentationFiles_AsAssets.Publish.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "blazorhosted", - "BasePath": "_content/blazorhosted", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Publish", "ReferencedProjectsConfiguration": [ { diff --git a/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/StaticWebAssets_Publish_Hosted_Works.Publish.staticwebassets.json b/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/StaticWebAssets_Publish_Hosted_Works.Publish.staticwebassets.json index f95a6edfb5e2..28426288a658 100644 --- a/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/StaticWebAssets_Publish_Hosted_Works.Publish.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/StaticWebAssets_Publish_Hosted_Works.Publish.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "blazorhosted", - "BasePath": "_content/blazorhosted", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Publish", "ReferencedProjectsConfiguration": [ { diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_CorrectlyBundlesScopedCssFiles.Build.files.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_CorrectlyBundlesScopedCssFiles.Build.files.json index c8db8f12ef0a..b800715727ea 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_CorrectlyBundlesScopedCssFiles.Build.files.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_CorrectlyBundlesScopedCssFiles.Build.files.json @@ -1,4 +1,4 @@ [ - "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference.styles.css" ] \ No newline at end of file diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_CorrectlyBundlesScopedCssFiles.Build.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_CorrectlyBundlesScopedCssFiles.Build.staticwebassets.json index 5e414fea33dc..fd866dc607c5 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_CorrectlyBundlesScopedCssFiles.Build.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_CorrectlyBundlesScopedCssFiles.Build.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "AppWithPackageAndP2PReference", - "BasePath": "_content/AppWithPackageAndP2PReference", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Build", "ReferencedProjectsConfiguration": [ { @@ -139,11 +139,11 @@ "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -157,7 +157,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -258,7 +258,7 @@ "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -784,7 +784,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -829,7 +829,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -882,7 +882,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -941,7 +941,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_DeployOnBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Build.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_DeployOnBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Build.staticwebassets.json index 5e414fea33dc..fd866dc607c5 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_DeployOnBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Build.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_DeployOnBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Build.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "AppWithPackageAndP2PReference", - "BasePath": "_content/AppWithPackageAndP2PReference", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Build", "ReferencedProjectsConfiguration": [ { @@ -139,11 +139,11 @@ "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -157,7 +157,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -258,7 +258,7 @@ "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -784,7 +784,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -829,7 +829,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -882,7 +882,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -941,7 +941,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_DeployOnBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.files.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_DeployOnBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.files.json index 7f5bc02e4c69..cd0e497b7792 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_DeployOnBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.files.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_DeployOnBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.files.json @@ -29,8 +29,8 @@ "${OutputPath}\\wwwroot\\_content\\RazorPackageLibraryTransitiveDependency\\js\\pkg-transitive-dep.js", "${OutputPath}\\wwwroot\\_content\\RazorPackageLibraryTransitiveDependency\\js\\pkg-transitive-dep.js.br", "${OutputPath}\\wwwroot\\_content\\RazorPackageLibraryTransitiveDependency\\js\\pkg-transitive-dep.js.gz", - "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", - "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference.styles.css", "${OutputPath}\\wwwroot\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "${OutputPath}\\wwwroot\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_DeployOnBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_DeployOnBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.staticwebassets.json index 4128faa05536..bfc567176e5c 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_DeployOnBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_DeployOnBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "AppWithPackageAndP2PReference", - "BasePath": "_content/AppWithPackageAndP2PReference", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Publish", "ReferencedProjectsConfiguration": [ { @@ -185,11 +185,11 @@ "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -203,7 +203,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -300,11 +300,11 @@ "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -318,7 +318,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -419,7 +419,7 @@ "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -1214,7 +1214,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1259,7 +1259,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1312,7 +1312,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1371,7 +1371,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1838,7 +1838,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css.br", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -1883,7 +1883,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css.br", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -1936,7 +1936,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1995,7 +1995,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_GeneratesJsonManifestAndCopiesItToOutputFolder.Build.files.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_GeneratesJsonManifestAndCopiesItToOutputFolder.Build.files.json index c8db8f12ef0a..b800715727ea 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_GeneratesJsonManifestAndCopiesItToOutputFolder.Build.files.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_GeneratesJsonManifestAndCopiesItToOutputFolder.Build.files.json @@ -1,4 +1,4 @@ [ - "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference.styles.css" ] \ No newline at end of file diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_GeneratesJsonManifestAndCopiesItToOutputFolder.Build.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_GeneratesJsonManifestAndCopiesItToOutputFolder.Build.staticwebassets.json index 5e414fea33dc..fd866dc607c5 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_GeneratesJsonManifestAndCopiesItToOutputFolder.Build.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_GeneratesJsonManifestAndCopiesItToOutputFolder.Build.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "AppWithPackageAndP2PReference", - "BasePath": "_content/AppWithPackageAndP2PReference", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Build", "ReferencedProjectsConfiguration": [ { @@ -139,11 +139,11 @@ "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -157,7 +157,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -258,7 +258,7 @@ "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -784,7 +784,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -829,7 +829,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -882,7 +882,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -941,7 +941,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_IncorporatesInitializersFromClassLibraries.Build.files.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_IncorporatesInitializersFromClassLibraries.Build.files.json index 43b440971ea1..9b6099578e17 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_IncorporatesInitializersFromClassLibraries.Build.files.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_IncorporatesInitializersFromClassLibraries.Build.files.json @@ -1,6 +1,6 @@ [ - "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", - "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference.modules.json.gz", + "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference.modules.json.gz", "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\jsmodules\\jsmodules.build.manifest.json", "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference.styles.css" ] \ No newline at end of file diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_IncorporatesInitializersFromClassLibraries.Build.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_IncorporatesInitializersFromClassLibraries.Build.staticwebassets.json index 2081cc357be5..264c93b8a815 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_IncorporatesInitializersFromClassLibraries.Build.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_IncorporatesInitializersFromClassLibraries.Build.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "AppWithPackageAndP2PReference", - "BasePath": "_content/AppWithPackageAndP2PReference", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Build", "ReferencedProjectsConfiguration": [ { @@ -185,11 +185,11 @@ "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -203,16 +203,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference.modules.json.gz", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference.modules.json.gz", "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference.modules.json.gz", "AssetKind": "Build", "AssetMode": "CurrentProject", @@ -226,7 +226,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\jsmodules\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference.modules.json.gz", + "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\jsmodules\\AppWithPackageAndP2PReference.modules.json.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -327,7 +327,7 @@ "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\jsmodules\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference.modules.json", "AssetKind": "Build", "AssetMode": "CurrentProject", @@ -350,7 +350,7 @@ "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -1075,7 +1075,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1120,7 +1120,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1173,7 +1173,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1232,7 +1232,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1299,7 +1299,7 @@ }, { "Route": "AppWithPackageAndP2PReference.modules.json.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference.modules.json.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference.modules.json.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1344,7 +1344,7 @@ }, { "Route": "AppWithPackageAndP2PReference.modules.json", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference.modules.json.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference.modules.json.gz", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_NoDependencies_GeneratesJsonManifestAndCopiesItToOutputFolder.Build.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_NoDependencies_GeneratesJsonManifestAndCopiesItToOutputFolder.Build.staticwebassets.json index 5e414fea33dc..fd866dc607c5 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_NoDependencies_GeneratesJsonManifestAndCopiesItToOutputFolder.Build.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_NoDependencies_GeneratesJsonManifestAndCopiesItToOutputFolder.Build.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "AppWithPackageAndP2PReference", - "BasePath": "_content/AppWithPackageAndP2PReference", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Build", "ReferencedProjectsConfiguration": [ { @@ -139,11 +139,11 @@ "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -157,7 +157,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -258,7 +258,7 @@ "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -784,7 +784,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -829,7 +829,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -882,7 +882,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -941,7 +941,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_NoDependencies_GeneratesJsonManifestAndCopiesItToOutputFolder_NoDependencies.Build.files.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_NoDependencies_GeneratesJsonManifestAndCopiesItToOutputFolder_NoDependencies.Build.files.json index c8db8f12ef0a..b800715727ea 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_NoDependencies_GeneratesJsonManifestAndCopiesItToOutputFolder_NoDependencies.Build.files.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_NoDependencies_GeneratesJsonManifestAndCopiesItToOutputFolder_NoDependencies.Build.files.json @@ -1,4 +1,4 @@ [ - "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference.styles.css" ] \ No newline at end of file diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_NoDependencies_GeneratesJsonManifestAndCopiesItToOutputFolder_NoDependencies.Build.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_NoDependencies_GeneratesJsonManifestAndCopiesItToOutputFolder_NoDependencies.Build.staticwebassets.json index 5e414fea33dc..fd866dc607c5 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_NoDependencies_GeneratesJsonManifestAndCopiesItToOutputFolder_NoDependencies.Build.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_NoDependencies_GeneratesJsonManifestAndCopiesItToOutputFolder_NoDependencies.Build.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "AppWithPackageAndP2PReference", - "BasePath": "_content/AppWithPackageAndP2PReference", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Build", "ReferencedProjectsConfiguration": [ { @@ -139,11 +139,11 @@ "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -157,7 +157,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -258,7 +258,7 @@ "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -784,7 +784,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -829,7 +829,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -882,7 +882,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -941,7 +941,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_WorksWithStaticWebAssetsV1ClassLibraries.Build.files.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_WorksWithStaticWebAssetsV1ClassLibraries.Build.files.json index c8db8f12ef0a..b800715727ea 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_WorksWithStaticWebAssetsV1ClassLibraries.Build.files.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_WorksWithStaticWebAssetsV1ClassLibraries.Build.files.json @@ -1,4 +1,4 @@ [ - "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference.styles.css" ] \ No newline at end of file diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_WorksWithStaticWebAssetsV1ClassLibraries.Build.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_WorksWithStaticWebAssetsV1ClassLibraries.Build.staticwebassets.json index f337e812694b..b1776f7adb3f 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_WorksWithStaticWebAssetsV1ClassLibraries.Build.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/BuildProjectWithReferences_WorksWithStaticWebAssetsV1ClassLibraries.Build.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "AppWithPackageAndP2PReference", - "BasePath": "_content/AppWithPackageAndP2PReference", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Build", "ReferencedProjectsConfiguration": [ { @@ -93,71 +93,71 @@ "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\css\\site.css.gz", - "SourceId": "AnotherClassLib", - "SourceType": "Project", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "SourceId": "AppWithPackageAndP2PReference", + "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/AnotherClassLib", - "RelativePath": "css/site.css.gz", + "BasePath": "/", + "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", - "AssetMode": "All", + "AssetMode": "CurrentProject", "AssetRole": "Alternative", "AssetMergeBehavior": "", "AssetMergeSource": "", - "RelatedAsset": "${ProjectPath}\\AnotherClassLib\\wwwroot\\css\\site.css", + "RelatedAsset": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference.styles.css", "AssetTraitName": "Content-Encoding", "AssetTraitValue": "gzip", "Fingerprint": "__fingerprint__", "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AnotherClassLib\\wwwroot\\css\\_content\\AnotherClassLib\\css\\site.css.gz", + "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\js\\project-direct-dep.js.gz", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\css\\site.css.gz", "SourceId": "AnotherClassLib", "SourceType": "Project", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\", "BasePath": "_content/AnotherClassLib", - "RelativePath": "js/project-direct-dep.js.gz", + "RelativePath": "css/site.css.gz", "AssetKind": "All", "AssetMode": "All", "AssetRole": "Alternative", "AssetMergeBehavior": "", "AssetMergeSource": "", - "RelatedAsset": "${ProjectPath}\\AnotherClassLib\\wwwroot\\js\\project-direct-dep.js", + "RelatedAsset": "${ProjectPath}\\AnotherClassLib\\wwwroot\\css\\site.css", "AssetTraitName": "Content-Encoding", "AssetTraitValue": "gzip", "Fingerprint": "__fingerprint__", "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AnotherClassLib\\wwwroot\\js\\_content\\AnotherClassLib\\js\\project-direct-dep.js.gz", + "OriginalItemSpec": "${ProjectPath}\\AnotherClassLib\\wwwroot\\css\\_content\\AnotherClassLib\\css\\site.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", - "SourceId": "AppWithPackageAndP2PReference", - "SourceType": "Computed", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\js\\project-direct-dep.js.gz", + "SourceId": "AnotherClassLib", + "SourceType": "Project", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/AppWithPackageAndP2PReference", - "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "BasePath": "_content/AnotherClassLib", + "RelativePath": "js/project-direct-dep.js.gz", "AssetKind": "All", - "AssetMode": "CurrentProject", + "AssetMode": "All", "AssetRole": "Alternative", "AssetMergeBehavior": "", "AssetMergeSource": "", - "RelatedAsset": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference.styles.css", + "RelatedAsset": "${ProjectPath}\\AnotherClassLib\\wwwroot\\js\\project-direct-dep.js", "AssetTraitName": "Content-Encoding", "AssetTraitValue": "gzip", "Fingerprint": "__fingerprint__", "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\AnotherClassLib\\wwwroot\\js\\_content\\AnotherClassLib\\js\\project-direct-dep.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -304,7 +304,7 @@ "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -537,8 +537,8 @@ ] }, { - "Route": "_content/AnotherClassLib/css/site.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\css\\site.css.gz", + "Route": "AppWithPackageAndP2PReference.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -582,15 +582,9 @@ ] }, { - "Route": "_content/AnotherClassLib/css/site.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\css\\site.css.gz", - "Selectors": [ - { - "Name": "Content-Encoding", - "Value": "gzip", - "Quality": "__quality__" - } - ], + "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Selectors": [], "ResponseHeaders": [ { "Name": "Accept-Ranges", @@ -598,7 +592,7 @@ }, { "Name": "Cache-Control", - "Value": "no-cache" + "Value": "max-age=31536000, immutable" }, { "Name": "Content-Encoding", @@ -616,10 +610,6 @@ "Name": "ETag", "Value": "__etag__" }, - { - "Name": "ETag", - "Value": "__etag__" - }, { "Name": "Last-Modified", "Value": "__last-modified__" @@ -630,16 +620,30 @@ } ], "EndpointProperties": [ + { + "Name": "fingerprint", + "Value": "__fingerprint__" + }, { "Name": "integrity", "Value": "__integrity__" + }, + { + "Name": "label", + "Value": "AppWithPackageAndP2PReference.styles.css.gz" } ] }, { - "Route": "_content/AnotherClassLib/js/project-direct-dep.js.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\js\\project-direct-dep.js.gz", - "Selectors": [], + "Route": "AppWithPackageAndP2PReference.styles.css", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Selectors": [ + { + "Name": "Content-Encoding", + "Value": "gzip", + "Quality": "__quality__" + } + ], "ResponseHeaders": [ { "Name": "Accept-Ranges", @@ -659,7 +663,11 @@ }, { "Name": "Content-Type", - "Value": "text/javascript" + "Value": "text/css" + }, + { + "Name": "ETag", + "Value": "__etag__" }, { "Name": "ETag", @@ -669,6 +677,10 @@ "Name": "Last-Modified", "Value": "__last-modified__" }, + { + "Name": "Link", + "Value": "\u003C_content/RazorPackageLibraryDirectDependency/RazorPackageLibraryDirectDependency.__fingerprint__.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022" + }, { "Name": "Vary", "Value": "Content-Encoding" @@ -682,8 +694,8 @@ ] }, { - "Route": "_content/AnotherClassLib/js/project-direct-dep.js", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\js\\project-direct-dep.js.gz", + "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -698,7 +710,7 @@ }, { "Name": "Cache-Control", - "Value": "no-cache" + "Value": "max-age=31536000, immutable" }, { "Name": "Content-Encoding", @@ -710,7 +722,7 @@ }, { "Name": "Content-Type", - "Value": "text/javascript" + "Value": "text/css" }, { "Name": "ETag", @@ -724,21 +736,33 @@ "Name": "Last-Modified", "Value": "__last-modified__" }, + { + "Name": "Link", + "Value": "\u003C_content/RazorPackageLibraryDirectDependency/RazorPackageLibraryDirectDependency.__fingerprint__.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022" + }, { "Name": "Vary", "Value": "Content-Encoding" } ], "EndpointProperties": [ + { + "Name": "fingerprint", + "Value": "__fingerprint__" + }, { "Name": "integrity", "Value": "__integrity__" + }, + { + "Name": "label", + "Value": "AppWithPackageAndP2PReference.styles.css" } ] }, { - "Route": "AppWithPackageAndP2PReference.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Route": "_content/AnotherClassLib/css/site.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\css\\site.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -782,9 +806,15 @@ ] }, { - "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", - "Selectors": [], + "Route": "_content/AnotherClassLib/css/site.css", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\css\\site.css.gz", + "Selectors": [ + { + "Name": "Content-Encoding", + "Value": "gzip", + "Quality": "__quality__" + } + ], "ResponseHeaders": [ { "Name": "Accept-Ranges", @@ -792,7 +822,7 @@ }, { "Name": "Cache-Control", - "Value": "max-age=31536000, immutable" + "Value": "no-cache" }, { "Name": "Content-Encoding", @@ -810,6 +840,10 @@ "Name": "ETag", "Value": "__etag__" }, + { + "Name": "ETag", + "Value": "__etag__" + }, { "Name": "Last-Modified", "Value": "__last-modified__" @@ -820,30 +854,16 @@ } ], "EndpointProperties": [ - { - "Name": "fingerprint", - "Value": "__fingerprint__" - }, { "Name": "integrity", "Value": "__integrity__" - }, - { - "Name": "label", - "Value": "AppWithPackageAndP2PReference.styles.css.gz" } ] }, { - "Route": "AppWithPackageAndP2PReference.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", - "Selectors": [ - { - "Name": "Content-Encoding", - "Value": "gzip", - "Quality": "__quality__" - } - ], + "Route": "_content/AnotherClassLib/js/project-direct-dep.js.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\js\\project-direct-dep.js.gz", + "Selectors": [], "ResponseHeaders": [ { "Name": "Accept-Ranges", @@ -863,11 +883,7 @@ }, { "Name": "Content-Type", - "Value": "text/css" - }, - { - "Name": "ETag", - "Value": "__etag__" + "Value": "text/javascript" }, { "Name": "ETag", @@ -877,10 +893,6 @@ "Name": "Last-Modified", "Value": "__last-modified__" }, - { - "Name": "Link", - "Value": "\u003C_content/RazorPackageLibraryDirectDependency/RazorPackageLibraryDirectDependency.__fingerprint__.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022" - }, { "Name": "Vary", "Value": "Content-Encoding" @@ -894,8 +906,8 @@ ] }, { - "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Route": "_content/AnotherClassLib/js/project-direct-dep.js", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\js\\project-direct-dep.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -910,7 +922,7 @@ }, { "Name": "Cache-Control", - "Value": "max-age=31536000, immutable" + "Value": "no-cache" }, { "Name": "Content-Encoding", @@ -922,7 +934,7 @@ }, { "Name": "Content-Type", - "Value": "text/css" + "Value": "text/javascript" }, { "Name": "ETag", @@ -936,27 +948,15 @@ "Name": "Last-Modified", "Value": "__last-modified__" }, - { - "Name": "Link", - "Value": "\u003C_content/RazorPackageLibraryDirectDependency/RazorPackageLibraryDirectDependency.__fingerprint__.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022" - }, { "Name": "Vary", "Value": "Content-Encoding" } ], "EndpointProperties": [ - { - "Name": "fingerprint", - "Value": "__fingerprint__" - }, { "Name": "integrity", "Value": "__integrity__" - }, - { - "Name": "label", - "Value": "AppWithPackageAndP2PReference.styles.css" } ] }, diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_CreatesEndpointsForAssets.Build.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_CreatesEndpointsForAssets.Build.staticwebassets.json index f66cbbed847b..02b56c375c77 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_CreatesEndpointsForAssets.Build.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_CreatesEndpointsForAssets.Build.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "ComponentApp", - "BasePath": "_content/ComponentApp", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Build", "ReferencedProjectsConfiguration": [], "DiscoveryPatterns": [ @@ -11,17 +11,17 @@ "Name": "ComponentApp\\wwwroot", "Source": "ComponentApp", "ContentRoot": "${ProjectPath}\\wwwroot\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "Pattern": "**" } ], "Assets": [ { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "AssetKind": "All", "AssetMode": "Reference", @@ -35,16 +35,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -58,16 +58,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -81,16 +81,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.server.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -104,16 +104,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\app.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\app.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "app.js.gz", "AssetKind": "All", "AssetMode": "All", @@ -127,7 +127,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\wwwroot\\_content\\ComponentApp\\app.js.gz", + "OriginalItemSpec": "${ProjectPath}\\wwwroot\\app.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -136,7 +136,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -159,7 +159,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]!.bundle.scp.css", "AssetKind": "All", "AssetMode": "Reference", @@ -182,7 +182,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\wwwroot\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "app.js", "AssetKind": "All", "AssetMode": "All", @@ -205,7 +205,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -228,7 +228,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint}]?.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -250,7 +250,7 @@ "Endpoints": [ { "Route": "ComponentApp.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -295,7 +295,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -348,7 +348,7 @@ }, { "Route": "ComponentApp.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -403,7 +403,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -466,7 +466,7 @@ }, { "Route": "ComponentApp.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -511,7 +511,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -564,7 +564,7 @@ }, { "Route": "ComponentApp.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -619,7 +619,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -682,7 +682,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -727,7 +727,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -780,7 +780,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -835,7 +835,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -898,7 +898,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -943,7 +943,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -996,7 +996,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1051,7 +1051,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1114,7 +1114,7 @@ }, { "Route": "app.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\app.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\app.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1159,7 +1159,7 @@ }, { "Route": "app.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\app.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\app.js.gz", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_CrosstargetingTests_CanIncludeBrowserAssets.Build.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_CrosstargetingTests_CanIncludeBrowserAssets.Build.staticwebassets.json index 93a16bdcde7a..37b03732b57e 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_CrosstargetingTests_CanIncludeBrowserAssets.Build.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_CrosstargetingTests_CanIncludeBrowserAssets.Build.staticwebassets.json @@ -3,7 +3,7 @@ "Hash": "__hash__", "Source": "RazorComponentAppMultitarget", "BasePath": "/", - "Mode": "Default", + "Mode": "Root", "ManifestType": "Build", "ReferencedProjectsConfiguration": [], "DiscoveryPatterns": [ diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_DeployOnBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Build.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_DeployOnBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Build.staticwebassets.json index 8ae2db3dd2ec..ab40209e2da7 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_DeployOnBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Build.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_DeployOnBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Build.staticwebassets.json @@ -2,18 +2,18 @@ "Version": 1, "Hash": "__hash__", "Source": "ComponentApp", - "BasePath": "_content/ComponentApp", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Build", "ReferencedProjectsConfiguration": [], "DiscoveryPatterns": [], "Assets": [ { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "AssetKind": "All", "AssetMode": "Reference", @@ -27,16 +27,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -50,16 +50,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -73,16 +73,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.server.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -96,7 +96,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -105,7 +105,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -128,7 +128,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]!.bundle.scp.css", "AssetKind": "All", "AssetMode": "Reference", @@ -151,7 +151,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -174,7 +174,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint}]?.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -196,7 +196,7 @@ "Endpoints": [ { "Route": "ComponentApp.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -241,7 +241,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -294,7 +294,7 @@ }, { "Route": "ComponentApp.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -349,7 +349,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -412,7 +412,7 @@ }, { "Route": "ComponentApp.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -457,7 +457,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -510,7 +510,7 @@ }, { "Route": "ComponentApp.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -565,7 +565,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -628,7 +628,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -673,7 +673,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -726,7 +726,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -781,7 +781,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -844,7 +844,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -889,7 +889,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -942,7 +942,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -997,7 +997,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_DeployOnBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.files.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_DeployOnBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.files.json index 491743598308..3e796c825b34 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_DeployOnBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.files.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_DeployOnBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.files.json @@ -8,10 +8,10 @@ "${OutputPath}\\wwwroot\\_framework\\blazor.web.js", "${OutputPath}\\wwwroot\\_framework\\blazor.web.js.br", "${OutputPath}\\wwwroot\\_framework\\blazor.web.js.gz", - "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", - "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", - "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", - "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\ComponentApp.styles.css", "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ComponentApp.bundle.scp.css", "${OutputPath}\\wwwroot\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_DeployOnBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_DeployOnBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.staticwebassets.json index 885283a78234..ae1b710a0fc1 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_DeployOnBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_DeployOnBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.staticwebassets.json @@ -2,18 +2,18 @@ "Version": 1, "Hash": "__hash__", "Source": "ComponentApp", - "BasePath": "_content/ComponentApp", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Publish", "ReferencedProjectsConfiguration": [], "DiscoveryPatterns": [], "Assets": [ { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "AssetKind": "All", "AssetMode": "Reference", @@ -27,16 +27,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -50,16 +50,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -73,16 +73,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.server.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -96,16 +96,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "AssetKind": "All", "AssetMode": "Reference", @@ -119,16 +119,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -142,16 +142,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.server.js.br", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js.br", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -165,16 +165,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.server.js.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -188,7 +188,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -197,7 +197,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -220,7 +220,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]!.bundle.scp.css", "AssetKind": "All", "AssetMode": "Reference", @@ -243,7 +243,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -266,7 +266,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint}]?.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -288,7 +288,7 @@ "Endpoints": [ { "Route": "ComponentApp.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -333,7 +333,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -386,7 +386,7 @@ }, { "Route": "ComponentApp.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -441,7 +441,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -504,7 +504,7 @@ }, { "Route": "ComponentApp.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -549,7 +549,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -602,7 +602,7 @@ }, { "Route": "ComponentApp.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -657,7 +657,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -720,7 +720,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -765,7 +765,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -818,7 +818,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -873,7 +873,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -936,7 +936,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -981,7 +981,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1034,7 +1034,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1089,7 +1089,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1152,7 +1152,7 @@ }, { "Route": "ComponentApp.bundle.scp.css.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -1197,7 +1197,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -1250,7 +1250,7 @@ }, { "Route": "ComponentApp.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1305,7 +1305,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1368,7 +1368,7 @@ }, { "Route": "ComponentApp.styles.css.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -1413,7 +1413,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -1466,7 +1466,7 @@ }, { "Route": "ComponentApp.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1521,7 +1521,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1584,7 +1584,7 @@ }, { "Route": "_framework/blazor.server.js.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.server.js.br", "Selectors": [], "ResponseHeaders": [ { @@ -1629,7 +1629,7 @@ }, { "Route": "_framework/blazor.server.js.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.server.js.br", "Selectors": [], "ResponseHeaders": [ { @@ -1682,7 +1682,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.server.js.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1737,7 +1737,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.server.js.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1800,7 +1800,7 @@ }, { "Route": "_framework/blazor.web.js.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "Selectors": [], "ResponseHeaders": [ { @@ -1845,7 +1845,7 @@ }, { "Route": "_framework/blazor.web.js.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "Selectors": [], "ResponseHeaders": [ { @@ -1898,7 +1898,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1953,7 +1953,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_Detects_PrecompressedAssets.Build.files.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_Detects_PrecompressedAssets.Build.files.json index 817adc62eec6..e4cd7bc7e746 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_Detects_PrecompressedAssets.Build.files.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_Detects_PrecompressedAssets.Build.files.json @@ -1,4 +1,4 @@ [ - "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithP2PReference\\AppWithP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithP2PReference.styles.css" ] \ No newline at end of file diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_Detects_PrecompressedAssets.Build.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_Detects_PrecompressedAssets.Build.staticwebassets.json index 82501f153fca..9135a74bf3db 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_Detects_PrecompressedAssets.Build.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_Detects_PrecompressedAssets.Build.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "AppWithP2PReference", - "BasePath": "_content/AppWithP2PReference", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Build", "ReferencedProjectsConfiguration": [ { @@ -29,11 +29,11 @@ ], "Assets": [ { - "Identity": "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithP2PReference\\AppWithP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "AppWithP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/AppWithP2PReference", + "BasePath": "/", "RelativePath": "AppWithP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -47,7 +47,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\AppWithP2PReference\\AppWithP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -56,7 +56,7 @@ "SourceId": "AppWithP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/AppWithP2PReference", + "BasePath": "/", "RelativePath": "AppWithP2PReference#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -239,7 +239,7 @@ "Endpoints": [ { "Route": "AppWithP2PReference.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithP2PReference\\AppWithP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -284,7 +284,7 @@ }, { "Route": "AppWithP2PReference.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithP2PReference\\AppWithP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -337,7 +337,7 @@ }, { "Route": "AppWithP2PReference.styles.css", - "AssetFile": "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithP2PReference\\AppWithP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -396,7 +396,7 @@ }, { "Route": "AppWithP2PReference.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithP2PReference\\AppWithP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_DiscoversJsModulesBasedOnPatterns.Build.files.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_DiscoversJsModulesBasedOnPatterns.Build.files.json index 36abd977bfa7..ff5e94bf0263 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_DiscoversJsModulesBasedOnPatterns.Build.files.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_DiscoversJsModulesBasedOnPatterns.Build.files.json @@ -1,6 +1,6 @@ [ - "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", - "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\ComponentApp.styles.css", "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ComponentApp.bundle.scp.css" ] \ No newline at end of file diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_DiscoversJsModulesBasedOnPatterns.Build.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_DiscoversJsModulesBasedOnPatterns.Build.staticwebassets.json index ed896a2d670c..beaef7e3ebb2 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_DiscoversJsModulesBasedOnPatterns.Build.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_DiscoversJsModulesBasedOnPatterns.Build.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "ComponentApp", - "BasePath": "_content/ComponentApp", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Build", "ReferencedProjectsConfiguration": [], "DiscoveryPatterns": [], @@ -13,7 +13,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "Components/Pages/Counter.razor.js", "AssetKind": "All", "AssetMode": "All", @@ -36,7 +36,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "Pages/Index.cshtml.js", "AssetKind": "All", "AssetMode": "All", @@ -55,11 +55,11 @@ "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "AssetKind": "All", "AssetMode": "Reference", @@ -73,16 +73,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -96,16 +96,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\Components\\Pages\\Counter.razor.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\Components\\Pages\\Counter.razor.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "Components/Pages/Counter.razor.js.gz", "AssetKind": "All", "AssetMode": "All", @@ -119,16 +119,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\Components\\Pages\\_content\\ComponentApp\\Components\\Pages\\Counter.razor.js.gz", + "OriginalItemSpec": "${ProjectPath}\\Components\\Pages\\Components\\Pages\\Counter.razor.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\Pages\\Index.cshtml.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\Pages\\Index.cshtml.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "Pages/Index.cshtml.js.gz", "AssetKind": "All", "AssetMode": "All", @@ -142,16 +142,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\Pages\\_content\\ComponentApp\\Pages\\Index.cshtml.js.gz", + "OriginalItemSpec": "${ProjectPath}\\Pages\\Pages\\Index.cshtml.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -165,16 +165,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.server.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -188,7 +188,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -197,7 +197,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -220,7 +220,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]!.bundle.scp.css", "AssetKind": "All", "AssetMode": "Reference", @@ -243,7 +243,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -266,7 +266,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint}]?.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -370,7 +370,7 @@ }, { "Route": "ComponentApp.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -415,7 +415,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -468,7 +468,7 @@ }, { "Route": "ComponentApp.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -523,7 +523,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -586,7 +586,7 @@ }, { "Route": "ComponentApp.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -631,7 +631,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -684,7 +684,7 @@ }, { "Route": "ComponentApp.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -739,7 +739,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -802,7 +802,7 @@ }, { "Route": "Components/Pages/Counter.razor.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\Components\\Pages\\Counter.razor.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\Components\\Pages\\Counter.razor.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -847,7 +847,7 @@ }, { "Route": "Components/Pages/Counter.razor.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\Components\\Pages\\Counter.razor.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\Components\\Pages\\Counter.razor.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -906,7 +906,7 @@ }, { "Route": "Pages/Index.cshtml.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\Pages\\Index.cshtml.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\Pages\\Index.cshtml.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -951,7 +951,7 @@ }, { "Route": "Pages/Index.cshtml.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\Pages\\Index.cshtml.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\Pages\\Index.cshtml.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1010,7 +1010,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1055,7 +1055,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1108,7 +1108,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1163,7 +1163,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1226,7 +1226,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1271,7 +1271,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1324,7 +1324,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1379,7 +1379,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_DoesNotFailToCompress_TwoAssetsWith_TheSameContent.Build.files.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_DoesNotFailToCompress_TwoAssetsWith_TheSameContent.Build.files.json index 36abd977bfa7..ff5e94bf0263 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_DoesNotFailToCompress_TwoAssetsWith_TheSameContent.Build.files.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_DoesNotFailToCompress_TwoAssetsWith_TheSameContent.Build.files.json @@ -1,6 +1,6 @@ [ - "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", - "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\ComponentApp.styles.css", "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ComponentApp.bundle.scp.css" ] \ No newline at end of file diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_DoesNotFailToCompress_TwoAssetsWith_TheSameContent.Build.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_DoesNotFailToCompress_TwoAssetsWith_TheSameContent.Build.staticwebassets.json index 6e47d4760f70..ede0e7382a0b 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_DoesNotFailToCompress_TwoAssetsWith_TheSameContent.Build.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_DoesNotFailToCompress_TwoAssetsWith_TheSameContent.Build.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "ComponentApp", - "BasePath": "_content/ComponentApp", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Build", "ReferencedProjectsConfiguration": [], "DiscoveryPatterns": [ @@ -11,17 +11,17 @@ "Name": "ComponentApp\\wwwroot", "Source": "ComponentApp", "ContentRoot": "${ProjectPath}\\wwwroot\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "Pattern": "**" } ], "Assets": [ { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "AssetKind": "All", "AssetMode": "Reference", @@ -35,16 +35,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -58,16 +58,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -81,16 +81,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.server.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -104,16 +104,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\file.txt.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\file.txt.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "file.txt.gz", "AssetKind": "Build", "AssetMode": "All", @@ -127,16 +127,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "Never", - "OriginalItemSpec": "${ProjectPath}\\wwwroot\\_content\\ComponentApp\\file.txt.gz", + "OriginalItemSpec": "${ProjectPath}\\wwwroot\\file.txt.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\file.txt.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\file.txt.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "file.txt.gz", "AssetKind": "Publish", "AssetMode": "All", @@ -150,7 +150,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\wwwroot\\_content\\ComponentApp\\file.txt.gz", + "OriginalItemSpec": "${ProjectPath}\\wwwroot\\file.txt.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -159,7 +159,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -182,7 +182,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]!.bundle.scp.css", "AssetKind": "All", "AssetMode": "Reference", @@ -205,7 +205,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\wwwroot\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "file.txt", "AssetKind": "Build", "AssetMode": "All", @@ -228,7 +228,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\wwwroot\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "file.txt", "AssetKind": "Publish", "AssetMode": "All", @@ -251,7 +251,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -274,7 +274,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint}]?.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -296,7 +296,7 @@ "Endpoints": [ { "Route": "ComponentApp.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -341,7 +341,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -394,7 +394,7 @@ }, { "Route": "ComponentApp.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -449,7 +449,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -512,7 +512,7 @@ }, { "Route": "ComponentApp.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -557,7 +557,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -610,7 +610,7 @@ }, { "Route": "ComponentApp.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -665,7 +665,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -728,7 +728,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -773,7 +773,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -826,7 +826,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -881,7 +881,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -944,7 +944,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -989,7 +989,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1042,7 +1042,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1097,7 +1097,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1160,7 +1160,7 @@ }, { "Route": "file.txt.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\file.txt.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\file.txt.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1205,7 +1205,7 @@ }, { "Route": "file.txt.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\file.txt.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\file.txt.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1250,7 +1250,7 @@ }, { "Route": "file.txt", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\file.txt.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\file.txt.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1305,7 +1305,7 @@ }, { "Route": "file.txt", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\file.txt.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\file.txt.gz", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_DoesNotUpdateManifest_WhenHasNotChanged.Build.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_DoesNotUpdateManifest_WhenHasNotChanged.Build.staticwebassets.json index 8ae2db3dd2ec..ab40209e2da7 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_DoesNotUpdateManifest_WhenHasNotChanged.Build.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_DoesNotUpdateManifest_WhenHasNotChanged.Build.staticwebassets.json @@ -2,18 +2,18 @@ "Version": 1, "Hash": "__hash__", "Source": "ComponentApp", - "BasePath": "_content/ComponentApp", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Build", "ReferencedProjectsConfiguration": [], "DiscoveryPatterns": [], "Assets": [ { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "AssetKind": "All", "AssetMode": "Reference", @@ -27,16 +27,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -50,16 +50,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -73,16 +73,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.server.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -96,7 +96,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -105,7 +105,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -128,7 +128,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]!.bundle.scp.css", "AssetKind": "All", "AssetMode": "Reference", @@ -151,7 +151,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -174,7 +174,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint}]?.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -196,7 +196,7 @@ "Endpoints": [ { "Route": "ComponentApp.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -241,7 +241,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -294,7 +294,7 @@ }, { "Route": "ComponentApp.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -349,7 +349,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -412,7 +412,7 @@ }, { "Route": "ComponentApp.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -457,7 +457,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -510,7 +510,7 @@ }, { "Route": "ComponentApp.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -565,7 +565,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -628,7 +628,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -673,7 +673,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -726,7 +726,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -781,7 +781,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -844,7 +844,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -889,7 +889,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -942,7 +942,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -997,7 +997,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_FingerprintsContent_WhenEnabled.Build.files.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_FingerprintsContent_WhenEnabled.Build.files.json index 36abd977bfa7..ff5e94bf0263 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_FingerprintsContent_WhenEnabled.Build.files.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_FingerprintsContent_WhenEnabled.Build.files.json @@ -1,6 +1,6 @@ [ - "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", - "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\ComponentApp.styles.css", "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ComponentApp.bundle.scp.css" ] \ No newline at end of file diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_FingerprintsContent_WhenEnabled.Build.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_FingerprintsContent_WhenEnabled.Build.staticwebassets.json index de36c50218be..71d1d994219d 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_FingerprintsContent_WhenEnabled.Build.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_FingerprintsContent_WhenEnabled.Build.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "ComponentApp", - "BasePath": "_content/ComponentApp", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Build", "ReferencedProjectsConfiguration": [], "DiscoveryPatterns": [ @@ -11,17 +11,17 @@ "Name": "ComponentApp\\wwwroot", "Source": "ComponentApp", "ContentRoot": "${ProjectPath}\\wwwroot\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "Pattern": "**" } ], "Assets": [ { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "AssetKind": "All", "AssetMode": "Reference", @@ -35,16 +35,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -58,16 +58,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -81,16 +81,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.server.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -104,16 +104,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\css\\fingerprint-site#[.{fingerprint=__fingerprint__}]?.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\css\\fingerprint-site#[.{fingerprint=__fingerprint__}]?.css.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "css/fingerprint-site#[.{fingerprint=__fingerprint__}]?.css.gz", "AssetKind": "All", "AssetMode": "All", @@ -127,7 +127,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\wwwroot\\css\\_content\\ComponentApp\\css\\fingerprint-site#[.{fingerprint=__fingerprint__}]?.css.gz", + "OriginalItemSpec": "${ProjectPath}\\wwwroot\\css\\css\\fingerprint-site#[.{fingerprint=__fingerprint__}]?.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -136,7 +136,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -159,7 +159,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]!.bundle.scp.css", "AssetKind": "All", "AssetMode": "Reference", @@ -182,7 +182,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\wwwroot\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "css/fingerprint-site#[.{fingerprint}]?.css", "AssetKind": "All", "AssetMode": "All", @@ -205,7 +205,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -228,7 +228,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint}]?.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -250,7 +250,7 @@ "Endpoints": [ { "Route": "ComponentApp.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -295,7 +295,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -348,7 +348,7 @@ }, { "Route": "ComponentApp.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -403,7 +403,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -466,7 +466,7 @@ }, { "Route": "ComponentApp.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -511,7 +511,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -564,7 +564,7 @@ }, { "Route": "ComponentApp.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -619,7 +619,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -682,7 +682,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -727,7 +727,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -780,7 +780,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -835,7 +835,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -898,7 +898,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -943,7 +943,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -996,7 +996,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1051,7 +1051,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1114,7 +1114,7 @@ }, { "Route": "css/fingerprint-site.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\css\\fingerprint-site#[.{fingerprint=__fingerprint__}]?.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\css\\fingerprint-site#[.{fingerprint=__fingerprint__}]?.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1159,7 +1159,7 @@ }, { "Route": "css/fingerprint-site.__fingerprint__.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\css\\fingerprint-site#[.{fingerprint=__fingerprint__}]?.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\css\\fingerprint-site#[.{fingerprint=__fingerprint__}]?.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1212,7 +1212,7 @@ }, { "Route": "css/fingerprint-site.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\css\\fingerprint-site#[.{fingerprint=__fingerprint__}]?.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\css\\fingerprint-site#[.{fingerprint=__fingerprint__}]?.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1267,7 +1267,7 @@ }, { "Route": "css/fingerprint-site.__fingerprint__.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\css\\fingerprint-site#[.{fingerprint=__fingerprint__}]?.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\css\\fingerprint-site#[.{fingerprint=__fingerprint__}]?.css.gz", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_GeneratesJsonManifestAndCopiesItToOutputFolder.Build.files.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_GeneratesJsonManifestAndCopiesItToOutputFolder.Build.files.json index 36abd977bfa7..ff5e94bf0263 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_GeneratesJsonManifestAndCopiesItToOutputFolder.Build.files.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_GeneratesJsonManifestAndCopiesItToOutputFolder.Build.files.json @@ -1,6 +1,6 @@ [ - "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", - "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\ComponentApp.styles.css", "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ComponentApp.bundle.scp.css" ] \ No newline at end of file diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_GeneratesJsonManifestAndCopiesItToOutputFolder.Build.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_GeneratesJsonManifestAndCopiesItToOutputFolder.Build.staticwebassets.json index 8ae2db3dd2ec..ab40209e2da7 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_GeneratesJsonManifestAndCopiesItToOutputFolder.Build.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_GeneratesJsonManifestAndCopiesItToOutputFolder.Build.staticwebassets.json @@ -2,18 +2,18 @@ "Version": 1, "Hash": "__hash__", "Source": "ComponentApp", - "BasePath": "_content/ComponentApp", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Build", "ReferencedProjectsConfiguration": [], "DiscoveryPatterns": [], "Assets": [ { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "AssetKind": "All", "AssetMode": "Reference", @@ -27,16 +27,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -50,16 +50,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -73,16 +73,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.server.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -96,7 +96,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -105,7 +105,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -128,7 +128,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]!.bundle.scp.css", "AssetKind": "All", "AssetMode": "Reference", @@ -151,7 +151,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -174,7 +174,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint}]?.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -196,7 +196,7 @@ "Endpoints": [ { "Route": "ComponentApp.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -241,7 +241,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -294,7 +294,7 @@ }, { "Route": "ComponentApp.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -349,7 +349,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -412,7 +412,7 @@ }, { "Route": "ComponentApp.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -457,7 +457,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -510,7 +510,7 @@ }, { "Route": "ComponentApp.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -565,7 +565,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -628,7 +628,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -673,7 +673,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -726,7 +726,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -781,7 +781,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -844,7 +844,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -889,7 +889,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -942,7 +942,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -997,7 +997,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_UpdatesManifest_WhenFilesChange.Build.files.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_UpdatesManifest_WhenFilesChange.Build.files.json index 36abd977bfa7..ff5e94bf0263 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_UpdatesManifest_WhenFilesChange.Build.files.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_UpdatesManifest_WhenFilesChange.Build.files.json @@ -1,6 +1,6 @@ [ - "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", - "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\ComponentApp.styles.css", "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ComponentApp.bundle.scp.css" ] \ No newline at end of file diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_UpdatesManifest_WhenFilesChange.Build.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_UpdatesManifest_WhenFilesChange.Build.staticwebassets.json index 8ae2db3dd2ec..ab40209e2da7 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_UpdatesManifest_WhenFilesChange.Build.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_UpdatesManifest_WhenFilesChange.Build.staticwebassets.json @@ -2,18 +2,18 @@ "Version": 1, "Hash": "__hash__", "Source": "ComponentApp", - "BasePath": "_content/ComponentApp", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Build", "ReferencedProjectsConfiguration": [], "DiscoveryPatterns": [], "Assets": [ { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "AssetKind": "All", "AssetMode": "Reference", @@ -27,16 +27,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -50,16 +50,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -73,16 +73,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.server.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -96,7 +96,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -105,7 +105,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -128,7 +128,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]!.bundle.scp.css", "AssetKind": "All", "AssetMode": "Reference", @@ -151,7 +151,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -174,7 +174,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint}]?.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -196,7 +196,7 @@ "Endpoints": [ { "Route": "ComponentApp.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -241,7 +241,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -294,7 +294,7 @@ }, { "Route": "ComponentApp.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -349,7 +349,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -412,7 +412,7 @@ }, { "Route": "ComponentApp.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -457,7 +457,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -510,7 +510,7 @@ }, { "Route": "ComponentApp.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -565,7 +565,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -628,7 +628,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -673,7 +673,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -726,7 +726,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -781,7 +781,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -844,7 +844,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -889,7 +889,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -942,7 +942,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -997,7 +997,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_UpdatesManifest_WhenFilesChange_Updated.Build.files.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_UpdatesManifest_WhenFilesChange_Updated.Build.files.json index 36abd977bfa7..ff5e94bf0263 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_UpdatesManifest_WhenFilesChange_Updated.Build.files.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_UpdatesManifest_WhenFilesChange_Updated.Build.files.json @@ -1,6 +1,6 @@ [ - "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", - "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\ComponentApp.styles.css", "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ComponentApp.bundle.scp.css" ] \ No newline at end of file diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_UpdatesManifest_WhenFilesChange_Updated.Build.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_UpdatesManifest_WhenFilesChange_Updated.Build.staticwebassets.json index 44f5a360d2cb..e3df085be66e 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_UpdatesManifest_WhenFilesChange_Updated.Build.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_UpdatesManifest_WhenFilesChange_Updated.Build.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "ComponentApp", - "BasePath": "_content/ComponentApp", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Build", "ReferencedProjectsConfiguration": [], "DiscoveryPatterns": [ @@ -11,17 +11,17 @@ "Name": "ComponentApp\\wwwroot", "Source": "ComponentApp", "ContentRoot": "${ProjectPath}\\wwwroot\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "Pattern": "**" } ], "Assets": [ { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "AssetKind": "All", "AssetMode": "Reference", @@ -35,16 +35,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -58,16 +58,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -81,16 +81,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.server.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -104,16 +104,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\index.html.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\index.html.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "index.html.gz", "AssetKind": "All", "AssetMode": "All", @@ -127,7 +127,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\wwwroot\\_content\\ComponentApp\\index.html.gz", + "OriginalItemSpec": "${ProjectPath}\\wwwroot\\index.html.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -136,7 +136,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -159,7 +159,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]!.bundle.scp.css", "AssetKind": "All", "AssetMode": "Reference", @@ -182,7 +182,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\wwwroot\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "index.html", "AssetKind": "All", "AssetMode": "All", @@ -205,7 +205,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -228,7 +228,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint}]?.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -250,7 +250,7 @@ "Endpoints": [ { "Route": "ComponentApp.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -295,7 +295,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -348,7 +348,7 @@ }, { "Route": "ComponentApp.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -403,7 +403,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -466,7 +466,7 @@ }, { "Route": "ComponentApp.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -511,7 +511,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -564,7 +564,7 @@ }, { "Route": "ComponentApp.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -619,7 +619,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -682,7 +682,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -727,7 +727,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -780,7 +780,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -835,7 +835,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -898,7 +898,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -943,7 +943,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -996,7 +996,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1051,7 +1051,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1114,7 +1114,7 @@ }, { "Route": "index.html.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\index.html.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\index.html.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1159,7 +1159,7 @@ }, { "Route": "index.html", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\index.html.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\index.html.gz", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_WithExternalProjectReference_UpdatesAssets.Build.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_WithExternalProjectReference_UpdatesAssets.Build.staticwebassets.json index 198686e12bdc..72ff3fdc2242 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_WithExternalProjectReference_UpdatesAssets.Build.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Build_WithExternalProjectReference_UpdatesAssets.Build.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "AppWithP2PReference", - "BasePath": "_content/AppWithP2PReference", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Build", "ReferencedProjectsConfiguration": [ { diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/CanEnable_CompressionOnAllAssets.Build.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/CanEnable_CompressionOnAllAssets.Build.staticwebassets.json new file mode 100644 index 000000000000..0751baa3633b --- /dev/null +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/CanEnable_CompressionOnAllAssets.Build.staticwebassets.json @@ -0,0 +1,1104 @@ +{ + "Version": 1, + "Hash": "__hash__", + "Source": "AppWithP2PReference", + "BasePath": "/", + "Mode": "Root", + "ManifestType": "Build", + "ReferencedProjectsConfiguration": [ + { + "Identity": "${ProjectPath}\\ClassLibrary\\ClassLibrary.csproj", + "Version": 2, + "Source": "ClassLibrary", + "GetPublishAssetsTargets": "ComputeReferencedStaticWebAssetsPublishManifest;GetCurrentProjectPublishStaticWebAssetItems", + "AdditionalPublishProperties": "", + "AdditionalPublishPropertiesToRemove": "WebPublishProfileFile;TargetFramework;RuntimeIdentifier;SelfContained", + "GetBuildAssetsTargets": "GetCurrentProjectBuildStaticWebAssetItems", + "AdditionalBuildProperties": "", + "AdditionalBuildPropertiesToRemove": "WebPublishProfileFile;TargetFramework;RuntimeIdentifier;SelfContained" + } + ], + "DiscoveryPatterns": [ + { + "Name": "ClassLibrary\\wwwroot", + "Source": "ClassLibrary", + "ContentRoot": "${ProjectPath}\\ClassLibrary\\wwwroot\\", + "BasePath": "_content/ClassLibrary", + "Pattern": "**" + } + ], + "Assets": [ + { + "Identity": "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "SourceId": "AppWithP2PReference", + "SourceType": "Computed", + "ContentRoot": "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\compressed\\", + "BasePath": "/", + "RelativePath": "AppWithP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetKind": "All", + "AssetMode": "CurrentProject", + "AssetRole": "Alternative", + "AssetMergeBehavior": "", + "AssetMergeSource": "", + "RelatedAsset": "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithP2PReference.styles.css", + "AssetTraitName": "Content-Encoding", + "AssetTraitValue": "gzip", + "Fingerprint": "__fingerprint__", + "Integrity": "__integrity__", + "CopyToOutputDirectory": "Never", + "CopyToPublishDirectory": "PreserveNewest", + "OriginalItemSpec": "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "FileLength": -1, + "LastWriteTime": "0001-01-01T00:00:00+00:00" + }, + { + "Identity": "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithP2PReference.styles.css", + "SourceId": "AppWithP2PReference", + "SourceType": "Computed", + "ContentRoot": "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", + "BasePath": "/", + "RelativePath": "AppWithP2PReference#[.{fingerprint}]?.styles.css", + "AssetKind": "All", + "AssetMode": "CurrentProject", + "AssetRole": "Primary", + "AssetMergeBehavior": "", + "AssetMergeSource": "", + "RelatedAsset": "", + "AssetTraitName": "ScopedCss", + "AssetTraitValue": "ApplicationBundle", + "Fingerprint": "__fingerprint__", + "Integrity": "__integrity__", + "CopyToOutputDirectory": "Never", + "CopyToPublishDirectory": "PreserveNewest", + "OriginalItemSpec": "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithP2PReference.styles.css", + "FileLength": -1, + "LastWriteTime": "0001-01-01T00:00:00+00:00" + }, + { + "Identity": "${ProjectPath}\\ClassLibrary\\obj\\Debug\\${Tfm}\\compressed\\_content\\ClassLibrary\\ClassLibrary#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "SourceId": "ClassLibrary", + "SourceType": "Project", + "ContentRoot": "${ProjectPath}\\ClassLibrary\\obj\\Debug\\${Tfm}\\compressed\\", + "BasePath": "_content/ClassLibrary", + "RelativePath": "ClassLibrary#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetKind": "All", + "AssetMode": "Reference", + "AssetRole": "Alternative", + "AssetMergeBehavior": "", + "AssetMergeSource": "", + "RelatedAsset": "${ProjectPath}\\ClassLibrary\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ClassLibrary.bundle.scp.css", + "AssetTraitName": "Content-Encoding", + "AssetTraitValue": "gzip", + "Fingerprint": "__fingerprint__", + "Integrity": "__integrity__", + "CopyToOutputDirectory": "Never", + "CopyToPublishDirectory": "PreserveNewest", + "OriginalItemSpec": "${ProjectPath}\\ClassLibrary\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\_content\\ClassLibrary\\ClassLibrary#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "FileLength": -1, + "LastWriteTime": "0001-01-01T00:00:00+00:00" + }, + { + "Identity": "${ProjectPath}\\ClassLibrary\\obj\\Debug\\${Tfm}\\compressed\\_content\\ClassLibrary\\js\\project-transitive-dep.js.gz", + "SourceId": "ClassLibrary", + "SourceType": "Project", + "ContentRoot": "${ProjectPath}\\ClassLibrary\\obj\\Debug\\${Tfm}\\compressed\\", + "BasePath": "_content/ClassLibrary", + "RelativePath": "js/project-transitive-dep.js.gz", + "AssetKind": "All", + "AssetMode": "All", + "AssetRole": "Alternative", + "AssetMergeBehavior": "", + "AssetMergeSource": "", + "RelatedAsset": "${ProjectPath}\\ClassLibrary\\wwwroot\\js\\project-transitive-dep.js", + "AssetTraitName": "Content-Encoding", + "AssetTraitValue": "gzip", + "Fingerprint": "__fingerprint__", + "Integrity": "__integrity__", + "CopyToOutputDirectory": "Never", + "CopyToPublishDirectory": "PreserveNewest", + "OriginalItemSpec": "${ProjectPath}\\ClassLibrary\\wwwroot\\js\\_content\\ClassLibrary\\js\\project-transitive-dep.js.gz", + "FileLength": -1, + "LastWriteTime": "0001-01-01T00:00:00+00:00" + }, + { + "Identity": "${ProjectPath}\\ClassLibrary\\obj\\Debug\\${Tfm}\\compressed\\_content\\ClassLibrary\\js\\project-transitive-dep.v4.js.gz", + "SourceId": "ClassLibrary", + "SourceType": "Project", + "ContentRoot": "${ProjectPath}\\ClassLibrary\\obj\\Debug\\${Tfm}\\compressed\\", + "BasePath": "_content/ClassLibrary", + "RelativePath": "js/project-transitive-dep.v4.js.gz", + "AssetKind": "All", + "AssetMode": "All", + "AssetRole": "Alternative", + "AssetMergeBehavior": "", + "AssetMergeSource": "", + "RelatedAsset": "${ProjectPath}\\ClassLibrary\\wwwroot\\js\\project-transitive-dep.v4.js", + "AssetTraitName": "Content-Encoding", + "AssetTraitValue": "gzip", + "Fingerprint": "__fingerprint__", + "Integrity": "__integrity__", + "CopyToOutputDirectory": "Never", + "CopyToPublishDirectory": "PreserveNewest", + "OriginalItemSpec": "${ProjectPath}\\ClassLibrary\\wwwroot\\js\\_content\\ClassLibrary\\js\\project-transitive-dep.v4.js.gz", + "FileLength": -1, + "LastWriteTime": "0001-01-01T00:00:00+00:00" + }, + { + "Identity": "${ProjectPath}\\ClassLibrary\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ClassLibrary.bundle.scp.css", + "SourceId": "ClassLibrary", + "SourceType": "Project", + "ContentRoot": "${ProjectPath}\\ClassLibrary\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\", + "BasePath": "_content/ClassLibrary", + "RelativePath": "ClassLibrary#[.{fingerprint}]!.bundle.scp.css", + "AssetKind": "All", + "AssetMode": "Reference", + "AssetRole": "Primary", + "AssetMergeBehavior": "", + "AssetMergeSource": "", + "RelatedAsset": "", + "AssetTraitName": "ScopedCss", + "AssetTraitValue": "ProjectBundle", + "Fingerprint": "__fingerprint__", + "Integrity": "__integrity__", + "CopyToOutputDirectory": "Never", + "CopyToPublishDirectory": "PreserveNewest", + "OriginalItemSpec": "${ProjectPath}\\ClassLibrary\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ClassLibrary.bundle.scp.css", + "FileLength": -1, + "LastWriteTime": "0001-01-01T00:00:00+00:00" + }, + { + "Identity": "${ProjectPath}\\ClassLibrary\\wwwroot\\js\\project-transitive-dep.js", + "SourceId": "ClassLibrary", + "SourceType": "Project", + "ContentRoot": "${ProjectPath}\\ClassLibrary\\wwwroot\\", + "BasePath": "_content/ClassLibrary", + "RelativePath": "js/project-transitive-dep.js", + "AssetKind": "All", + "AssetMode": "All", + "AssetRole": "Primary", + "AssetMergeBehavior": "", + "AssetMergeSource": "", + "RelatedAsset": "", + "AssetTraitName": "", + "AssetTraitValue": "", + "Fingerprint": "__fingerprint__", + "Integrity": "__integrity__", + "CopyToOutputDirectory": "Never", + "CopyToPublishDirectory": "PreserveNewest", + "OriginalItemSpec": "wwwroot\\js\\project-transitive-dep.js", + "FileLength": -1, + "LastWriteTime": "0001-01-01T00:00:00+00:00" + }, + { + "Identity": "${ProjectPath}\\ClassLibrary\\wwwroot\\js\\project-transitive-dep.v4.js", + "SourceId": "ClassLibrary", + "SourceType": "Project", + "ContentRoot": "${ProjectPath}\\ClassLibrary\\wwwroot\\", + "BasePath": "_content/ClassLibrary", + "RelativePath": "js/project-transitive-dep.v4.js", + "AssetKind": "All", + "AssetMode": "All", + "AssetRole": "Primary", + "AssetMergeBehavior": "", + "AssetMergeSource": "", + "RelatedAsset": "", + "AssetTraitName": "", + "AssetTraitValue": "", + "Fingerprint": "__fingerprint__", + "Integrity": "__integrity__", + "CopyToOutputDirectory": "Never", + "CopyToPublishDirectory": "PreserveNewest", + "OriginalItemSpec": "wwwroot\\js\\project-transitive-dep.v4.js", + "FileLength": -1, + "LastWriteTime": "0001-01-01T00:00:00+00:00" + } + ], + "Endpoints": [ + { + "Route": "AppWithP2PReference.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Selectors": [], + "ResponseHeaders": [ + { + "Name": "Accept-Ranges", + "Value": "bytes" + }, + { + "Name": "Cache-Control", + "Value": "no-cache" + }, + { + "Name": "Content-Encoding", + "Value": "gzip" + }, + { + "Name": "Content-Length", + "Value": "__content-length__" + }, + { + "Name": "Content-Type", + "Value": "text/css" + }, + { + "Name": "ETag", + "Value": "__etag__" + }, + { + "Name": "Last-Modified", + "Value": "__last-modified__" + }, + { + "Name": "Vary", + "Value": "Content-Encoding" + } + ], + "EndpointProperties": [ + { + "Name": "integrity", + "Value": "__integrity__" + } + ] + }, + { + "Route": "AppWithP2PReference.__fingerprint__.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Selectors": [], + "ResponseHeaders": [ + { + "Name": "Accept-Ranges", + "Value": "bytes" + }, + { + "Name": "Cache-Control", + "Value": "max-age=31536000, immutable" + }, + { + "Name": "Content-Encoding", + "Value": "gzip" + }, + { + "Name": "Content-Length", + "Value": "__content-length__" + }, + { + "Name": "Content-Type", + "Value": "text/css" + }, + { + "Name": "ETag", + "Value": "__etag__" + }, + { + "Name": "Last-Modified", + "Value": "__last-modified__" + }, + { + "Name": "Vary", + "Value": "Content-Encoding" + } + ], + "EndpointProperties": [ + { + "Name": "fingerprint", + "Value": "__fingerprint__" + }, + { + "Name": "integrity", + "Value": "__integrity__" + }, + { + "Name": "label", + "Value": "AppWithP2PReference.styles.css.gz" + } + ] + }, + { + "Route": "AppWithP2PReference.styles.css", + "AssetFile": "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Selectors": [ + { + "Name": "Content-Encoding", + "Value": "gzip", + "Quality": "__quality__" + } + ], + "ResponseHeaders": [ + { + "Name": "Accept-Ranges", + "Value": "bytes" + }, + { + "Name": "Cache-Control", + "Value": "no-cache" + }, + { + "Name": "Content-Encoding", + "Value": "gzip" + }, + { + "Name": "Content-Length", + "Value": "__content-length__" + }, + { + "Name": "Content-Type", + "Value": "text/css" + }, + { + "Name": "ETag", + "Value": "__etag__" + }, + { + "Name": "ETag", + "Value": "__etag__" + }, + { + "Name": "Last-Modified", + "Value": "__last-modified__" + }, + { + "Name": "Link", + "Value": "\u003C_content/ClassLibrary/ClassLibrary.__fingerprint__.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022" + }, + { + "Name": "Vary", + "Value": "Content-Encoding" + } + ], + "EndpointProperties": [ + { + "Name": "integrity", + "Value": "__integrity__" + } + ] + }, + { + "Route": "AppWithP2PReference.__fingerprint__.styles.css", + "AssetFile": "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Selectors": [ + { + "Name": "Content-Encoding", + "Value": "gzip", + "Quality": "__quality__" + } + ], + "ResponseHeaders": [ + { + "Name": "Accept-Ranges", + "Value": "bytes" + }, + { + "Name": "Cache-Control", + "Value": "max-age=31536000, immutable" + }, + { + "Name": "Content-Encoding", + "Value": "gzip" + }, + { + "Name": "Content-Length", + "Value": "__content-length__" + }, + { + "Name": "Content-Type", + "Value": "text/css" + }, + { + "Name": "ETag", + "Value": "__etag__" + }, + { + "Name": "ETag", + "Value": "__etag__" + }, + { + "Name": "Last-Modified", + "Value": "__last-modified__" + }, + { + "Name": "Link", + "Value": "\u003C_content/ClassLibrary/ClassLibrary.__fingerprint__.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022" + }, + { + "Name": "Vary", + "Value": "Content-Encoding" + } + ], + "EndpointProperties": [ + { + "Name": "fingerprint", + "Value": "__fingerprint__" + }, + { + "Name": "integrity", + "Value": "__integrity__" + }, + { + "Name": "label", + "Value": "AppWithP2PReference.styles.css" + } + ] + }, + { + "Route": "AppWithP2PReference.styles.css", + "AssetFile": "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithP2PReference.styles.css", + "Selectors": [], + "ResponseHeaders": [ + { + "Name": "Accept-Ranges", + "Value": "bytes" + }, + { + "Name": "Cache-Control", + "Value": "no-cache" + }, + { + "Name": "Content-Length", + "Value": "__content-length__" + }, + { + "Name": "Content-Type", + "Value": "text/css" + }, + { + "Name": "ETag", + "Value": "__etag__" + }, + { + "Name": "Last-Modified", + "Value": "__last-modified__" + }, + { + "Name": "Link", + "Value": "\u003C_content/ClassLibrary/ClassLibrary.__fingerprint__.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022" + } + ], + "EndpointProperties": [ + { + "Name": "integrity", + "Value": "__integrity__" + } + ] + }, + { + "Route": "AppWithP2PReference.__fingerprint__.styles.css", + "AssetFile": "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithP2PReference.styles.css", + "Selectors": [], + "ResponseHeaders": [ + { + "Name": "Accept-Ranges", + "Value": "bytes" + }, + { + "Name": "Cache-Control", + "Value": "max-age=31536000, immutable" + }, + { + "Name": "Content-Length", + "Value": "__content-length__" + }, + { + "Name": "Content-Type", + "Value": "text/css" + }, + { + "Name": "ETag", + "Value": "__etag__" + }, + { + "Name": "Last-Modified", + "Value": "__last-modified__" + }, + { + "Name": "Link", + "Value": "\u003C_content/ClassLibrary/ClassLibrary.__fingerprint__.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022" + } + ], + "EndpointProperties": [ + { + "Name": "fingerprint", + "Value": "__fingerprint__" + }, + { + "Name": "integrity", + "Value": "__integrity__" + }, + { + "Name": "label", + "Value": "AppWithP2PReference.styles.css" + } + ] + }, + { + "Route": "_content/ClassLibrary/ClassLibrary.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\ClassLibrary\\obj\\Debug\\${Tfm}\\compressed\\_content\\ClassLibrary\\ClassLibrary#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "Selectors": [], + "ResponseHeaders": [ + { + "Name": "Accept-Ranges", + "Value": "bytes" + }, + { + "Name": "Cache-Control", + "Value": "no-cache" + }, + { + "Name": "Content-Encoding", + "Value": "gzip" + }, + { + "Name": "Content-Length", + "Value": "__content-length__" + }, + { + "Name": "Content-Type", + "Value": "text/css" + }, + { + "Name": "ETag", + "Value": "__etag__" + }, + { + "Name": "Last-Modified", + "Value": "__last-modified__" + }, + { + "Name": "Vary", + "Value": "Content-Encoding" + } + ], + "EndpointProperties": [ + { + "Name": "integrity", + "Value": "__integrity__" + } + ] + }, + { + "Route": "_content/ClassLibrary/ClassLibrary.__fingerprint__.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\ClassLibrary\\obj\\Debug\\${Tfm}\\compressed\\_content\\ClassLibrary\\ClassLibrary#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "Selectors": [], + "ResponseHeaders": [ + { + "Name": "Accept-Ranges", + "Value": "bytes" + }, + { + "Name": "Cache-Control", + "Value": "max-age=31536000, immutable" + }, + { + "Name": "Content-Encoding", + "Value": "gzip" + }, + { + "Name": "Content-Length", + "Value": "__content-length__" + }, + { + "Name": "Content-Type", + "Value": "text/css" + }, + { + "Name": "ETag", + "Value": "__etag__" + }, + { + "Name": "Last-Modified", + "Value": "__last-modified__" + }, + { + "Name": "Vary", + "Value": "Content-Encoding" + } + ], + "EndpointProperties": [ + { + "Name": "fingerprint", + "Value": "__fingerprint__" + }, + { + "Name": "integrity", + "Value": "__integrity__" + }, + { + "Name": "label", + "Value": "_content/ClassLibrary/ClassLibrary.bundle.scp.css.gz" + } + ] + }, + { + "Route": "_content/ClassLibrary/ClassLibrary.bundle.scp.css", + "AssetFile": "${ProjectPath}\\ClassLibrary\\obj\\Debug\\${Tfm}\\compressed\\_content\\ClassLibrary\\ClassLibrary#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "Selectors": [ + { + "Name": "Content-Encoding", + "Value": "gzip", + "Quality": "__quality__" + } + ], + "ResponseHeaders": [ + { + "Name": "Accept-Ranges", + "Value": "bytes" + }, + { + "Name": "Cache-Control", + "Value": "no-cache" + }, + { + "Name": "Content-Encoding", + "Value": "gzip" + }, + { + "Name": "Content-Length", + "Value": "__content-length__" + }, + { + "Name": "Content-Type", + "Value": "text/css" + }, + { + "Name": "ETag", + "Value": "__etag__" + }, + { + "Name": "ETag", + "Value": "__etag__" + }, + { + "Name": "Last-Modified", + "Value": "__last-modified__" + }, + { + "Name": "Vary", + "Value": "Content-Encoding" + } + ], + "EndpointProperties": [ + { + "Name": "integrity", + "Value": "__integrity__" + } + ] + }, + { + "Route": "_content/ClassLibrary/ClassLibrary.__fingerprint__.bundle.scp.css", + "AssetFile": "${ProjectPath}\\ClassLibrary\\obj\\Debug\\${Tfm}\\compressed\\_content\\ClassLibrary\\ClassLibrary#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "Selectors": [ + { + "Name": "Content-Encoding", + "Value": "gzip", + "Quality": "__quality__" + } + ], + "ResponseHeaders": [ + { + "Name": "Accept-Ranges", + "Value": "bytes" + }, + { + "Name": "Cache-Control", + "Value": "max-age=31536000, immutable" + }, + { + "Name": "Content-Encoding", + "Value": "gzip" + }, + { + "Name": "Content-Length", + "Value": "__content-length__" + }, + { + "Name": "Content-Type", + "Value": "text/css" + }, + { + "Name": "ETag", + "Value": "__etag__" + }, + { + "Name": "ETag", + "Value": "__etag__" + }, + { + "Name": "Last-Modified", + "Value": "__last-modified__" + }, + { + "Name": "Vary", + "Value": "Content-Encoding" + } + ], + "EndpointProperties": [ + { + "Name": "fingerprint", + "Value": "__fingerprint__" + }, + { + "Name": "integrity", + "Value": "__integrity__" + }, + { + "Name": "label", + "Value": "_content/ClassLibrary/ClassLibrary.bundle.scp.css" + } + ] + }, + { + "Route": "_content/ClassLibrary/js/project-transitive-dep.js.gz", + "AssetFile": "${ProjectPath}\\ClassLibrary\\obj\\Debug\\${Tfm}\\compressed\\_content\\ClassLibrary\\js\\project-transitive-dep.js.gz", + "Selectors": [], + "ResponseHeaders": [ + { + "Name": "Accept-Ranges", + "Value": "bytes" + }, + { + "Name": "Cache-Control", + "Value": "no-cache" + }, + { + "Name": "Content-Encoding", + "Value": "gzip" + }, + { + "Name": "Content-Length", + "Value": "__content-length__" + }, + { + "Name": "Content-Type", + "Value": "text/javascript" + }, + { + "Name": "ETag", + "Value": "__etag__" + }, + { + "Name": "Last-Modified", + "Value": "__last-modified__" + }, + { + "Name": "Vary", + "Value": "Content-Encoding" + } + ], + "EndpointProperties": [ + { + "Name": "integrity", + "Value": "__integrity__" + } + ] + }, + { + "Route": "_content/ClassLibrary/js/project-transitive-dep.js", + "AssetFile": "${ProjectPath}\\ClassLibrary\\obj\\Debug\\${Tfm}\\compressed\\_content\\ClassLibrary\\js\\project-transitive-dep.js.gz", + "Selectors": [ + { + "Name": "Content-Encoding", + "Value": "gzip", + "Quality": "__quality__" + } + ], + "ResponseHeaders": [ + { + "Name": "Accept-Ranges", + "Value": "bytes" + }, + { + "Name": "Cache-Control", + "Value": "no-cache" + }, + { + "Name": "Content-Encoding", + "Value": "gzip" + }, + { + "Name": "Content-Length", + "Value": "__content-length__" + }, + { + "Name": "Content-Type", + "Value": "text/javascript" + }, + { + "Name": "ETag", + "Value": "__etag__" + }, + { + "Name": "ETag", + "Value": "__etag__" + }, + { + "Name": "Last-Modified", + "Value": "__last-modified__" + }, + { + "Name": "Vary", + "Value": "Content-Encoding" + } + ], + "EndpointProperties": [ + { + "Name": "integrity", + "Value": "__integrity__" + } + ] + }, + { + "Route": "_content/ClassLibrary/js/project-transitive-dep.v4.js.gz", + "AssetFile": "${ProjectPath}\\ClassLibrary\\obj\\Debug\\${Tfm}\\compressed\\_content\\ClassLibrary\\js\\project-transitive-dep.v4.js.gz", + "Selectors": [], + "ResponseHeaders": [ + { + "Name": "Accept-Ranges", + "Value": "bytes" + }, + { + "Name": "Cache-Control", + "Value": "no-cache" + }, + { + "Name": "Content-Encoding", + "Value": "gzip" + }, + { + "Name": "Content-Length", + "Value": "__content-length__" + }, + { + "Name": "Content-Type", + "Value": "text/javascript" + }, + { + "Name": "ETag", + "Value": "__etag__" + }, + { + "Name": "Last-Modified", + "Value": "__last-modified__" + }, + { + "Name": "Vary", + "Value": "Content-Encoding" + } + ], + "EndpointProperties": [ + { + "Name": "integrity", + "Value": "__integrity__" + } + ] + }, + { + "Route": "_content/ClassLibrary/js/project-transitive-dep.v4.js", + "AssetFile": "${ProjectPath}\\ClassLibrary\\obj\\Debug\\${Tfm}\\compressed\\_content\\ClassLibrary\\js\\project-transitive-dep.v4.js.gz", + "Selectors": [ + { + "Name": "Content-Encoding", + "Value": "gzip", + "Quality": "__quality__" + } + ], + "ResponseHeaders": [ + { + "Name": "Accept-Ranges", + "Value": "bytes" + }, + { + "Name": "Cache-Control", + "Value": "no-cache" + }, + { + "Name": "Content-Encoding", + "Value": "gzip" + }, + { + "Name": "Content-Length", + "Value": "__content-length__" + }, + { + "Name": "Content-Type", + "Value": "text/javascript" + }, + { + "Name": "ETag", + "Value": "__etag__" + }, + { + "Name": "ETag", + "Value": "__etag__" + }, + { + "Name": "Last-Modified", + "Value": "__last-modified__" + }, + { + "Name": "Vary", + "Value": "Content-Encoding" + } + ], + "EndpointProperties": [ + { + "Name": "integrity", + "Value": "__integrity__" + } + ] + }, + { + "Route": "_content/ClassLibrary/ClassLibrary.bundle.scp.css", + "AssetFile": "${ProjectPath}\\ClassLibrary\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ClassLibrary.bundle.scp.css", + "Selectors": [], + "ResponseHeaders": [ + { + "Name": "Accept-Ranges", + "Value": "bytes" + }, + { + "Name": "Cache-Control", + "Value": "no-cache" + }, + { + "Name": "Content-Length", + "Value": "__content-length__" + }, + { + "Name": "Content-Type", + "Value": "text/css" + }, + { + "Name": "ETag", + "Value": "__etag__" + }, + { + "Name": "Last-Modified", + "Value": "__last-modified__" + } + ], + "EndpointProperties": [ + { + "Name": "integrity", + "Value": "__integrity__" + } + ] + }, + { + "Route": "_content/ClassLibrary/ClassLibrary.__fingerprint__.bundle.scp.css", + "AssetFile": "${ProjectPath}\\ClassLibrary\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ClassLibrary.bundle.scp.css", + "Selectors": [], + "ResponseHeaders": [ + { + "Name": "Accept-Ranges", + "Value": "bytes" + }, + { + "Name": "Cache-Control", + "Value": "max-age=31536000, immutable" + }, + { + "Name": "Content-Length", + "Value": "__content-length__" + }, + { + "Name": "Content-Type", + "Value": "text/css" + }, + { + "Name": "ETag", + "Value": "__etag__" + }, + { + "Name": "Last-Modified", + "Value": "__last-modified__" + } + ], + "EndpointProperties": [ + { + "Name": "fingerprint", + "Value": "__fingerprint__" + }, + { + "Name": "integrity", + "Value": "__integrity__" + }, + { + "Name": "label", + "Value": "_content/ClassLibrary/ClassLibrary.bundle.scp.css" + } + ] + }, + { + "Route": "_content/ClassLibrary/js/project-transitive-dep.js", + "AssetFile": "${ProjectPath}\\ClassLibrary\\wwwroot\\js\\project-transitive-dep.js", + "Selectors": [], + "ResponseHeaders": [ + { + "Name": "Accept-Ranges", + "Value": "bytes" + }, + { + "Name": "Cache-Control", + "Value": "no-cache" + }, + { + "Name": "Content-Length", + "Value": "__content-length__" + }, + { + "Name": "Content-Type", + "Value": "text/javascript" + }, + { + "Name": "ETag", + "Value": "__etag__" + }, + { + "Name": "Last-Modified", + "Value": "__last-modified__" + } + ], + "EndpointProperties": [ + { + "Name": "integrity", + "Value": "__integrity__" + } + ] + }, + { + "Route": "_content/ClassLibrary/js/project-transitive-dep.v4.js", + "AssetFile": "${ProjectPath}\\ClassLibrary\\wwwroot\\js\\project-transitive-dep.v4.js", + "Selectors": [], + "ResponseHeaders": [ + { + "Name": "Accept-Ranges", + "Value": "bytes" + }, + { + "Name": "Cache-Control", + "Value": "no-cache" + }, + { + "Name": "Content-Length", + "Value": "__content-length__" + }, + { + "Name": "Content-Type", + "Value": "text/javascript" + }, + { + "Name": "ETag", + "Value": "__etag__" + }, + { + "Name": "Last-Modified", + "Value": "__last-modified__" + } + ], + "EndpointProperties": [ + { + "Name": "integrity", + "Value": "__integrity__" + } + ] + } + ] +} \ No newline at end of file diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Clean_RemovesManifestFrom_BuildAndIntermediateOutput.Build.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Clean_RemovesManifestFrom_BuildAndIntermediateOutput.Build.staticwebassets.json index 8ae2db3dd2ec..ab40209e2da7 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Clean_RemovesManifestFrom_BuildAndIntermediateOutput.Build.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Clean_RemovesManifestFrom_BuildAndIntermediateOutput.Build.staticwebassets.json @@ -2,18 +2,18 @@ "Version": 1, "Hash": "__hash__", "Source": "ComponentApp", - "BasePath": "_content/ComponentApp", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Build", "ReferencedProjectsConfiguration": [], "DiscoveryPatterns": [], "Assets": [ { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "AssetKind": "All", "AssetMode": "Reference", @@ -27,16 +27,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -50,16 +50,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -73,16 +73,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.server.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -96,7 +96,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -105,7 +105,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -128,7 +128,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]!.bundle.scp.css", "AssetKind": "All", "AssetMode": "Reference", @@ -151,7 +151,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -174,7 +174,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint}]?.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -196,7 +196,7 @@ "Endpoints": [ { "Route": "ComponentApp.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -241,7 +241,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -294,7 +294,7 @@ }, { "Route": "ComponentApp.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -349,7 +349,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -412,7 +412,7 @@ }, { "Route": "ComponentApp.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -457,7 +457,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -510,7 +510,7 @@ }, { "Route": "ComponentApp.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -565,7 +565,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -628,7 +628,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -673,7 +673,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -726,7 +726,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -781,7 +781,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -844,7 +844,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -889,7 +889,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -942,7 +942,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -997,7 +997,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_AppendTargetFrameworkToOutputPathFalse_GeneratesPublishJsonManifestAndCopiesPublishAssets.Build.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_AppendTargetFrameworkToOutputPathFalse_GeneratesPublishJsonManifestAndCopiesPublishAssets.Build.staticwebassets.json index cf672aab9132..f8528ca0503b 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_AppendTargetFrameworkToOutputPathFalse_GeneratesPublishJsonManifestAndCopiesPublishAssets.Build.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_AppendTargetFrameworkToOutputPathFalse_GeneratesPublishJsonManifestAndCopiesPublishAssets.Build.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "AppWithPackageAndP2PReference", - "BasePath": "_content/AppWithPackageAndP2PReference", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Build", "ReferencedProjectsConfiguration": [ { @@ -139,11 +139,11 @@ "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -157,7 +157,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\bundle\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\bundle\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -258,7 +258,7 @@ "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\bundle\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -784,7 +784,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -829,7 +829,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -882,7 +882,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -941,7 +941,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_AppendTargetFrameworkToOutputPathFalse_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.files.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_AppendTargetFrameworkToOutputPathFalse_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.files.json index cb6cd46e5aff..579d21c42b1d 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_AppendTargetFrameworkToOutputPathFalse_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.files.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_AppendTargetFrameworkToOutputPathFalse_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.files.json @@ -29,9 +29,9 @@ "${OutputPath}\\wwwroot\\_content\\RazorPackageLibraryTransitiveDependency\\js\\pkg-transitive-dep.js", "${OutputPath}\\wwwroot\\_content\\RazorPackageLibraryTransitiveDependency\\js\\pkg-transitive-dep.js.br", "${OutputPath}\\wwwroot\\_content\\RazorPackageLibraryTransitiveDependency\\js\\pkg-transitive-dep.js.gz", - "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\bundle\\AppWithPackageAndP2PReference.styles.css", - "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "${OutputPath}\\wwwroot\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "${OutputPath}\\wwwroot\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "${OutputPath}\\wwwroot\\AppWithPackageAndP2PReference#[.{fingerprint}]?.styles.css", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_AppendTargetFrameworkToOutputPathFalse_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_AppendTargetFrameworkToOutputPathFalse_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.staticwebassets.json index 71ca26b2e533..d064a76eab26 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_AppendTargetFrameworkToOutputPathFalse_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_AppendTargetFrameworkToOutputPathFalse_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "AppWithPackageAndP2PReference", - "BasePath": "_content/AppWithPackageAndP2PReference", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Publish", "ReferencedProjectsConfiguration": [ { @@ -185,11 +185,11 @@ "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -203,7 +203,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\bundle\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\bundle\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -304,7 +304,7 @@ "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\bundle\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -323,11 +323,11 @@ "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\publish\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -341,7 +341,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\bundle\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\bundle\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -1214,7 +1214,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1259,7 +1259,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1312,7 +1312,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1371,7 +1371,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1928,7 +1928,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css.br", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -1973,7 +1973,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css.br", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -2026,7 +2026,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [ { "Name": "Content-Encoding", @@ -2085,7 +2085,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_DifferentBuildAndPublish_LibraryInitializers.Build.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_DifferentBuildAndPublish_LibraryInitializers.Build.staticwebassets.json index 0888f7a77675..f864403dbfae 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_DifferentBuildAndPublish_LibraryInitializers.Build.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_DifferentBuildAndPublish_LibraryInitializers.Build.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "AppWithPackageAndP2PReference", - "BasePath": "_content/AppWithPackageAndP2PReference", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Build", "ReferencedProjectsConfiguration": [ { @@ -185,11 +185,11 @@ "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -203,16 +203,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference.modules.json.gz", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference.modules.json.gz", "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference.modules.json.gz", "AssetKind": "Build", "AssetMode": "CurrentProject", @@ -226,7 +226,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\jsmodules\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference.modules.json.gz", + "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\jsmodules\\AppWithPackageAndP2PReference.modules.json.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -327,7 +327,7 @@ "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\jsmodules\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference.modules.json", "AssetKind": "Build", "AssetMode": "CurrentProject", @@ -350,7 +350,7 @@ "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -1029,7 +1029,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1074,7 +1074,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1127,7 +1127,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1186,7 +1186,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1253,7 +1253,7 @@ }, { "Route": "AppWithPackageAndP2PReference.modules.json.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference.modules.json.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference.modules.json.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1298,7 +1298,7 @@ }, { "Route": "AppWithPackageAndP2PReference.modules.json", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference.modules.json.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference.modules.json.gz", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_DifferentBuildAndPublish_LibraryInitializers.Publish.files.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_DifferentBuildAndPublish_LibraryInitializers.Publish.files.json index e8b34c4c27f8..da6299295ac8 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_DifferentBuildAndPublish_LibraryInitializers.Publish.files.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_DifferentBuildAndPublish_LibraryInitializers.Publish.files.json @@ -1,6 +1,6 @@ [ - "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", - "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference.styles.css", "${OutputPath}\\wwwroot\\AppWithPackageAndP2PReference.modules.json", "${OutputPath}\\wwwroot\\AppWithPackageAndP2PReference.modules.json.br", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_DifferentBuildAndPublish_LibraryInitializers.Publish.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_DifferentBuildAndPublish_LibraryInitializers.Publish.staticwebassets.json index 1f52b44bb101..242de842fcbb 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_DifferentBuildAndPublish_LibraryInitializers.Publish.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_DifferentBuildAndPublish_LibraryInitializers.Publish.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "AppWithPackageAndP2PReference", - "BasePath": "_content/AppWithPackageAndP2PReference", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Publish", "ReferencedProjectsConfiguration": [ { @@ -254,11 +254,11 @@ "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -272,7 +272,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -369,11 +369,11 @@ "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -387,16 +387,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference.modules.json.br", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference.modules.json.br", "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference.modules.json.br", "AssetKind": "Publish", "AssetMode": "CurrentProject", @@ -410,16 +410,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\jsmodules\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference.modules.json.br", + "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\jsmodules\\AppWithPackageAndP2PReference.modules.json.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference.modules.json.gz", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference.modules.json.gz", "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference.modules.json.gz", "AssetKind": "Publish", "AssetMode": "CurrentProject", @@ -433,7 +433,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\jsmodules\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference.modules.json.gz", + "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\jsmodules\\AppWithPackageAndP2PReference.modules.json.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -534,7 +534,7 @@ "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\jsmodules\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference.modules.json", "AssetKind": "Publish", "AssetMode": "CurrentProject", @@ -557,7 +557,7 @@ "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -1613,7 +1613,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1658,7 +1658,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1711,7 +1711,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1770,7 +1770,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -2237,7 +2237,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css.br", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -2282,7 +2282,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css.br", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -2335,7 +2335,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [ { "Name": "Content-Encoding", @@ -2394,7 +2394,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [ { "Name": "Content-Encoding", @@ -2461,7 +2461,7 @@ }, { "Route": "AppWithPackageAndP2PReference.modules.json.br", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference.modules.json.br", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference.modules.json.br", "Selectors": [], "ResponseHeaders": [ { @@ -2506,7 +2506,7 @@ }, { "Route": "AppWithPackageAndP2PReference.modules.json", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference.modules.json.br", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference.modules.json.br", "Selectors": [ { "Name": "Content-Encoding", @@ -2561,7 +2561,7 @@ }, { "Route": "AppWithPackageAndP2PReference.modules.json.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference.modules.json.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference.modules.json.gz", "Selectors": [], "ResponseHeaders": [ { @@ -2606,7 +2606,7 @@ }, { "Route": "AppWithPackageAndP2PReference.modules.json", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference.modules.json.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference.modules.json.gz", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_GeneratesPublishJsonManifestAndCopiesPublishAssets.Build.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_GeneratesPublishJsonManifestAndCopiesPublishAssets.Build.staticwebassets.json index 5e414fea33dc..fd866dc607c5 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_GeneratesPublishJsonManifestAndCopiesPublishAssets.Build.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_GeneratesPublishJsonManifestAndCopiesPublishAssets.Build.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "AppWithPackageAndP2PReference", - "BasePath": "_content/AppWithPackageAndP2PReference", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Build", "ReferencedProjectsConfiguration": [ { @@ -139,11 +139,11 @@ "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -157,7 +157,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -258,7 +258,7 @@ "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -784,7 +784,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -829,7 +829,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -882,7 +882,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -941,7 +941,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.files.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.files.json index 7f5bc02e4c69..cd0e497b7792 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.files.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.files.json @@ -29,8 +29,8 @@ "${OutputPath}\\wwwroot\\_content\\RazorPackageLibraryTransitiveDependency\\js\\pkg-transitive-dep.js", "${OutputPath}\\wwwroot\\_content\\RazorPackageLibraryTransitiveDependency\\js\\pkg-transitive-dep.js.br", "${OutputPath}\\wwwroot\\_content\\RazorPackageLibraryTransitiveDependency\\js\\pkg-transitive-dep.js.gz", - "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", - "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference.styles.css", "${OutputPath}\\wwwroot\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "${OutputPath}\\wwwroot\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.staticwebassets.json index 4128faa05536..bfc567176e5c 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "AppWithPackageAndP2PReference", - "BasePath": "_content/AppWithPackageAndP2PReference", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Publish", "ReferencedProjectsConfiguration": [ { @@ -185,11 +185,11 @@ "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -203,7 +203,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -300,11 +300,11 @@ "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -318,7 +318,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -419,7 +419,7 @@ "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -1214,7 +1214,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1259,7 +1259,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1312,7 +1312,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1371,7 +1371,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1838,7 +1838,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css.br", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -1883,7 +1883,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css.br", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -1936,7 +1936,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1995,7 +1995,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_IncorporatesInitializersFromClassLibrariesAndPublishesAssetsToTheRightLocation.Build.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_IncorporatesInitializersFromClassLibrariesAndPublishesAssetsToTheRightLocation.Build.staticwebassets.json index b5c4b2816213..1dc00d8ee849 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_IncorporatesInitializersFromClassLibrariesAndPublishesAssetsToTheRightLocation.Build.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_IncorporatesInitializersFromClassLibrariesAndPublishesAssetsToTheRightLocation.Build.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "AppWithPackageAndP2PReference", - "BasePath": "_content/AppWithPackageAndP2PReference", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Build", "ReferencedProjectsConfiguration": [ { @@ -185,11 +185,11 @@ "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -203,16 +203,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference.modules.json.gz", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference.modules.json.gz", "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference.modules.json.gz", "AssetKind": "Build", "AssetMode": "CurrentProject", @@ -226,7 +226,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\jsmodules\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference.modules.json.gz", + "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\jsmodules\\AppWithPackageAndP2PReference.modules.json.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -327,7 +327,7 @@ "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\jsmodules\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference.modules.json", "AssetKind": "Build", "AssetMode": "CurrentProject", @@ -350,7 +350,7 @@ "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -1075,7 +1075,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1120,7 +1120,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1173,7 +1173,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1232,7 +1232,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1299,7 +1299,7 @@ }, { "Route": "AppWithPackageAndP2PReference.modules.json.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference.modules.json.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference.modules.json.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1344,7 +1344,7 @@ }, { "Route": "AppWithPackageAndP2PReference.modules.json", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference.modules.json.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference.modules.json.gz", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_IncorporatesInitializersFromClassLibrariesAndPublishesAssetsToTheRightLocation.Publish.files.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_IncorporatesInitializersFromClassLibrariesAndPublishesAssetsToTheRightLocation.Publish.files.json index 1dcf6e33f124..45fd654ea97e 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_IncorporatesInitializersFromClassLibrariesAndPublishesAssetsToTheRightLocation.Publish.files.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_IncorporatesInitializersFromClassLibrariesAndPublishesAssetsToTheRightLocation.Publish.files.json @@ -38,10 +38,10 @@ "${OutputPath}\\wwwroot\\_content\\RazorPackageLibraryTransitiveDependency\\js\\pkg-transitive-dep.js", "${OutputPath}\\wwwroot\\_content\\RazorPackageLibraryTransitiveDependency\\js\\pkg-transitive-dep.js.br", "${OutputPath}\\wwwroot\\_content\\RazorPackageLibraryTransitiveDependency\\js\\pkg-transitive-dep.js.gz", - "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", - "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", - "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference.modules.json.br", - "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference.modules.json.gz", + "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference.modules.json.br", + "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference.modules.json.gz", "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\jsmodules\\jsmodules.publish.manifest.json", "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference.styles.css", "${OutputPath}\\wwwroot\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_IncorporatesInitializersFromClassLibrariesAndPublishesAssetsToTheRightLocation.Publish.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_IncorporatesInitializersFromClassLibrariesAndPublishesAssetsToTheRightLocation.Publish.staticwebassets.json index 3ebb7c9964a0..275a8caf202e 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_IncorporatesInitializersFromClassLibrariesAndPublishesAssetsToTheRightLocation.Publish.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_IncorporatesInitializersFromClassLibrariesAndPublishesAssetsToTheRightLocation.Publish.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "AppWithPackageAndP2PReference", - "BasePath": "_content/AppWithPackageAndP2PReference", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Publish", "ReferencedProjectsConfiguration": [ { @@ -254,11 +254,11 @@ "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -272,7 +272,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -369,11 +369,11 @@ "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -387,16 +387,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference.modules.json.br", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference.modules.json.br", "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference.modules.json.br", "AssetKind": "Publish", "AssetMode": "CurrentProject", @@ -410,16 +410,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\jsmodules\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference.modules.json.br", + "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\jsmodules\\AppWithPackageAndP2PReference.modules.json.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference.modules.json.gz", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference.modules.json.gz", "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference.modules.json.gz", "AssetKind": "Publish", "AssetMode": "CurrentProject", @@ -433,7 +433,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\jsmodules\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference.modules.json.gz", + "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\jsmodules\\AppWithPackageAndP2PReference.modules.json.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -534,7 +534,7 @@ "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\jsmodules\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference.modules.json", "AssetKind": "Publish", "AssetMode": "CurrentProject", @@ -557,7 +557,7 @@ "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -1682,7 +1682,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1727,7 +1727,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1780,7 +1780,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1839,7 +1839,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -2306,7 +2306,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css.br", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -2351,7 +2351,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css.br", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -2404,7 +2404,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [ { "Name": "Content-Encoding", @@ -2463,7 +2463,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [ { "Name": "Content-Encoding", @@ -2530,7 +2530,7 @@ }, { "Route": "AppWithPackageAndP2PReference.modules.json.br", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference.modules.json.br", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference.modules.json.br", "Selectors": [], "ResponseHeaders": [ { @@ -2575,7 +2575,7 @@ }, { "Route": "AppWithPackageAndP2PReference.modules.json", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference.modules.json.br", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference.modules.json.br", "Selectors": [ { "Name": "Content-Encoding", @@ -2630,7 +2630,7 @@ }, { "Route": "AppWithPackageAndP2PReference.modules.json.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference.modules.json.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference.modules.json.gz", "Selectors": [], "ResponseHeaders": [ { @@ -2675,7 +2675,7 @@ }, { "Route": "AppWithPackageAndP2PReference.modules.json", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference.modules.json.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference.modules.json.gz", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_NoBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Build.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_NoBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Build.staticwebassets.json index 5e414fea33dc..fd866dc607c5 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_NoBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Build.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_NoBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Build.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "AppWithPackageAndP2PReference", - "BasePath": "_content/AppWithPackageAndP2PReference", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Build", "ReferencedProjectsConfiguration": [ { @@ -139,11 +139,11 @@ "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -157,7 +157,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -258,7 +258,7 @@ "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -784,7 +784,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -829,7 +829,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -882,7 +882,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -941,7 +941,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_NoBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.files.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_NoBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.files.json index 301b179bfe68..64a2b2273f42 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_NoBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.files.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_NoBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.files.json @@ -1,6 +1,6 @@ [ - "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", - "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference.styles.css", "${OutputPath}\\wwwroot\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "${OutputPath}\\wwwroot\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_NoBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_NoBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.staticwebassets.json index 4128faa05536..bfc567176e5c 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_NoBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_NoBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "AppWithPackageAndP2PReference", - "BasePath": "_content/AppWithPackageAndP2PReference", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Publish", "ReferencedProjectsConfiguration": [ { @@ -185,11 +185,11 @@ "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -203,7 +203,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -300,11 +300,11 @@ "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -318,7 +318,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -419,7 +419,7 @@ "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -1214,7 +1214,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1259,7 +1259,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1312,7 +1312,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1371,7 +1371,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1838,7 +1838,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css.br", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -1883,7 +1883,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css.br", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -1936,7 +1936,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1995,7 +1995,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_PublishSingleFile_GeneratesPublishJsonManifestAndCopiesPublishAssets.Build.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_PublishSingleFile_GeneratesPublishJsonManifestAndCopiesPublishAssets.Build.staticwebassets.json index 38c415e26e25..f78eea5b6067 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_PublishSingleFile_GeneratesPublishJsonManifestAndCopiesPublishAssets.Build.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_PublishSingleFile_GeneratesPublishJsonManifestAndCopiesPublishAssets.Build.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "AppWithPackageAndP2PReference", - "BasePath": "_content/AppWithPackageAndP2PReference", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Build", "ReferencedProjectsConfiguration": [ { @@ -139,11 +139,11 @@ "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -157,7 +157,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\scopedcss\\bundle\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\scopedcss\\bundle\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -258,7 +258,7 @@ "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\scopedcss\\bundle\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -784,7 +784,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -829,7 +829,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -882,7 +882,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -941,7 +941,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_PublishSingleFile_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.files.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_PublishSingleFile_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.files.json index e8dc3730b08e..0b77179d4e63 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_PublishSingleFile_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.files.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_PublishSingleFile_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.files.json @@ -1,6 +1,6 @@ [ - "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", - "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\scopedcss\\bundle\\AppWithPackageAndP2PReference.styles.css", "${OutputPath}\\wwwroot\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "${OutputPath}\\wwwroot\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_PublishSingleFile_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_PublishSingleFile_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.staticwebassets.json index 519f62cd9f11..29c266ca5461 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_PublishSingleFile_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_PublishSingleFile_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "AppWithPackageAndP2PReference", - "BasePath": "_content/AppWithPackageAndP2PReference", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Publish", "ReferencedProjectsConfiguration": [ { @@ -185,11 +185,11 @@ "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -203,7 +203,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\scopedcss\\bundle\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\scopedcss\\bundle\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -300,11 +300,11 @@ "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -318,7 +318,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\scopedcss\\bundle\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\scopedcss\\bundle\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -419,7 +419,7 @@ "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\scopedcss\\bundle\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -1214,7 +1214,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1259,7 +1259,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1312,7 +1312,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1371,7 +1371,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1838,7 +1838,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css.br", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -1883,7 +1883,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css.br", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -1936,7 +1936,7 @@ }, { "Route": "AppWithPackageAndP2PReference.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1995,7 +1995,7 @@ }, { "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_WorksWithStaticWebAssetsV1ClassLibraries.Build.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_WorksWithStaticWebAssetsV1ClassLibraries.Build.staticwebassets.json index f337e812694b..b1776f7adb3f 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_WorksWithStaticWebAssetsV1ClassLibraries.Build.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_WorksWithStaticWebAssetsV1ClassLibraries.Build.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "AppWithPackageAndP2PReference", - "BasePath": "_content/AppWithPackageAndP2PReference", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Build", "ReferencedProjectsConfiguration": [ { @@ -93,71 +93,71 @@ "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\css\\site.css.gz", - "SourceId": "AnotherClassLib", - "SourceType": "Project", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "SourceId": "AppWithPackageAndP2PReference", + "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/AnotherClassLib", - "RelativePath": "css/site.css.gz", + "BasePath": "/", + "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", - "AssetMode": "All", + "AssetMode": "CurrentProject", "AssetRole": "Alternative", "AssetMergeBehavior": "", "AssetMergeSource": "", - "RelatedAsset": "${ProjectPath}\\AnotherClassLib\\wwwroot\\css\\site.css", + "RelatedAsset": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference.styles.css", "AssetTraitName": "Content-Encoding", "AssetTraitValue": "gzip", "Fingerprint": "__fingerprint__", "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AnotherClassLib\\wwwroot\\css\\_content\\AnotherClassLib\\css\\site.css.gz", + "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\js\\project-direct-dep.js.gz", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\css\\site.css.gz", "SourceId": "AnotherClassLib", "SourceType": "Project", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\", "BasePath": "_content/AnotherClassLib", - "RelativePath": "js/project-direct-dep.js.gz", + "RelativePath": "css/site.css.gz", "AssetKind": "All", "AssetMode": "All", "AssetRole": "Alternative", "AssetMergeBehavior": "", "AssetMergeSource": "", - "RelatedAsset": "${ProjectPath}\\AnotherClassLib\\wwwroot\\js\\project-direct-dep.js", + "RelatedAsset": "${ProjectPath}\\AnotherClassLib\\wwwroot\\css\\site.css", "AssetTraitName": "Content-Encoding", "AssetTraitValue": "gzip", "Fingerprint": "__fingerprint__", "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AnotherClassLib\\wwwroot\\js\\_content\\AnotherClassLib\\js\\project-direct-dep.js.gz", + "OriginalItemSpec": "${ProjectPath}\\AnotherClassLib\\wwwroot\\css\\_content\\AnotherClassLib\\css\\site.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", - "SourceId": "AppWithPackageAndP2PReference", - "SourceType": "Computed", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\js\\project-direct-dep.js.gz", + "SourceId": "AnotherClassLib", + "SourceType": "Project", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/AppWithPackageAndP2PReference", - "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "BasePath": "_content/AnotherClassLib", + "RelativePath": "js/project-direct-dep.js.gz", "AssetKind": "All", - "AssetMode": "CurrentProject", + "AssetMode": "All", "AssetRole": "Alternative", "AssetMergeBehavior": "", "AssetMergeSource": "", - "RelatedAsset": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference.styles.css", + "RelatedAsset": "${ProjectPath}\\AnotherClassLib\\wwwroot\\js\\project-direct-dep.js", "AssetTraitName": "Content-Encoding", "AssetTraitValue": "gzip", "Fingerprint": "__fingerprint__", "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\AnotherClassLib\\wwwroot\\js\\_content\\AnotherClassLib\\js\\project-direct-dep.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -304,7 +304,7 @@ "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -537,8 +537,8 @@ ] }, { - "Route": "_content/AnotherClassLib/css/site.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\css\\site.css.gz", + "Route": "AppWithPackageAndP2PReference.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -582,15 +582,9 @@ ] }, { - "Route": "_content/AnotherClassLib/css/site.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\css\\site.css.gz", - "Selectors": [ - { - "Name": "Content-Encoding", - "Value": "gzip", - "Quality": "__quality__" - } - ], + "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Selectors": [], "ResponseHeaders": [ { "Name": "Accept-Ranges", @@ -598,7 +592,7 @@ }, { "Name": "Cache-Control", - "Value": "no-cache" + "Value": "max-age=31536000, immutable" }, { "Name": "Content-Encoding", @@ -616,10 +610,6 @@ "Name": "ETag", "Value": "__etag__" }, - { - "Name": "ETag", - "Value": "__etag__" - }, { "Name": "Last-Modified", "Value": "__last-modified__" @@ -630,16 +620,30 @@ } ], "EndpointProperties": [ + { + "Name": "fingerprint", + "Value": "__fingerprint__" + }, { "Name": "integrity", "Value": "__integrity__" + }, + { + "Name": "label", + "Value": "AppWithPackageAndP2PReference.styles.css.gz" } ] }, { - "Route": "_content/AnotherClassLib/js/project-direct-dep.js.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\js\\project-direct-dep.js.gz", - "Selectors": [], + "Route": "AppWithPackageAndP2PReference.styles.css", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Selectors": [ + { + "Name": "Content-Encoding", + "Value": "gzip", + "Quality": "__quality__" + } + ], "ResponseHeaders": [ { "Name": "Accept-Ranges", @@ -659,7 +663,11 @@ }, { "Name": "Content-Type", - "Value": "text/javascript" + "Value": "text/css" + }, + { + "Name": "ETag", + "Value": "__etag__" }, { "Name": "ETag", @@ -669,6 +677,10 @@ "Name": "Last-Modified", "Value": "__last-modified__" }, + { + "Name": "Link", + "Value": "\u003C_content/RazorPackageLibraryDirectDependency/RazorPackageLibraryDirectDependency.__fingerprint__.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022" + }, { "Name": "Vary", "Value": "Content-Encoding" @@ -682,8 +694,8 @@ ] }, { - "Route": "_content/AnotherClassLib/js/project-direct-dep.js", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\js\\project-direct-dep.js.gz", + "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -698,7 +710,7 @@ }, { "Name": "Cache-Control", - "Value": "no-cache" + "Value": "max-age=31536000, immutable" }, { "Name": "Content-Encoding", @@ -710,7 +722,7 @@ }, { "Name": "Content-Type", - "Value": "text/javascript" + "Value": "text/css" }, { "Name": "ETag", @@ -724,21 +736,33 @@ "Name": "Last-Modified", "Value": "__last-modified__" }, + { + "Name": "Link", + "Value": "\u003C_content/RazorPackageLibraryDirectDependency/RazorPackageLibraryDirectDependency.__fingerprint__.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022" + }, { "Name": "Vary", "Value": "Content-Encoding" } ], "EndpointProperties": [ + { + "Name": "fingerprint", + "Value": "__fingerprint__" + }, { "Name": "integrity", "Value": "__integrity__" + }, + { + "Name": "label", + "Value": "AppWithPackageAndP2PReference.styles.css" } ] }, { - "Route": "AppWithPackageAndP2PReference.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Route": "_content/AnotherClassLib/css/site.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\css\\site.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -782,9 +806,15 @@ ] }, { - "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", - "Selectors": [], + "Route": "_content/AnotherClassLib/css/site.css", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\css\\site.css.gz", + "Selectors": [ + { + "Name": "Content-Encoding", + "Value": "gzip", + "Quality": "__quality__" + } + ], "ResponseHeaders": [ { "Name": "Accept-Ranges", @@ -792,7 +822,7 @@ }, { "Name": "Cache-Control", - "Value": "max-age=31536000, immutable" + "Value": "no-cache" }, { "Name": "Content-Encoding", @@ -810,6 +840,10 @@ "Name": "ETag", "Value": "__etag__" }, + { + "Name": "ETag", + "Value": "__etag__" + }, { "Name": "Last-Modified", "Value": "__last-modified__" @@ -820,30 +854,16 @@ } ], "EndpointProperties": [ - { - "Name": "fingerprint", - "Value": "__fingerprint__" - }, { "Name": "integrity", "Value": "__integrity__" - }, - { - "Name": "label", - "Value": "AppWithPackageAndP2PReference.styles.css.gz" } ] }, { - "Route": "AppWithPackageAndP2PReference.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", - "Selectors": [ - { - "Name": "Content-Encoding", - "Value": "gzip", - "Quality": "__quality__" - } - ], + "Route": "_content/AnotherClassLib/js/project-direct-dep.js.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\js\\project-direct-dep.js.gz", + "Selectors": [], "ResponseHeaders": [ { "Name": "Accept-Ranges", @@ -863,11 +883,7 @@ }, { "Name": "Content-Type", - "Value": "text/css" - }, - { - "Name": "ETag", - "Value": "__etag__" + "Value": "text/javascript" }, { "Name": "ETag", @@ -877,10 +893,6 @@ "Name": "Last-Modified", "Value": "__last-modified__" }, - { - "Name": "Link", - "Value": "\u003C_content/RazorPackageLibraryDirectDependency/RazorPackageLibraryDirectDependency.__fingerprint__.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022" - }, { "Name": "Vary", "Value": "Content-Encoding" @@ -894,8 +906,8 @@ ] }, { - "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Route": "_content/AnotherClassLib/js/project-direct-dep.js", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\js\\project-direct-dep.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -910,7 +922,7 @@ }, { "Name": "Cache-Control", - "Value": "max-age=31536000, immutable" + "Value": "no-cache" }, { "Name": "Content-Encoding", @@ -922,7 +934,7 @@ }, { "Name": "Content-Type", - "Value": "text/css" + "Value": "text/javascript" }, { "Name": "ETag", @@ -936,27 +948,15 @@ "Name": "Last-Modified", "Value": "__last-modified__" }, - { - "Name": "Link", - "Value": "\u003C_content/RazorPackageLibraryDirectDependency/RazorPackageLibraryDirectDependency.__fingerprint__.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022" - }, { "Name": "Vary", "Value": "Content-Encoding" } ], "EndpointProperties": [ - { - "Name": "fingerprint", - "Value": "__fingerprint__" - }, { "Name": "integrity", "Value": "__integrity__" - }, - { - "Name": "label", - "Value": "AppWithPackageAndP2PReference.styles.css" } ] }, diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_WorksWithStaticWebAssetsV1ClassLibraries.Publish.files.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_WorksWithStaticWebAssetsV1ClassLibraries.Publish.files.json index 8c6ddedc2074..2742db812e43 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_WorksWithStaticWebAssetsV1ClassLibraries.Publish.files.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_WorksWithStaticWebAssetsV1ClassLibraries.Publish.files.json @@ -30,8 +30,8 @@ "${OutputPath}\\wwwroot\\js\\project-direct-dep.js", "${OutputPath}\\wwwroot\\js\\project-transitive-dep.js", "${OutputPath}\\wwwroot\\js\\project-transitive-dep.v4.js", - "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", - "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference.styles.css", "${OutputPath}\\wwwroot\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "${OutputPath}\\wwwroot\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_WorksWithStaticWebAssetsV1ClassLibraries.Publish.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_WorksWithStaticWebAssetsV1ClassLibraries.Publish.staticwebassets.json index 70077033db74..20005ea9697f 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_WorksWithStaticWebAssetsV1ClassLibraries.Publish.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishProjectWithReferences_WorksWithStaticWebAssetsV1ClassLibraries.Publish.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "AppWithPackageAndP2PReference", - "BasePath": "_content/AppWithPackageAndP2PReference", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Publish", "ReferencedProjectsConfiguration": [ { @@ -93,71 +93,71 @@ "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\css\\site.css.gz", - "SourceId": "AnotherClassLib", - "SourceType": "Project", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "SourceId": "AppWithPackageAndP2PReference", + "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/AnotherClassLib", - "RelativePath": "css/site.css.gz", + "BasePath": "/", + "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", - "AssetMode": "All", + "AssetMode": "CurrentProject", "AssetRole": "Alternative", "AssetMergeBehavior": "", "AssetMergeSource": "", - "RelatedAsset": "${ProjectPath}\\AnotherClassLib\\wwwroot\\css\\site.css", + "RelatedAsset": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference.styles.css", "AssetTraitName": "Content-Encoding", "AssetTraitValue": "gzip", "Fingerprint": "__fingerprint__", "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AnotherClassLib\\wwwroot\\css\\_content\\AnotherClassLib\\css\\site.css.gz", + "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\js\\project-direct-dep.js.gz", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\css\\site.css.gz", "SourceId": "AnotherClassLib", "SourceType": "Project", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\", "BasePath": "_content/AnotherClassLib", - "RelativePath": "js/project-direct-dep.js.gz", + "RelativePath": "css/site.css.gz", "AssetKind": "All", "AssetMode": "All", "AssetRole": "Alternative", "AssetMergeBehavior": "", "AssetMergeSource": "", - "RelatedAsset": "${ProjectPath}\\AnotherClassLib\\wwwroot\\js\\project-direct-dep.js", + "RelatedAsset": "${ProjectPath}\\AnotherClassLib\\wwwroot\\css\\site.css", "AssetTraitName": "Content-Encoding", "AssetTraitValue": "gzip", "Fingerprint": "__fingerprint__", "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AnotherClassLib\\wwwroot\\js\\_content\\AnotherClassLib\\js\\project-direct-dep.js.gz", + "OriginalItemSpec": "${ProjectPath}\\AnotherClassLib\\wwwroot\\css\\_content\\AnotherClassLib\\css\\site.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", - "SourceId": "AppWithPackageAndP2PReference", - "SourceType": "Computed", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\js\\project-direct-dep.js.gz", + "SourceId": "AnotherClassLib", + "SourceType": "Project", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/AppWithPackageAndP2PReference", - "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "BasePath": "_content/AnotherClassLib", + "RelativePath": "js/project-direct-dep.js.gz", "AssetKind": "All", - "AssetMode": "CurrentProject", + "AssetMode": "All", "AssetRole": "Alternative", "AssetMergeBehavior": "", "AssetMergeSource": "", - "RelatedAsset": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference.styles.css", + "RelatedAsset": "${ProjectPath}\\AnotherClassLib\\wwwroot\\js\\project-direct-dep.js", "AssetTraitName": "Content-Encoding", "AssetTraitValue": "gzip", "Fingerprint": "__fingerprint__", "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\AnotherClassLib\\wwwroot\\js\\_content\\AnotherClassLib\\js\\project-direct-dep.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -300,71 +300,71 @@ "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AnotherClassLib\\css\\site.css.br", - "SourceId": "AnotherClassLib", - "SourceType": "Project", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "SourceId": "AppWithPackageAndP2PReference", + "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/AnotherClassLib", - "RelativePath": "css/site.css.br", + "BasePath": "/", + "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "AssetKind": "All", - "AssetMode": "All", + "AssetMode": "CurrentProject", "AssetRole": "Alternative", "AssetMergeBehavior": "", "AssetMergeSource": "", - "RelatedAsset": "${ProjectPath}\\AnotherClassLib\\wwwroot\\css\\site.css", + "RelatedAsset": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference.styles.css", "AssetTraitName": "Content-Encoding", "AssetTraitValue": "br", "Fingerprint": "__fingerprint__", "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AnotherClassLib\\wwwroot\\css\\_content\\AnotherClassLib\\css\\site.css.br", + "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AnotherClassLib\\js\\project-direct-dep.js.br", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AnotherClassLib\\css\\site.css.br", "SourceId": "AnotherClassLib", "SourceType": "Project", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\", "BasePath": "_content/AnotherClassLib", - "RelativePath": "js/project-direct-dep.js.br", + "RelativePath": "css/site.css.br", "AssetKind": "All", "AssetMode": "All", "AssetRole": "Alternative", "AssetMergeBehavior": "", "AssetMergeSource": "", - "RelatedAsset": "${ProjectPath}\\AnotherClassLib\\wwwroot\\js\\project-direct-dep.js", + "RelatedAsset": "${ProjectPath}\\AnotherClassLib\\wwwroot\\css\\site.css", "AssetTraitName": "Content-Encoding", "AssetTraitValue": "br", "Fingerprint": "__fingerprint__", "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AnotherClassLib\\wwwroot\\js\\_content\\AnotherClassLib\\js\\project-direct-dep.js.br", + "OriginalItemSpec": "${ProjectPath}\\AnotherClassLib\\wwwroot\\css\\_content\\AnotherClassLib\\css\\site.css.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", - "SourceId": "AppWithPackageAndP2PReference", - "SourceType": "Computed", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AnotherClassLib\\js\\project-direct-dep.js.br", + "SourceId": "AnotherClassLib", + "SourceType": "Project", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/AppWithPackageAndP2PReference", - "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "BasePath": "_content/AnotherClassLib", + "RelativePath": "js/project-direct-dep.js.br", "AssetKind": "All", - "AssetMode": "CurrentProject", + "AssetMode": "All", "AssetRole": "Alternative", "AssetMergeBehavior": "", "AssetMergeSource": "", - "RelatedAsset": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference.styles.css", + "RelatedAsset": "${ProjectPath}\\AnotherClassLib\\wwwroot\\js\\project-direct-dep.js", "AssetTraitName": "Content-Encoding", "AssetTraitValue": "br", "Fingerprint": "__fingerprint__", "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "OriginalItemSpec": "${ProjectPath}\\AnotherClassLib\\wwwroot\\js\\_content\\AnotherClassLib\\js\\project-direct-dep.js.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -511,7 +511,7 @@ "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -744,8 +744,8 @@ ] }, { - "Route": "_content/AnotherClassLib/css/site.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\css\\site.css.gz", + "Route": "AppWithPackageAndP2PReference.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -789,15 +789,9 @@ ] }, { - "Route": "_content/AnotherClassLib/css/site.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\css\\site.css.gz", - "Selectors": [ - { - "Name": "Content-Encoding", - "Value": "gzip", - "Quality": "__quality__" - } - ], + "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Selectors": [], "ResponseHeaders": [ { "Name": "Accept-Ranges", @@ -805,7 +799,7 @@ }, { "Name": "Cache-Control", - "Value": "no-cache" + "Value": "max-age=31536000, immutable" }, { "Name": "Content-Encoding", @@ -823,10 +817,6 @@ "Name": "ETag", "Value": "__etag__" }, - { - "Name": "ETag", - "Value": "__etag__" - }, { "Name": "Last-Modified", "Value": "__last-modified__" @@ -837,16 +827,30 @@ } ], "EndpointProperties": [ + { + "Name": "fingerprint", + "Value": "__fingerprint__" + }, { "Name": "integrity", "Value": "__integrity__" + }, + { + "Name": "label", + "Value": "AppWithPackageAndP2PReference.styles.css.gz" } ] }, { - "Route": "_content/AnotherClassLib/js/project-direct-dep.js.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\js\\project-direct-dep.js.gz", - "Selectors": [], + "Route": "AppWithPackageAndP2PReference.styles.css", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Selectors": [ + { + "Name": "Content-Encoding", + "Value": "gzip", + "Quality": "__quality__" + } + ], "ResponseHeaders": [ { "Name": "Accept-Ranges", @@ -866,7 +870,11 @@ }, { "Name": "Content-Type", - "Value": "text/javascript" + "Value": "text/css" + }, + { + "Name": "ETag", + "Value": "__etag__" }, { "Name": "ETag", @@ -876,6 +884,10 @@ "Name": "Last-Modified", "Value": "__last-modified__" }, + { + "Name": "Link", + "Value": "\u003C_content/RazorPackageLibraryDirectDependency/RazorPackageLibraryDirectDependency.__fingerprint__.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022" + }, { "Name": "Vary", "Value": "Content-Encoding" @@ -889,8 +901,8 @@ ] }, { - "Route": "_content/AnotherClassLib/js/project-direct-dep.js", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\js\\project-direct-dep.js.gz", + "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -905,7 +917,7 @@ }, { "Name": "Cache-Control", - "Value": "no-cache" + "Value": "max-age=31536000, immutable" }, { "Name": "Content-Encoding", @@ -917,7 +929,7 @@ }, { "Name": "Content-Type", - "Value": "text/javascript" + "Value": "text/css" }, { "Name": "ETag", @@ -931,21 +943,33 @@ "Name": "Last-Modified", "Value": "__last-modified__" }, + { + "Name": "Link", + "Value": "\u003C_content/RazorPackageLibraryDirectDependency/RazorPackageLibraryDirectDependency.__fingerprint__.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022" + }, { "Name": "Vary", "Value": "Content-Encoding" } ], "EndpointProperties": [ + { + "Name": "fingerprint", + "Value": "__fingerprint__" + }, { "Name": "integrity", "Value": "__integrity__" + }, + { + "Name": "label", + "Value": "AppWithPackageAndP2PReference.styles.css" } ] }, { - "Route": "AppWithPackageAndP2PReference.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Route": "_content/AnotherClassLib/css/site.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\css\\site.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -989,9 +1013,15 @@ ] }, { - "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", - "Selectors": [], + "Route": "_content/AnotherClassLib/css/site.css", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\css\\site.css.gz", + "Selectors": [ + { + "Name": "Content-Encoding", + "Value": "gzip", + "Quality": "__quality__" + } + ], "ResponseHeaders": [ { "Name": "Accept-Ranges", @@ -999,7 +1029,7 @@ }, { "Name": "Cache-Control", - "Value": "max-age=31536000, immutable" + "Value": "no-cache" }, { "Name": "Content-Encoding", @@ -1017,6 +1047,10 @@ "Name": "ETag", "Value": "__etag__" }, + { + "Name": "ETag", + "Value": "__etag__" + }, { "Name": "Last-Modified", "Value": "__last-modified__" @@ -1027,30 +1061,16 @@ } ], "EndpointProperties": [ - { - "Name": "fingerprint", - "Value": "__fingerprint__" - }, { "Name": "integrity", "Value": "__integrity__" - }, - { - "Name": "label", - "Value": "AppWithPackageAndP2PReference.styles.css.gz" } ] }, { - "Route": "AppWithPackageAndP2PReference.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", - "Selectors": [ - { - "Name": "Content-Encoding", - "Value": "gzip", - "Quality": "__quality__" - } - ], + "Route": "_content/AnotherClassLib/js/project-direct-dep.js.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\js\\project-direct-dep.js.gz", + "Selectors": [], "ResponseHeaders": [ { "Name": "Accept-Ranges", @@ -1070,11 +1090,7 @@ }, { "Name": "Content-Type", - "Value": "text/css" - }, - { - "Name": "ETag", - "Value": "__etag__" + "Value": "text/javascript" }, { "Name": "ETag", @@ -1084,10 +1100,6 @@ "Name": "Last-Modified", "Value": "__last-modified__" }, - { - "Name": "Link", - "Value": "\u003C_content/RazorPackageLibraryDirectDependency/RazorPackageLibraryDirectDependency.__fingerprint__.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022" - }, { "Name": "Vary", "Value": "Content-Encoding" @@ -1101,8 +1113,8 @@ ] }, { - "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Route": "_content/AnotherClassLib/js/project-direct-dep.js", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\js\\project-direct-dep.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1117,7 +1129,7 @@ }, { "Name": "Cache-Control", - "Value": "max-age=31536000, immutable" + "Value": "no-cache" }, { "Name": "Content-Encoding", @@ -1129,7 +1141,7 @@ }, { "Name": "Content-Type", - "Value": "text/css" + "Value": "text/javascript" }, { "Name": "ETag", @@ -1143,27 +1155,15 @@ "Name": "Last-Modified", "Value": "__last-modified__" }, - { - "Name": "Link", - "Value": "\u003C_content/RazorPackageLibraryDirectDependency/RazorPackageLibraryDirectDependency.__fingerprint__.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022" - }, { "Name": "Vary", "Value": "Content-Encoding" } ], "EndpointProperties": [ - { - "Name": "fingerprint", - "Value": "__fingerprint__" - }, { "Name": "integrity", "Value": "__integrity__" - }, - { - "Name": "label", - "Value": "AppWithPackageAndP2PReference.styles.css" } ] }, @@ -1768,8 +1768,8 @@ ] }, { - "Route": "_content/AnotherClassLib/css/site.css.br", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AnotherClassLib\\css\\site.css.br", + "Route": "AppWithPackageAndP2PReference.styles.css.br", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -1813,15 +1813,9 @@ ] }, { - "Route": "_content/AnotherClassLib/css/site.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AnotherClassLib\\css\\site.css.br", - "Selectors": [ - { - "Name": "Content-Encoding", - "Value": "br", - "Quality": "__quality__" - } - ], + "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css.br", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "Selectors": [], "ResponseHeaders": [ { "Name": "Accept-Ranges", @@ -1829,7 +1823,7 @@ }, { "Name": "Cache-Control", - "Value": "no-cache" + "Value": "max-age=31536000, immutable" }, { "Name": "Content-Encoding", @@ -1847,10 +1841,6 @@ "Name": "ETag", "Value": "__etag__" }, - { - "Name": "ETag", - "Value": "__etag__" - }, { "Name": "Last-Modified", "Value": "__last-modified__" @@ -1861,16 +1851,30 @@ } ], "EndpointProperties": [ + { + "Name": "fingerprint", + "Value": "__fingerprint__" + }, { "Name": "integrity", "Value": "__integrity__" + }, + { + "Name": "label", + "Value": "AppWithPackageAndP2PReference.styles.css.br" } ] }, { - "Route": "_content/AnotherClassLib/js/project-direct-dep.js.br", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AnotherClassLib\\js\\project-direct-dep.js.br", - "Selectors": [], + "Route": "AppWithPackageAndP2PReference.styles.css", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "Selectors": [ + { + "Name": "Content-Encoding", + "Value": "br", + "Quality": "__quality__" + } + ], "ResponseHeaders": [ { "Name": "Accept-Ranges", @@ -1890,7 +1894,11 @@ }, { "Name": "Content-Type", - "Value": "text/javascript" + "Value": "text/css" + }, + { + "Name": "ETag", + "Value": "__etag__" }, { "Name": "ETag", @@ -1900,6 +1908,10 @@ "Name": "Last-Modified", "Value": "__last-modified__" }, + { + "Name": "Link", + "Value": "\u003C_content/RazorPackageLibraryDirectDependency/RazorPackageLibraryDirectDependency.__fingerprint__.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022" + }, { "Name": "Vary", "Value": "Content-Encoding" @@ -1913,8 +1925,8 @@ ] }, { - "Route": "_content/AnotherClassLib/js/project-direct-dep.js", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AnotherClassLib\\js\\project-direct-dep.js.br", + "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1929,7 +1941,7 @@ }, { "Name": "Cache-Control", - "Value": "no-cache" + "Value": "max-age=31536000, immutable" }, { "Name": "Content-Encoding", @@ -1941,7 +1953,7 @@ }, { "Name": "Content-Type", - "Value": "text/javascript" + "Value": "text/css" }, { "Name": "ETag", @@ -1955,21 +1967,33 @@ "Name": "Last-Modified", "Value": "__last-modified__" }, + { + "Name": "Link", + "Value": "\u003C_content/RazorPackageLibraryDirectDependency/RazorPackageLibraryDirectDependency.__fingerprint__.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022" + }, { "Name": "Vary", "Value": "Content-Encoding" } ], "EndpointProperties": [ + { + "Name": "fingerprint", + "Value": "__fingerprint__" + }, { "Name": "integrity", "Value": "__integrity__" + }, + { + "Name": "label", + "Value": "AppWithPackageAndP2PReference.styles.css" } ] }, { - "Route": "AppWithPackageAndP2PReference.styles.css.br", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "Route": "_content/AnotherClassLib/css/site.css.br", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AnotherClassLib\\css\\site.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -2013,9 +2037,15 @@ ] }, { - "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css.br", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", - "Selectors": [], + "Route": "_content/AnotherClassLib/css/site.css", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AnotherClassLib\\css\\site.css.br", + "Selectors": [ + { + "Name": "Content-Encoding", + "Value": "br", + "Quality": "__quality__" + } + ], "ResponseHeaders": [ { "Name": "Accept-Ranges", @@ -2023,7 +2053,7 @@ }, { "Name": "Cache-Control", - "Value": "max-age=31536000, immutable" + "Value": "no-cache" }, { "Name": "Content-Encoding", @@ -2041,6 +2071,10 @@ "Name": "ETag", "Value": "__etag__" }, + { + "Name": "ETag", + "Value": "__etag__" + }, { "Name": "Last-Modified", "Value": "__last-modified__" @@ -2051,30 +2085,16 @@ } ], "EndpointProperties": [ - { - "Name": "fingerprint", - "Value": "__fingerprint__" - }, { "Name": "integrity", "Value": "__integrity__" - }, - { - "Name": "label", - "Value": "AppWithPackageAndP2PReference.styles.css.br" } ] }, { - "Route": "AppWithPackageAndP2PReference.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", - "Selectors": [ - { - "Name": "Content-Encoding", - "Value": "br", - "Quality": "__quality__" - } - ], + "Route": "_content/AnotherClassLib/js/project-direct-dep.js.br", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AnotherClassLib\\js\\project-direct-dep.js.br", + "Selectors": [], "ResponseHeaders": [ { "Name": "Accept-Ranges", @@ -2094,11 +2114,7 @@ }, { "Name": "Content-Type", - "Value": "text/css" - }, - { - "Name": "ETag", - "Value": "__etag__" + "Value": "text/javascript" }, { "Name": "ETag", @@ -2108,10 +2124,6 @@ "Name": "Last-Modified", "Value": "__last-modified__" }, - { - "Name": "Link", - "Value": "\u003C_content/RazorPackageLibraryDirectDependency/RazorPackageLibraryDirectDependency.__fingerprint__.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022" - }, { "Name": "Vary", "Value": "Content-Encoding" @@ -2125,8 +2137,8 @@ ] }, { - "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "Route": "_content/AnotherClassLib/js/project-direct-dep.js", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AnotherClassLib\\js\\project-direct-dep.js.br", "Selectors": [ { "Name": "Content-Encoding", @@ -2141,7 +2153,7 @@ }, { "Name": "Cache-Control", - "Value": "max-age=31536000, immutable" + "Value": "no-cache" }, { "Name": "Content-Encoding", @@ -2153,7 +2165,7 @@ }, { "Name": "Content-Type", - "Value": "text/css" + "Value": "text/javascript" }, { "Name": "ETag", @@ -2167,27 +2179,15 @@ "Name": "Last-Modified", "Value": "__last-modified__" }, - { - "Name": "Link", - "Value": "\u003C_content/RazorPackageLibraryDirectDependency/RazorPackageLibraryDirectDependency.__fingerprint__.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022" - }, { "Name": "Vary", "Value": "Content-Encoding" } ], "EndpointProperties": [ - { - "Name": "fingerprint", - "Value": "__fingerprint__" - }, { "Name": "integrity", "Value": "__integrity__" - }, - { - "Name": "label", - "Value": "AppWithPackageAndP2PReference.styles.css" } ] }, diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishWorks_With_PrecompressedAssets.Build.files.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishWorks_With_PrecompressedAssets.Build.files.json index 4658dfcbf916..8040bcb9de07 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishWorks_With_PrecompressedAssets.Build.files.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishWorks_With_PrecompressedAssets.Build.files.json @@ -1,5 +1,5 @@ [ - "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithP2PReference\\AppWithP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithP2PReference.styles.css", "${OutputPath}\\wwwroot\\AppWithP2PReference.styles.css", "${OutputPath}\\wwwroot\\AppWithP2PReference.styles.css.br", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishWorks_With_PrecompressedAssets.Build.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishWorks_With_PrecompressedAssets.Build.staticwebassets.json index 82501f153fca..9135a74bf3db 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishWorks_With_PrecompressedAssets.Build.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/PublishWorks_With_PrecompressedAssets.Build.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "AppWithP2PReference", - "BasePath": "_content/AppWithP2PReference", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Build", "ReferencedProjectsConfiguration": [ { @@ -29,11 +29,11 @@ ], "Assets": [ { - "Identity": "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithP2PReference\\AppWithP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "AppWithP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/AppWithP2PReference", + "BasePath": "/", "RelativePath": "AppWithP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -47,7 +47,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\AppWithP2PReference\\AppWithP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -56,7 +56,7 @@ "SourceId": "AppWithP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/AppWithP2PReference", + "BasePath": "/", "RelativePath": "AppWithP2PReference#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -239,7 +239,7 @@ "Endpoints": [ { "Route": "AppWithP2PReference.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithP2PReference\\AppWithP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -284,7 +284,7 @@ }, { "Route": "AppWithP2PReference.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithP2PReference\\AppWithP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -337,7 +337,7 @@ }, { "Route": "AppWithP2PReference.styles.css", - "AssetFile": "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithP2PReference\\AppWithP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -396,7 +396,7 @@ }, { "Route": "AppWithP2PReference.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithP2PReference\\AppWithP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_CreatesEndpointsForAssets.Publish.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_CreatesEndpointsForAssets.Publish.staticwebassets.json index 258bda3b8840..7ea44f42aee8 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_CreatesEndpointsForAssets.Publish.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_CreatesEndpointsForAssets.Publish.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "ComponentApp", - "BasePath": "_content/ComponentApp", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Publish", "ReferencedProjectsConfiguration": [], "DiscoveryPatterns": [ @@ -11,17 +11,17 @@ "Name": "ComponentApp\\wwwroot", "Source": "ComponentApp", "ContentRoot": "${ProjectPath}\\wwwroot\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "Pattern": "**" } ], "Assets": [ { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "AssetKind": "All", "AssetMode": "Reference", @@ -35,16 +35,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -58,16 +58,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -81,16 +81,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.server.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -104,16 +104,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\app.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\app.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "app.js.gz", "AssetKind": "All", "AssetMode": "All", @@ -127,16 +127,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\wwwroot\\_content\\ComponentApp\\app.js.gz", + "OriginalItemSpec": "${ProjectPath}\\wwwroot\\app.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "AssetKind": "All", "AssetMode": "Reference", @@ -150,16 +150,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -173,16 +173,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.server.js.br", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js.br", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -196,16 +196,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.server.js.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -219,16 +219,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\app.js.br", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\app.js.br", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "app.js.br", "AssetKind": "All", "AssetMode": "All", @@ -242,7 +242,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\wwwroot\\_content\\ComponentApp\\app.js.br", + "OriginalItemSpec": "${ProjectPath}\\wwwroot\\app.js.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -251,7 +251,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -274,7 +274,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]!.bundle.scp.css", "AssetKind": "All", "AssetMode": "Reference", @@ -297,7 +297,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\wwwroot\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "app.js", "AssetKind": "All", "AssetMode": "All", @@ -320,7 +320,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -343,7 +343,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint}]?.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -365,7 +365,7 @@ "Endpoints": [ { "Route": "ComponentApp.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -410,7 +410,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -463,7 +463,7 @@ }, { "Route": "ComponentApp.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -518,7 +518,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -581,7 +581,7 @@ }, { "Route": "ComponentApp.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -626,7 +626,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -679,7 +679,7 @@ }, { "Route": "ComponentApp.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -734,7 +734,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -797,7 +797,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -842,7 +842,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -895,7 +895,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -950,7 +950,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1013,7 +1013,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1058,7 +1058,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1111,7 +1111,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1166,7 +1166,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1229,7 +1229,7 @@ }, { "Route": "app.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\app.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\app.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1274,7 +1274,7 @@ }, { "Route": "app.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\app.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\app.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1329,7 +1329,7 @@ }, { "Route": "ComponentApp.bundle.scp.css.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -1374,7 +1374,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -1427,7 +1427,7 @@ }, { "Route": "ComponentApp.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1482,7 +1482,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1545,7 +1545,7 @@ }, { "Route": "ComponentApp.styles.css.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -1590,7 +1590,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -1643,7 +1643,7 @@ }, { "Route": "ComponentApp.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1698,7 +1698,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1761,7 +1761,7 @@ }, { "Route": "_framework/blazor.server.js.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.server.js.br", "Selectors": [], "ResponseHeaders": [ { @@ -1806,7 +1806,7 @@ }, { "Route": "_framework/blazor.server.js.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.server.js.br", "Selectors": [], "ResponseHeaders": [ { @@ -1859,7 +1859,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.server.js.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1914,7 +1914,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.server.js.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1977,7 +1977,7 @@ }, { "Route": "_framework/blazor.web.js.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "Selectors": [], "ResponseHeaders": [ { @@ -2022,7 +2022,7 @@ }, { "Route": "_framework/blazor.web.js.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "Selectors": [], "ResponseHeaders": [ { @@ -2075,7 +2075,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "Selectors": [ { "Name": "Content-Encoding", @@ -2130,7 +2130,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "Selectors": [ { "Name": "Content-Encoding", @@ -2193,7 +2193,7 @@ }, { "Route": "app.js.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\app.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\app.js.br", "Selectors": [], "ResponseHeaders": [ { @@ -2238,7 +2238,7 @@ }, { "Route": "app.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\app.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\app.js.br", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_CreatesEndpointsForAssets_BuildAndPublish_Assets.Publish.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_CreatesEndpointsForAssets_BuildAndPublish_Assets.Publish.staticwebassets.json index bc6264a3848c..0007d427537c 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_CreatesEndpointsForAssets_BuildAndPublish_Assets.Publish.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_CreatesEndpointsForAssets_BuildAndPublish_Assets.Publish.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "ComponentApp", - "BasePath": "_content/ComponentApp", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Publish", "ReferencedProjectsConfiguration": [], "DiscoveryPatterns": [ @@ -11,17 +11,17 @@ "Name": "ComponentApp\\wwwroot", "Source": "ComponentApp", "ContentRoot": "${ProjectPath}\\wwwroot\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "Pattern": "**" } ], "Assets": [ { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "AssetKind": "All", "AssetMode": "Reference", @@ -35,16 +35,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -58,16 +58,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -81,16 +81,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.server.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -104,16 +104,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\app.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\app.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "app.js.gz", "AssetKind": "Publish", "AssetMode": "All", @@ -127,16 +127,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\wwwroot\\_content\\ComponentApp\\app.js.gz", + "OriginalItemSpec": "${ProjectPath}\\wwwroot\\app.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "AssetKind": "All", "AssetMode": "Reference", @@ -150,16 +150,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -173,16 +173,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.server.js.br", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js.br", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -196,16 +196,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.server.js.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -219,16 +219,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\app.js.br", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\app.js.br", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "app.js.br", "AssetKind": "Publish", "AssetMode": "All", @@ -242,7 +242,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\wwwroot\\_content\\ComponentApp\\app.js.br", + "OriginalItemSpec": "${ProjectPath}\\wwwroot\\app.js.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -251,7 +251,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -274,7 +274,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]!.bundle.scp.css", "AssetKind": "All", "AssetMode": "Reference", @@ -297,7 +297,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\wwwroot\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "app.js", "AssetKind": "Publish", "AssetMode": "All", @@ -320,7 +320,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -343,7 +343,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint}]?.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -365,7 +365,7 @@ "Endpoints": [ { "Route": "ComponentApp.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -410,7 +410,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -463,7 +463,7 @@ }, { "Route": "ComponentApp.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -518,7 +518,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -581,7 +581,7 @@ }, { "Route": "ComponentApp.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -626,7 +626,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -679,7 +679,7 @@ }, { "Route": "ComponentApp.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -734,7 +734,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -797,7 +797,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -842,7 +842,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -895,7 +895,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -950,7 +950,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1013,7 +1013,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1058,7 +1058,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1111,7 +1111,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1166,7 +1166,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1229,7 +1229,7 @@ }, { "Route": "app.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\app.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\app.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1274,7 +1274,7 @@ }, { "Route": "app.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\app.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\app.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1329,7 +1329,7 @@ }, { "Route": "ComponentApp.bundle.scp.css.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -1374,7 +1374,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -1427,7 +1427,7 @@ }, { "Route": "ComponentApp.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1482,7 +1482,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1545,7 +1545,7 @@ }, { "Route": "ComponentApp.styles.css.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -1590,7 +1590,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -1643,7 +1643,7 @@ }, { "Route": "ComponentApp.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1698,7 +1698,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1761,7 +1761,7 @@ }, { "Route": "_framework/blazor.server.js.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.server.js.br", "Selectors": [], "ResponseHeaders": [ { @@ -1806,7 +1806,7 @@ }, { "Route": "_framework/blazor.server.js.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.server.js.br", "Selectors": [], "ResponseHeaders": [ { @@ -1859,7 +1859,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.server.js.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1914,7 +1914,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.server.js.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1977,7 +1977,7 @@ }, { "Route": "_framework/blazor.web.js.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "Selectors": [], "ResponseHeaders": [ { @@ -2022,7 +2022,7 @@ }, { "Route": "_framework/blazor.web.js.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "Selectors": [], "ResponseHeaders": [ { @@ -2075,7 +2075,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "Selectors": [ { "Name": "Content-Encoding", @@ -2130,7 +2130,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "Selectors": [ { "Name": "Content-Encoding", @@ -2193,7 +2193,7 @@ }, { "Route": "app.js.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\app.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\app.js.br", "Selectors": [], "ResponseHeaders": [ { @@ -2238,7 +2238,7 @@ }, { "Route": "app.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\app.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\app.js.br", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_CrosstargetingTests_CanIncludeBrowserAssets.Publish.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_CrosstargetingTests_CanIncludeBrowserAssets.Publish.staticwebassets.json index e059b1140f75..eed9fd21da58 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_CrosstargetingTests_CanIncludeBrowserAssets.Publish.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_CrosstargetingTests_CanIncludeBrowserAssets.Publish.staticwebassets.json @@ -3,7 +3,7 @@ "Hash": "__hash__", "Source": "RazorComponentAppMultitarget", "BasePath": "/", - "Mode": "Default", + "Mode": "Root", "ManifestType": "Publish", "ReferencedProjectsConfiguration": [], "DiscoveryPatterns": [ diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_GeneratesPublishJsonManifestAndCopiesPublishAssets.Build.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_GeneratesPublishJsonManifestAndCopiesPublishAssets.Build.staticwebassets.json index 8ae2db3dd2ec..ab40209e2da7 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_GeneratesPublishJsonManifestAndCopiesPublishAssets.Build.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_GeneratesPublishJsonManifestAndCopiesPublishAssets.Build.staticwebassets.json @@ -2,18 +2,18 @@ "Version": 1, "Hash": "__hash__", "Source": "ComponentApp", - "BasePath": "_content/ComponentApp", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Build", "ReferencedProjectsConfiguration": [], "DiscoveryPatterns": [], "Assets": [ { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "AssetKind": "All", "AssetMode": "Reference", @@ -27,16 +27,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -50,16 +50,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -73,16 +73,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.server.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -96,7 +96,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -105,7 +105,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -128,7 +128,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]!.bundle.scp.css", "AssetKind": "All", "AssetMode": "Reference", @@ -151,7 +151,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -174,7 +174,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint}]?.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -196,7 +196,7 @@ "Endpoints": [ { "Route": "ComponentApp.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -241,7 +241,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -294,7 +294,7 @@ }, { "Route": "ComponentApp.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -349,7 +349,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -412,7 +412,7 @@ }, { "Route": "ComponentApp.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -457,7 +457,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -510,7 +510,7 @@ }, { "Route": "ComponentApp.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -565,7 +565,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -628,7 +628,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -673,7 +673,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -726,7 +726,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -781,7 +781,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -844,7 +844,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -889,7 +889,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -942,7 +942,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -997,7 +997,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.files.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.files.json index 491743598308..3e796c825b34 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.files.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.files.json @@ -8,10 +8,10 @@ "${OutputPath}\\wwwroot\\_framework\\blazor.web.js", "${OutputPath}\\wwwroot\\_framework\\blazor.web.js.br", "${OutputPath}\\wwwroot\\_framework\\blazor.web.js.gz", - "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", - "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", - "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", - "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\ComponentApp.styles.css", "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ComponentApp.bundle.scp.css", "${OutputPath}\\wwwroot\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.staticwebassets.json index 885283a78234..ae1b710a0fc1 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.staticwebassets.json @@ -2,18 +2,18 @@ "Version": 1, "Hash": "__hash__", "Source": "ComponentApp", - "BasePath": "_content/ComponentApp", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Publish", "ReferencedProjectsConfiguration": [], "DiscoveryPatterns": [], "Assets": [ { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "AssetKind": "All", "AssetMode": "Reference", @@ -27,16 +27,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -50,16 +50,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -73,16 +73,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.server.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -96,16 +96,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "AssetKind": "All", "AssetMode": "Reference", @@ -119,16 +119,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -142,16 +142,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.server.js.br", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js.br", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -165,16 +165,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.server.js.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -188,7 +188,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -197,7 +197,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -220,7 +220,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]!.bundle.scp.css", "AssetKind": "All", "AssetMode": "Reference", @@ -243,7 +243,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -266,7 +266,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint}]?.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -288,7 +288,7 @@ "Endpoints": [ { "Route": "ComponentApp.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -333,7 +333,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -386,7 +386,7 @@ }, { "Route": "ComponentApp.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -441,7 +441,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -504,7 +504,7 @@ }, { "Route": "ComponentApp.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -549,7 +549,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -602,7 +602,7 @@ }, { "Route": "ComponentApp.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -657,7 +657,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -720,7 +720,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -765,7 +765,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -818,7 +818,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -873,7 +873,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -936,7 +936,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -981,7 +981,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1034,7 +1034,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1089,7 +1089,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1152,7 +1152,7 @@ }, { "Route": "ComponentApp.bundle.scp.css.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -1197,7 +1197,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -1250,7 +1250,7 @@ }, { "Route": "ComponentApp.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1305,7 +1305,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1368,7 +1368,7 @@ }, { "Route": "ComponentApp.styles.css.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -1413,7 +1413,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -1466,7 +1466,7 @@ }, { "Route": "ComponentApp.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1521,7 +1521,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1584,7 +1584,7 @@ }, { "Route": "_framework/blazor.server.js.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.server.js.br", "Selectors": [], "ResponseHeaders": [ { @@ -1629,7 +1629,7 @@ }, { "Route": "_framework/blazor.server.js.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.server.js.br", "Selectors": [], "ResponseHeaders": [ { @@ -1682,7 +1682,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.server.js.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1737,7 +1737,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.server.js.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1800,7 +1800,7 @@ }, { "Route": "_framework/blazor.web.js.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "Selectors": [], "ResponseHeaders": [ { @@ -1845,7 +1845,7 @@ }, { "Route": "_framework/blazor.web.js.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "Selectors": [], "ResponseHeaders": [ { @@ -1898,7 +1898,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1953,7 +1953,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_NoBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Build.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_NoBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Build.staticwebassets.json index 8ae2db3dd2ec..ab40209e2da7 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_NoBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Build.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_NoBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Build.staticwebassets.json @@ -2,18 +2,18 @@ "Version": 1, "Hash": "__hash__", "Source": "ComponentApp", - "BasePath": "_content/ComponentApp", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Build", "ReferencedProjectsConfiguration": [], "DiscoveryPatterns": [], "Assets": [ { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "AssetKind": "All", "AssetMode": "Reference", @@ -27,16 +27,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -50,16 +50,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -73,16 +73,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.server.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -96,7 +96,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -105,7 +105,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -128,7 +128,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]!.bundle.scp.css", "AssetKind": "All", "AssetMode": "Reference", @@ -151,7 +151,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -174,7 +174,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint}]?.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -196,7 +196,7 @@ "Endpoints": [ { "Route": "ComponentApp.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -241,7 +241,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -294,7 +294,7 @@ }, { "Route": "ComponentApp.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -349,7 +349,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -412,7 +412,7 @@ }, { "Route": "ComponentApp.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -457,7 +457,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -510,7 +510,7 @@ }, { "Route": "ComponentApp.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -565,7 +565,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -628,7 +628,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -673,7 +673,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -726,7 +726,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -781,7 +781,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -844,7 +844,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -889,7 +889,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -942,7 +942,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -997,7 +997,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_NoBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.files.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_NoBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.files.json index 9d42d40958c9..577f4a28f303 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_NoBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.files.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_NoBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.files.json @@ -1,8 +1,8 @@ [ - "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", - "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", - "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", - "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\ComponentApp.styles.css", "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ComponentApp.bundle.scp.css", "${OutputPath}\\wwwroot\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_NoBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_NoBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.staticwebassets.json index 885283a78234..ae1b710a0fc1 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_NoBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_NoBuild_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.staticwebassets.json @@ -2,18 +2,18 @@ "Version": 1, "Hash": "__hash__", "Source": "ComponentApp", - "BasePath": "_content/ComponentApp", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Publish", "ReferencedProjectsConfiguration": [], "DiscoveryPatterns": [], "Assets": [ { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "AssetKind": "All", "AssetMode": "Reference", @@ -27,16 +27,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -50,16 +50,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -73,16 +73,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.server.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -96,16 +96,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "AssetKind": "All", "AssetMode": "Reference", @@ -119,16 +119,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -142,16 +142,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.server.js.br", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js.br", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -165,16 +165,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.server.js.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -188,7 +188,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -197,7 +197,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -220,7 +220,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]!.bundle.scp.css", "AssetKind": "All", "AssetMode": "Reference", @@ -243,7 +243,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -266,7 +266,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint}]?.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -288,7 +288,7 @@ "Endpoints": [ { "Route": "ComponentApp.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -333,7 +333,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -386,7 +386,7 @@ }, { "Route": "ComponentApp.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -441,7 +441,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -504,7 +504,7 @@ }, { "Route": "ComponentApp.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -549,7 +549,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -602,7 +602,7 @@ }, { "Route": "ComponentApp.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -657,7 +657,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -720,7 +720,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -765,7 +765,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -818,7 +818,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -873,7 +873,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -936,7 +936,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -981,7 +981,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1034,7 +1034,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1089,7 +1089,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1152,7 +1152,7 @@ }, { "Route": "ComponentApp.bundle.scp.css.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -1197,7 +1197,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -1250,7 +1250,7 @@ }, { "Route": "ComponentApp.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1305,7 +1305,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1368,7 +1368,7 @@ }, { "Route": "ComponentApp.styles.css.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -1413,7 +1413,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -1466,7 +1466,7 @@ }, { "Route": "ComponentApp.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1521,7 +1521,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1584,7 +1584,7 @@ }, { "Route": "_framework/blazor.server.js.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.server.js.br", "Selectors": [], "ResponseHeaders": [ { @@ -1629,7 +1629,7 @@ }, { "Route": "_framework/blazor.server.js.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.server.js.br", "Selectors": [], "ResponseHeaders": [ { @@ -1682,7 +1682,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.server.js.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1737,7 +1737,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.server.js.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1800,7 +1800,7 @@ }, { "Route": "_framework/blazor.web.js.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "Selectors": [], "ResponseHeaders": [ { @@ -1845,7 +1845,7 @@ }, { "Route": "_framework/blazor.web.js.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "Selectors": [], "ResponseHeaders": [ { @@ -1898,7 +1898,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1953,7 +1953,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_PublishSingleFile_GeneratesPublishJsonManifestAndCopiesPublishAssets.Build.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_PublishSingleFile_GeneratesPublishJsonManifestAndCopiesPublishAssets.Build.staticwebassets.json index 19298f9ba063..cbd329b4f4ad 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_PublishSingleFile_GeneratesPublishJsonManifestAndCopiesPublishAssets.Build.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_PublishSingleFile_GeneratesPublishJsonManifestAndCopiesPublishAssets.Build.staticwebassets.json @@ -2,18 +2,18 @@ "Version": 1, "Hash": "__hash__", "Source": "ComponentApp", - "BasePath": "_content/ComponentApp", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Build", "ReferencedProjectsConfiguration": [], "DiscoveryPatterns": [], "Assets": [ { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "AssetKind": "All", "AssetMode": "Reference", @@ -27,16 +27,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\scopedcss\\projectbundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\scopedcss\\projectbundle\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -50,16 +50,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\scopedcss\\bundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\scopedcss\\bundle\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_framework\\blazor.server.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -73,16 +73,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.server.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -96,7 +96,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -105,7 +105,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\scopedcss\\bundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -128,7 +128,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\scopedcss\\projectbundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]!.bundle.scp.css", "AssetKind": "All", "AssetMode": "Reference", @@ -151,7 +151,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -174,7 +174,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint}]?.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -196,7 +196,7 @@ "Endpoints": [ { "Route": "ComponentApp.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -241,7 +241,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -294,7 +294,7 @@ }, { "Route": "ComponentApp.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -349,7 +349,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -412,7 +412,7 @@ }, { "Route": "ComponentApp.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -457,7 +457,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -510,7 +510,7 @@ }, { "Route": "ComponentApp.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -565,7 +565,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -628,7 +628,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -673,7 +673,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -726,7 +726,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -781,7 +781,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -844,7 +844,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -889,7 +889,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -942,7 +942,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -997,7 +997,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_PublishSingleFile_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.files.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_PublishSingleFile_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.files.json index d4300d7b0f03..6cfe493a3f50 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_PublishSingleFile_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.files.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_PublishSingleFile_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.files.json @@ -1,8 +1,8 @@ [ - "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", - "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", - "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", - "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\scopedcss\\bundle\\ComponentApp.styles.css", "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\scopedcss\\projectbundle\\ComponentApp.bundle.scp.css", "${OutputPath}\\wwwroot\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_PublishSingleFile_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_PublishSingleFile_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.staticwebassets.json index b7e7375e1ea1..ec64a6222e0d 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_PublishSingleFile_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_PublishSingleFile_GeneratesPublishJsonManifestAndCopiesPublishAssets.Publish.staticwebassets.json @@ -2,18 +2,18 @@ "Version": 1, "Hash": "__hash__", "Source": "ComponentApp", - "BasePath": "_content/ComponentApp", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Publish", "ReferencedProjectsConfiguration": [], "DiscoveryPatterns": [], "Assets": [ { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "AssetKind": "All", "AssetMode": "Reference", @@ -27,16 +27,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\scopedcss\\projectbundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\scopedcss\\projectbundle\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -50,16 +50,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\scopedcss\\bundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\scopedcss\\bundle\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_framework\\blazor.server.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -73,16 +73,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.server.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -96,16 +96,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "AssetKind": "All", "AssetMode": "Reference", @@ -119,16 +119,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\scopedcss\\projectbundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\scopedcss\\projectbundle\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -142,16 +142,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\scopedcss\\bundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\scopedcss\\bundle\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\_framework\\blazor.server.js.br", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js.br", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -165,16 +165,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.server.js.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -188,7 +188,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -197,7 +197,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\scopedcss\\bundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -220,7 +220,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\scopedcss\\projectbundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]!.bundle.scp.css", "AssetKind": "All", "AssetMode": "Reference", @@ -243,7 +243,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -266,7 +266,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint}]?.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -288,7 +288,7 @@ "Endpoints": [ { "Route": "ComponentApp.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -333,7 +333,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -386,7 +386,7 @@ }, { "Route": "ComponentApp.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -441,7 +441,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -504,7 +504,7 @@ }, { "Route": "ComponentApp.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -549,7 +549,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -602,7 +602,7 @@ }, { "Route": "ComponentApp.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -657,7 +657,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -720,7 +720,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -765,7 +765,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -818,7 +818,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -873,7 +873,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -936,7 +936,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -981,7 +981,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1034,7 +1034,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1089,7 +1089,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1152,7 +1152,7 @@ }, { "Route": "ComponentApp.bundle.scp.css.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -1197,7 +1197,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -1250,7 +1250,7 @@ }, { "Route": "ComponentApp.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1305,7 +1305,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1368,7 +1368,7 @@ }, { "Route": "ComponentApp.styles.css.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -1413,7 +1413,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -1466,7 +1466,7 @@ }, { "Route": "ComponentApp.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1521,7 +1521,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1584,7 +1584,7 @@ }, { "Route": "_framework/blazor.server.js.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\_framework\\blazor.server.js.br", "Selectors": [], "ResponseHeaders": [ { @@ -1629,7 +1629,7 @@ }, { "Route": "_framework/blazor.server.js.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\_framework\\blazor.server.js.br", "Selectors": [], "ResponseHeaders": [ { @@ -1682,7 +1682,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\_framework\\blazor.server.js.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1737,7 +1737,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\_framework\\blazor.server.js.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1800,7 +1800,7 @@ }, { "Route": "_framework/blazor.web.js.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "Selectors": [], "ResponseHeaders": [ { @@ -1845,7 +1845,7 @@ }, { "Route": "_framework/blazor.web.js.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "Selectors": [], "ResponseHeaders": [ { @@ -1898,7 +1898,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1953,7 +1953,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\${Rid}\\compressed\\publish\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_PublishesJsModuleBundleBundleToTheRightLocation.Publish.files.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_PublishesJsModuleBundleBundleToTheRightLocation.Publish.files.json index 7e0b1e229e08..cde2de387263 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_PublishesJsModuleBundleBundleToTheRightLocation.Publish.files.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_PublishesJsModuleBundleBundleToTheRightLocation.Publish.files.json @@ -14,12 +14,12 @@ "${OutputPath}\\wwwroot\\_framework\\blazor.web.js", "${OutputPath}\\wwwroot\\_framework\\blazor.web.js.br", "${OutputPath}\\wwwroot\\_framework\\blazor.web.js.gz", - "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", - "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", - "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", - "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.modules.json.br", - "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.modules.json.gz", - "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.modules.json.br", + "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.modules.json.gz", + "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "${ProjectPath}\\obj\\Debug\\${Tfm}\\jsmodules\\jsmodules.publish.manifest.json", "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\ComponentApp.styles.css", "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ComponentApp.bundle.scp.css", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_PublishesJsModuleBundleBundleToTheRightLocation.Publish.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_PublishesJsModuleBundleBundleToTheRightLocation.Publish.staticwebassets.json index a574e912048f..7d219d08beef 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_PublishesJsModuleBundleBundleToTheRightLocation.Publish.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_PublishesJsModuleBundleBundleToTheRightLocation.Publish.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "ComponentApp", - "BasePath": "_content/ComponentApp", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Publish", "ReferencedProjectsConfiguration": [], "DiscoveryPatterns": [ @@ -11,17 +11,17 @@ "Name": "ComponentApp\\wwwroot", "Source": "ComponentApp", "ContentRoot": "${ProjectPath}\\wwwroot\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "Pattern": "**" } ], "Assets": [ { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "AssetKind": "All", "AssetMode": "Reference", @@ -35,16 +35,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.lib.module.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.lib.module.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]!.lib.module.js.gz", "AssetKind": "All", "AssetMode": "All", @@ -58,16 +58,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\wwwroot\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.lib.module.js.gz", + "OriginalItemSpec": "${ProjectPath}\\wwwroot\\ComponentApp#[.{fingerprint=__fingerprint__}]!.lib.module.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -81,16 +81,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -104,16 +104,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.server.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -127,16 +127,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "AssetKind": "All", "AssetMode": "Reference", @@ -150,16 +150,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.lib.module.js.br", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.lib.module.js.br", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]!.lib.module.js.br", "AssetKind": "All", "AssetMode": "All", @@ -173,16 +173,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\wwwroot\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.lib.module.js.br", + "OriginalItemSpec": "${ProjectPath}\\wwwroot\\ComponentApp#[.{fingerprint=__fingerprint__}]!.lib.module.js.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.modules.json.br", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.modules.json.br", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]?.modules.json.br", "AssetKind": "Publish", "AssetMode": "CurrentProject", @@ -196,16 +196,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\jsmodules\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.modules.json.br", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\jsmodules\\ComponentApp#[.{fingerprint=__fingerprint__}]?.modules.json.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.modules.json.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.modules.json.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]?.modules.json.gz", "AssetKind": "Publish", "AssetMode": "CurrentProject", @@ -219,16 +219,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\jsmodules\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.modules.json.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\jsmodules\\ComponentApp#[.{fingerprint=__fingerprint__}]?.modules.json.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -242,16 +242,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.server.js.br", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js.br", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -265,16 +265,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.server.js.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -288,7 +288,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -297,7 +297,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\jsmodules\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]?.modules.json", "AssetKind": "Publish", "AssetMode": "CurrentProject", @@ -320,7 +320,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -343,7 +343,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]!.bundle.scp.css", "AssetKind": "All", "AssetMode": "Reference", @@ -366,7 +366,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\wwwroot\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]!.lib.module.js", "AssetKind": "All", "AssetMode": "All", @@ -389,7 +389,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -412,7 +412,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint}]?.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -434,7 +434,7 @@ "Endpoints": [ { "Route": "ComponentApp.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -479,7 +479,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -532,7 +532,7 @@ }, { "Route": "ComponentApp.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -587,7 +587,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -650,7 +650,7 @@ }, { "Route": "ComponentApp.lib.module.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.lib.module.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.lib.module.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -695,7 +695,7 @@ }, { "Route": "ComponentApp.__fingerprint__.lib.module.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.lib.module.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.lib.module.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -748,7 +748,7 @@ }, { "Route": "ComponentApp.lib.module.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.lib.module.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.lib.module.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -811,7 +811,7 @@ }, { "Route": "ComponentApp.__fingerprint__.lib.module.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.lib.module.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.lib.module.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -882,7 +882,7 @@ }, { "Route": "ComponentApp.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -927,7 +927,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -980,7 +980,7 @@ }, { "Route": "ComponentApp.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1035,7 +1035,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1098,7 +1098,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1143,7 +1143,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1196,7 +1196,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1251,7 +1251,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1314,7 +1314,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1359,7 +1359,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1412,7 +1412,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1467,7 +1467,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1530,7 +1530,7 @@ }, { "Route": "ComponentApp.bundle.scp.css.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -1575,7 +1575,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -1628,7 +1628,7 @@ }, { "Route": "ComponentApp.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1683,7 +1683,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1746,7 +1746,7 @@ }, { "Route": "ComponentApp.lib.module.js.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.lib.module.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.lib.module.js.br", "Selectors": [], "ResponseHeaders": [ { @@ -1791,7 +1791,7 @@ }, { "Route": "ComponentApp.__fingerprint__.lib.module.js.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.lib.module.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.lib.module.js.br", "Selectors": [], "ResponseHeaders": [ { @@ -1844,7 +1844,7 @@ }, { "Route": "ComponentApp.lib.module.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.lib.module.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.lib.module.js.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1907,7 +1907,7 @@ }, { "Route": "ComponentApp.__fingerprint__.lib.module.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.lib.module.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]!.lib.module.js.br", "Selectors": [ { "Name": "Content-Encoding", @@ -1978,7 +1978,7 @@ }, { "Route": "ComponentApp.modules.json.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.modules.json.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.modules.json.br", "Selectors": [], "ResponseHeaders": [ { @@ -2023,7 +2023,7 @@ }, { "Route": "ComponentApp.__fingerprint__.modules.json.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.modules.json.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.modules.json.br", "Selectors": [], "ResponseHeaders": [ { @@ -2076,7 +2076,7 @@ }, { "Route": "ComponentApp.modules.json", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.modules.json.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.modules.json.br", "Selectors": [ { "Name": "Content-Encoding", @@ -2131,7 +2131,7 @@ }, { "Route": "ComponentApp.__fingerprint__.modules.json", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.modules.json.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.modules.json.br", "Selectors": [ { "Name": "Content-Encoding", @@ -2194,7 +2194,7 @@ }, { "Route": "ComponentApp.modules.json.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.modules.json.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.modules.json.gz", "Selectors": [], "ResponseHeaders": [ { @@ -2239,7 +2239,7 @@ }, { "Route": "ComponentApp.__fingerprint__.modules.json.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.modules.json.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.modules.json.gz", "Selectors": [], "ResponseHeaders": [ { @@ -2292,7 +2292,7 @@ }, { "Route": "ComponentApp.modules.json", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.modules.json.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.modules.json.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -2347,7 +2347,7 @@ }, { "Route": "ComponentApp.__fingerprint__.modules.json", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.modules.json.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.modules.json.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -2410,7 +2410,7 @@ }, { "Route": "ComponentApp.styles.css.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -2455,7 +2455,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -2508,7 +2508,7 @@ }, { "Route": "ComponentApp.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [ { "Name": "Content-Encoding", @@ -2563,7 +2563,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [ { "Name": "Content-Encoding", @@ -2626,7 +2626,7 @@ }, { "Route": "_framework/blazor.server.js.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.server.js.br", "Selectors": [], "ResponseHeaders": [ { @@ -2671,7 +2671,7 @@ }, { "Route": "_framework/blazor.server.js.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.server.js.br", "Selectors": [], "ResponseHeaders": [ { @@ -2724,7 +2724,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.server.js.br", "Selectors": [ { "Name": "Content-Encoding", @@ -2779,7 +2779,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.server.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.server.js.br", "Selectors": [ { "Name": "Content-Encoding", @@ -2842,7 +2842,7 @@ }, { "Route": "_framework/blazor.web.js.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "Selectors": [], "ResponseHeaders": [ { @@ -2887,7 +2887,7 @@ }, { "Route": "_framework/blazor.web.js.br", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "Selectors": [], "ResponseHeaders": [ { @@ -2940,7 +2940,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "Selectors": [ { "Name": "Content-Encoding", @@ -2995,7 +2995,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\publish\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.br", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_WithExternalProjectReference_UpdatesAssets.Build.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_WithExternalProjectReference_UpdatesAssets.Build.staticwebassets.json index d4b56b251fbe..83e2c08cf9d4 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_WithExternalProjectReference_UpdatesAssets.Build.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_WithExternalProjectReference_UpdatesAssets.Build.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "AppWithP2PReference", - "BasePath": "_content/AppWithP2PReference", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Build", "ReferencedProjectsConfiguration": [ { diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_WithExternalProjectReference_UpdatesAssets.Publish.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_WithExternalProjectReference_UpdatesAssets.Publish.staticwebassets.json index 19c34af349af..89ddc0d9d3d2 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_WithExternalProjectReference_UpdatesAssets.Publish.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Publish_WithExternalProjectReference_UpdatesAssets.Publish.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "AppWithP2PReference", - "BasePath": "_content/AppWithP2PReference", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Publish", "ReferencedProjectsConfiguration": [ { diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Rebuild_RegeneratesJsonManifestAndCopiesItToOutputFolder.Build.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Rebuild_RegeneratesJsonManifestAndCopiesItToOutputFolder.Build.staticwebassets.json index 8ae2db3dd2ec..ab40209e2da7 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Rebuild_RegeneratesJsonManifestAndCopiesItToOutputFolder.Build.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Rebuild_RegeneratesJsonManifestAndCopiesItToOutputFolder.Build.staticwebassets.json @@ -2,18 +2,18 @@ "Version": 1, "Hash": "__hash__", "Source": "ComponentApp", - "BasePath": "_content/ComponentApp", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Build", "ReferencedProjectsConfiguration": [], "DiscoveryPatterns": [], "Assets": [ { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "AssetKind": "All", "AssetMode": "Reference", @@ -27,16 +27,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -50,16 +50,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -73,16 +73,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.server.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -96,7 +96,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -105,7 +105,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -128,7 +128,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]!.bundle.scp.css", "AssetKind": "All", "AssetMode": "Reference", @@ -151,7 +151,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -174,7 +174,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint}]?.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -196,7 +196,7 @@ "Endpoints": [ { "Route": "ComponentApp.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -241,7 +241,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -294,7 +294,7 @@ }, { "Route": "ComponentApp.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -349,7 +349,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -412,7 +412,7 @@ }, { "Route": "ComponentApp.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -457,7 +457,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -510,7 +510,7 @@ }, { "Route": "ComponentApp.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -565,7 +565,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -628,7 +628,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -673,7 +673,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -726,7 +726,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -781,7 +781,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -844,7 +844,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -889,7 +889,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -942,7 +942,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -997,7 +997,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Rebuild_RegeneratesJsonManifestAndCopiesItToOutputFolder_Rebuild.Build.files.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Rebuild_RegeneratesJsonManifestAndCopiesItToOutputFolder_Rebuild.Build.files.json index 36abd977bfa7..ff5e94bf0263 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Rebuild_RegeneratesJsonManifestAndCopiesItToOutputFolder_Rebuild.Build.files.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Rebuild_RegeneratesJsonManifestAndCopiesItToOutputFolder_Rebuild.Build.files.json @@ -1,6 +1,6 @@ [ - "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", - "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\ComponentApp.styles.css", "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ComponentApp.bundle.scp.css" ] \ No newline at end of file diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Rebuild_RegeneratesJsonManifestAndCopiesItToOutputFolder_Rebuild.Build.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Rebuild_RegeneratesJsonManifestAndCopiesItToOutputFolder_Rebuild.Build.staticwebassets.json index 8ae2db3dd2ec..ab40209e2da7 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Rebuild_RegeneratesJsonManifestAndCopiesItToOutputFolder_Rebuild.Build.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/Rebuild_RegeneratesJsonManifestAndCopiesItToOutputFolder_Rebuild.Build.staticwebassets.json @@ -2,18 +2,18 @@ "Version": 1, "Hash": "__hash__", "Source": "ComponentApp", - "BasePath": "_content/ComponentApp", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Build", "ReferencedProjectsConfiguration": [], "DiscoveryPatterns": [], "Assets": [ { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "AssetKind": "All", "AssetMode": "Reference", @@ -27,16 +27,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -50,16 +50,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -73,16 +73,16 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.server.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "Identity": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -96,7 +96,7 @@ "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "OriginalItemSpec": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -105,7 +105,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -128,7 +128,7 @@ "SourceId": "ComponentApp", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\obj\\Debug\\${Tfm}\\scopedcss\\projectbundle\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "ComponentApp#[.{fingerprint}]!.bundle.scp.css", "AssetKind": "All", "AssetMode": "Reference", @@ -151,7 +151,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.server.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -174,7 +174,7 @@ "SourceId": "ComponentApp", "SourceType": "Discovered", "ContentRoot": "${RestorePath}\\microsoft.aspnetcore.app.internal.assets\\${PackageVersion}\\_framework\\", - "BasePath": "_content/ComponentApp", + "BasePath": "/", "RelativePath": "_framework/blazor.web#[.{fingerprint}]?.js", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -196,7 +196,7 @@ "Endpoints": [ { "Route": "ComponentApp.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -241,7 +241,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -294,7 +294,7 @@ }, { "Route": "ComponentApp.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -349,7 +349,7 @@ }, { "Route": "ComponentApp.__fingerprint__.bundle.scp.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]!.bundle.scp.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -412,7 +412,7 @@ }, { "Route": "ComponentApp.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -457,7 +457,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -510,7 +510,7 @@ }, { "Route": "ComponentApp.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -565,7 +565,7 @@ }, { "Route": "ComponentApp.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\ComponentApp#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -628,7 +628,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -673,7 +673,7 @@ }, { "Route": "_framework/blazor.server.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -726,7 +726,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -781,7 +781,7 @@ }, { "Route": "_framework/blazor.server.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.server.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.server.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -844,7 +844,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -889,7 +889,7 @@ }, { "Route": "_framework/blazor.web.js.gz", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [], "ResponseHeaders": [ { @@ -942,7 +942,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -997,7 +997,7 @@ }, { "Route": "_framework/blazor.web.js", - "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_content\\ComponentApp\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", + "AssetFile": "${ProjectPath}\\obj\\Debug\\${Tfm}\\compressed\\_framework\\blazor.web#[.{fingerprint=__fingerprint__}]?.js.gz", "Selectors": [ { "Name": "Content-Encoding", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/ScopedCss_IsBackwardsCompatible_WithPreviousVersions.Build.files.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/ScopedCss_IsBackwardsCompatible_WithPreviousVersions.Build.files.json index c8db8f12ef0a..b800715727ea 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/ScopedCss_IsBackwardsCompatible_WithPreviousVersions.Build.files.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/ScopedCss_IsBackwardsCompatible_WithPreviousVersions.Build.files.json @@ -1,4 +1,4 @@ [ - "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference.styles.css" ] \ No newline at end of file diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/ScopedCss_IsBackwardsCompatible_WithPreviousVersions.Build.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/ScopedCss_IsBackwardsCompatible_WithPreviousVersions.Build.staticwebassets.json index f23195570bf0..48cde49acf3b 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/ScopedCss_IsBackwardsCompatible_WithPreviousVersions.Build.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/ScopedCss_IsBackwardsCompatible_WithPreviousVersions.Build.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "AppWithPackageAndP2PReference", - "BasePath": "_content/AppWithPackageAndP2PReference", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Build", "ReferencedProjectsConfiguration": [ { @@ -93,71 +93,71 @@ "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\css\\site.css.gz", - "SourceId": "AnotherClassLib", - "SourceType": "Project", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "SourceId": "AppWithPackageAndP2PReference", + "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/AnotherClassLib", - "RelativePath": "css/site.css.gz", + "BasePath": "/", + "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", - "AssetMode": "All", + "AssetMode": "CurrentProject", "AssetRole": "Alternative", "AssetMergeBehavior": "", "AssetMergeSource": "", - "RelatedAsset": "${ProjectPath}\\AnotherClassLib\\wwwroot\\css\\site.css", + "RelatedAsset": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference.styles.css", "AssetTraitName": "Content-Encoding", "AssetTraitValue": "gzip", "Fingerprint": "__fingerprint__", "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AnotherClassLib\\wwwroot\\css\\_content\\AnotherClassLib\\css\\site.css.gz", + "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\js\\project-direct-dep.js.gz", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\css\\site.css.gz", "SourceId": "AnotherClassLib", "SourceType": "Project", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\", "BasePath": "_content/AnotherClassLib", - "RelativePath": "js/project-direct-dep.js.gz", + "RelativePath": "css/site.css.gz", "AssetKind": "All", "AssetMode": "All", "AssetRole": "Alternative", "AssetMergeBehavior": "", "AssetMergeSource": "", - "RelatedAsset": "${ProjectPath}\\AnotherClassLib\\wwwroot\\js\\project-direct-dep.js", + "RelatedAsset": "${ProjectPath}\\AnotherClassLib\\wwwroot\\css\\site.css", "AssetTraitName": "Content-Encoding", "AssetTraitValue": "gzip", "Fingerprint": "__fingerprint__", "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AnotherClassLib\\wwwroot\\js\\_content\\AnotherClassLib\\js\\project-direct-dep.js.gz", + "OriginalItemSpec": "${ProjectPath}\\AnotherClassLib\\wwwroot\\css\\_content\\AnotherClassLib\\css\\site.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", - "SourceId": "AppWithPackageAndP2PReference", - "SourceType": "Computed", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\js\\project-direct-dep.js.gz", + "SourceId": "AnotherClassLib", + "SourceType": "Project", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/AppWithPackageAndP2PReference", - "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "BasePath": "_content/AnotherClassLib", + "RelativePath": "js/project-direct-dep.js.gz", "AssetKind": "All", - "AssetMode": "CurrentProject", + "AssetMode": "All", "AssetRole": "Alternative", "AssetMergeBehavior": "", "AssetMergeSource": "", - "RelatedAsset": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference.styles.css", + "RelatedAsset": "${ProjectPath}\\AnotherClassLib\\wwwroot\\js\\project-direct-dep.js", "AssetTraitName": "Content-Encoding", "AssetTraitValue": "gzip", "Fingerprint": "__fingerprint__", "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\AnotherClassLib\\wwwroot\\js\\_content\\AnotherClassLib\\js\\project-direct-dep.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -327,7 +327,7 @@ "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -583,8 +583,8 @@ ] }, { - "Route": "_content/AnotherClassLib/css/site.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\css\\site.css.gz", + "Route": "AppWithPackageAndP2PReference.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -628,15 +628,9 @@ ] }, { - "Route": "_content/AnotherClassLib/css/site.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\css\\site.css.gz", - "Selectors": [ - { - "Name": "Content-Encoding", - "Value": "gzip", - "Quality": "__quality__" - } - ], + "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Selectors": [], "ResponseHeaders": [ { "Name": "Accept-Ranges", @@ -644,7 +638,7 @@ }, { "Name": "Cache-Control", - "Value": "no-cache" + "Value": "max-age=31536000, immutable" }, { "Name": "Content-Encoding", @@ -662,10 +656,6 @@ "Name": "ETag", "Value": "__etag__" }, - { - "Name": "ETag", - "Value": "__etag__" - }, { "Name": "Last-Modified", "Value": "__last-modified__" @@ -676,16 +666,30 @@ } ], "EndpointProperties": [ + { + "Name": "fingerprint", + "Value": "__fingerprint__" + }, { "Name": "integrity", "Value": "__integrity__" + }, + { + "Name": "label", + "Value": "AppWithPackageAndP2PReference.styles.css.gz" } ] }, { - "Route": "_content/AnotherClassLib/js/project-direct-dep.js.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\js\\project-direct-dep.js.gz", - "Selectors": [], + "Route": "AppWithPackageAndP2PReference.styles.css", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Selectors": [ + { + "Name": "Content-Encoding", + "Value": "gzip", + "Quality": "__quality__" + } + ], "ResponseHeaders": [ { "Name": "Accept-Ranges", @@ -705,7 +709,11 @@ }, { "Name": "Content-Type", - "Value": "text/javascript" + "Value": "text/css" + }, + { + "Name": "ETag", + "Value": "__etag__" }, { "Name": "ETag", @@ -715,6 +723,10 @@ "Name": "Last-Modified", "Value": "__last-modified__" }, + { + "Name": "Link", + "Value": "\u003C_content/ClassLibrary/ClassLibrary.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022, \u003C_content/RazorPackageLibraryDirectDependency/RazorPackageLibraryDirectDependency.__fingerprint__.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022" + }, { "Name": "Vary", "Value": "Content-Encoding" @@ -728,8 +740,8 @@ ] }, { - "Route": "_content/AnotherClassLib/js/project-direct-dep.js", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\js\\project-direct-dep.js.gz", + "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -744,7 +756,7 @@ }, { "Name": "Cache-Control", - "Value": "no-cache" + "Value": "max-age=31536000, immutable" }, { "Name": "Content-Encoding", @@ -756,7 +768,7 @@ }, { "Name": "Content-Type", - "Value": "text/javascript" + "Value": "text/css" }, { "Name": "ETag", @@ -770,21 +782,33 @@ "Name": "Last-Modified", "Value": "__last-modified__" }, + { + "Name": "Link", + "Value": "\u003C_content/ClassLibrary/ClassLibrary.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022, \u003C_content/RazorPackageLibraryDirectDependency/RazorPackageLibraryDirectDependency.__fingerprint__.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022" + }, { "Name": "Vary", "Value": "Content-Encoding" } ], "EndpointProperties": [ + { + "Name": "fingerprint", + "Value": "__fingerprint__" + }, { "Name": "integrity", "Value": "__integrity__" + }, + { + "Name": "label", + "Value": "AppWithPackageAndP2PReference.styles.css" } ] }, { - "Route": "AppWithPackageAndP2PReference.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Route": "_content/AnotherClassLib/css/site.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\css\\site.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -828,9 +852,15 @@ ] }, { - "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", - "Selectors": [], + "Route": "_content/AnotherClassLib/css/site.css", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\css\\site.css.gz", + "Selectors": [ + { + "Name": "Content-Encoding", + "Value": "gzip", + "Quality": "__quality__" + } + ], "ResponseHeaders": [ { "Name": "Accept-Ranges", @@ -838,7 +868,7 @@ }, { "Name": "Cache-Control", - "Value": "max-age=31536000, immutable" + "Value": "no-cache" }, { "Name": "Content-Encoding", @@ -856,6 +886,10 @@ "Name": "ETag", "Value": "__etag__" }, + { + "Name": "ETag", + "Value": "__etag__" + }, { "Name": "Last-Modified", "Value": "__last-modified__" @@ -866,30 +900,16 @@ } ], "EndpointProperties": [ - { - "Name": "fingerprint", - "Value": "__fingerprint__" - }, { "Name": "integrity", "Value": "__integrity__" - }, - { - "Name": "label", - "Value": "AppWithPackageAndP2PReference.styles.css.gz" } ] }, { - "Route": "AppWithPackageAndP2PReference.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", - "Selectors": [ - { - "Name": "Content-Encoding", - "Value": "gzip", - "Quality": "__quality__" - } - ], + "Route": "_content/AnotherClassLib/js/project-direct-dep.js.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\js\\project-direct-dep.js.gz", + "Selectors": [], "ResponseHeaders": [ { "Name": "Accept-Ranges", @@ -909,11 +929,7 @@ }, { "Name": "Content-Type", - "Value": "text/css" - }, - { - "Name": "ETag", - "Value": "__etag__" + "Value": "text/javascript" }, { "Name": "ETag", @@ -923,10 +939,6 @@ "Name": "Last-Modified", "Value": "__last-modified__" }, - { - "Name": "Link", - "Value": "\u003C_content/ClassLibrary/ClassLibrary.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022, \u003C_content/RazorPackageLibraryDirectDependency/RazorPackageLibraryDirectDependency.__fingerprint__.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022" - }, { "Name": "Vary", "Value": "Content-Encoding" @@ -940,8 +952,8 @@ ] }, { - "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Route": "_content/AnotherClassLib/js/project-direct-dep.js", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\js\\project-direct-dep.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -956,7 +968,7 @@ }, { "Name": "Cache-Control", - "Value": "max-age=31536000, immutable" + "Value": "no-cache" }, { "Name": "Content-Encoding", @@ -968,7 +980,7 @@ }, { "Name": "Content-Type", - "Value": "text/css" + "Value": "text/javascript" }, { "Name": "ETag", @@ -982,27 +994,15 @@ "Name": "Last-Modified", "Value": "__last-modified__" }, - { - "Name": "Link", - "Value": "\u003C_content/ClassLibrary/ClassLibrary.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022, \u003C_content/RazorPackageLibraryDirectDependency/RazorPackageLibraryDirectDependency.__fingerprint__.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022" - }, { "Name": "Vary", "Value": "Content-Encoding" } ], "EndpointProperties": [ - { - "Name": "fingerprint", - "Value": "__fingerprint__" - }, { "Name": "integrity", "Value": "__integrity__" - }, - { - "Name": "label", - "Value": "AppWithPackageAndP2PReference.styles.css" } ] }, diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/ScopedCss_PublishIsBackwardsCompatible_WithPreviousVersions.Publish.files.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/ScopedCss_PublishIsBackwardsCompatible_WithPreviousVersions.Publish.files.json index 17eb81005dda..d7cf3c435b7b 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/ScopedCss_PublishIsBackwardsCompatible_WithPreviousVersions.Publish.files.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/ScopedCss_PublishIsBackwardsCompatible_WithPreviousVersions.Publish.files.json @@ -33,8 +33,8 @@ "${OutputPath}\\wwwroot\\js\\project-direct-dep.js", "${OutputPath}\\wwwroot\\js\\project-transitive-dep.js", "${OutputPath}\\wwwroot\\js\\project-transitive-dep.v4.js", - "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", - "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference.styles.css", "${OutputPath}\\wwwroot\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "${OutputPath}\\wwwroot\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/ScopedCss_PublishIsBackwardsCompatible_WithPreviousVersions.Publish.staticwebassets.json b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/ScopedCss_PublishIsBackwardsCompatible_WithPreviousVersions.Publish.staticwebassets.json index a48e3ffc42e6..ea780cdd6a17 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/ScopedCss_PublishIsBackwardsCompatible_WithPreviousVersions.Publish.staticwebassets.json +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselines/ScopedCss_PublishIsBackwardsCompatible_WithPreviousVersions.Publish.staticwebassets.json @@ -2,8 +2,8 @@ "Version": 1, "Hash": "__hash__", "Source": "AppWithPackageAndP2PReference", - "BasePath": "_content/AppWithPackageAndP2PReference", - "Mode": "Default", + "BasePath": "/", + "Mode": "Root", "ManifestType": "Publish", "ReferencedProjectsConfiguration": [ { @@ -93,71 +93,71 @@ "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\css\\site.css.gz", - "SourceId": "AnotherClassLib", - "SourceType": "Project", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "SourceId": "AppWithPackageAndP2PReference", + "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/AnotherClassLib", - "RelativePath": "css/site.css.gz", + "BasePath": "/", + "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "AssetKind": "All", - "AssetMode": "All", + "AssetMode": "CurrentProject", "AssetRole": "Alternative", "AssetMergeBehavior": "", "AssetMergeSource": "", - "RelatedAsset": "${ProjectPath}\\AnotherClassLib\\wwwroot\\css\\site.css", + "RelatedAsset": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference.styles.css", "AssetTraitName": "Content-Encoding", "AssetTraitValue": "gzip", "Fingerprint": "__fingerprint__", "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AnotherClassLib\\wwwroot\\css\\_content\\AnotherClassLib\\css\\site.css.gz", + "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\js\\project-direct-dep.js.gz", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\css\\site.css.gz", "SourceId": "AnotherClassLib", "SourceType": "Project", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\", "BasePath": "_content/AnotherClassLib", - "RelativePath": "js/project-direct-dep.js.gz", + "RelativePath": "css/site.css.gz", "AssetKind": "All", "AssetMode": "All", "AssetRole": "Alternative", "AssetMergeBehavior": "", "AssetMergeSource": "", - "RelatedAsset": "${ProjectPath}\\AnotherClassLib\\wwwroot\\js\\project-direct-dep.js", + "RelatedAsset": "${ProjectPath}\\AnotherClassLib\\wwwroot\\css\\site.css", "AssetTraitName": "Content-Encoding", "AssetTraitValue": "gzip", "Fingerprint": "__fingerprint__", "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AnotherClassLib\\wwwroot\\js\\_content\\AnotherClassLib\\js\\project-direct-dep.js.gz", + "OriginalItemSpec": "${ProjectPath}\\AnotherClassLib\\wwwroot\\css\\_content\\AnotherClassLib\\css\\site.css.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", - "SourceId": "AppWithPackageAndP2PReference", - "SourceType": "Computed", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\js\\project-direct-dep.js.gz", + "SourceId": "AnotherClassLib", + "SourceType": "Project", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\", - "BasePath": "_content/AppWithPackageAndP2PReference", - "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "BasePath": "_content/AnotherClassLib", + "RelativePath": "js/project-direct-dep.js.gz", "AssetKind": "All", - "AssetMode": "CurrentProject", + "AssetMode": "All", "AssetRole": "Alternative", "AssetMergeBehavior": "", "AssetMergeSource": "", - "RelatedAsset": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference.styles.css", + "RelatedAsset": "${ProjectPath}\\AnotherClassLib\\wwwroot\\js\\project-direct-dep.js", "AssetTraitName": "Content-Encoding", "AssetTraitValue": "gzip", "Fingerprint": "__fingerprint__", "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "OriginalItemSpec": "${ProjectPath}\\AnotherClassLib\\wwwroot\\js\\_content\\AnotherClassLib\\js\\project-direct-dep.js.gz", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -323,71 +323,71 @@ "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AnotherClassLib\\css\\site.css.br", - "SourceId": "AnotherClassLib", - "SourceType": "Project", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "SourceId": "AppWithPackageAndP2PReference", + "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/AnotherClassLib", - "RelativePath": "css/site.css.br", + "BasePath": "/", + "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "AssetKind": "All", - "AssetMode": "All", + "AssetMode": "CurrentProject", "AssetRole": "Alternative", "AssetMergeBehavior": "", "AssetMergeSource": "", - "RelatedAsset": "${ProjectPath}\\AnotherClassLib\\wwwroot\\css\\site.css", + "RelatedAsset": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference.styles.css", "AssetTraitName": "Content-Encoding", "AssetTraitValue": "br", "Fingerprint": "__fingerprint__", "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AnotherClassLib\\wwwroot\\css\\_content\\AnotherClassLib\\css\\site.css.br", + "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AnotherClassLib\\js\\project-direct-dep.js.br", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AnotherClassLib\\css\\site.css.br", "SourceId": "AnotherClassLib", "SourceType": "Project", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\", "BasePath": "_content/AnotherClassLib", - "RelativePath": "js/project-direct-dep.js.br", + "RelativePath": "css/site.css.br", "AssetKind": "All", "AssetMode": "All", "AssetRole": "Alternative", "AssetMergeBehavior": "", "AssetMergeSource": "", - "RelatedAsset": "${ProjectPath}\\AnotherClassLib\\wwwroot\\js\\project-direct-dep.js", + "RelatedAsset": "${ProjectPath}\\AnotherClassLib\\wwwroot\\css\\site.css", "AssetTraitName": "Content-Encoding", "AssetTraitValue": "br", "Fingerprint": "__fingerprint__", "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AnotherClassLib\\wwwroot\\js\\_content\\AnotherClassLib\\js\\project-direct-dep.js.br", + "OriginalItemSpec": "${ProjectPath}\\AnotherClassLib\\wwwroot\\css\\_content\\AnotherClassLib\\css\\site.css.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, { - "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", - "SourceId": "AppWithPackageAndP2PReference", - "SourceType": "Computed", + "Identity": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AnotherClassLib\\js\\project-direct-dep.js.br", + "SourceId": "AnotherClassLib", + "SourceType": "Project", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\", - "BasePath": "_content/AppWithPackageAndP2PReference", - "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "BasePath": "_content/AnotherClassLib", + "RelativePath": "js/project-direct-dep.js.br", "AssetKind": "All", - "AssetMode": "CurrentProject", + "AssetMode": "All", "AssetRole": "Alternative", "AssetMergeBehavior": "", "AssetMergeSource": "", - "RelatedAsset": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\AppWithPackageAndP2PReference.styles.css", + "RelatedAsset": "${ProjectPath}\\AnotherClassLib\\wwwroot\\js\\project-direct-dep.js", "AssetTraitName": "Content-Encoding", "AssetTraitValue": "br", "Fingerprint": "__fingerprint__", "Integrity": "__integrity__", "CopyToOutputDirectory": "Never", "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "OriginalItemSpec": "${ProjectPath}\\AnotherClassLib\\wwwroot\\js\\_content\\AnotherClassLib\\js\\project-direct-dep.js.br", "FileLength": -1, "LastWriteTime": "0001-01-01T00:00:00+00:00" }, @@ -557,7 +557,7 @@ "SourceId": "AppWithPackageAndP2PReference", "SourceType": "Computed", "ContentRoot": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\scopedcss\\bundle\\", - "BasePath": "_content/AppWithPackageAndP2PReference", + "BasePath": "/", "RelativePath": "AppWithPackageAndP2PReference#[.{fingerprint}]?.styles.css", "AssetKind": "All", "AssetMode": "CurrentProject", @@ -813,8 +813,8 @@ ] }, { - "Route": "_content/AnotherClassLib/css/site.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\css\\site.css.gz", + "Route": "AppWithPackageAndP2PReference.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -858,15 +858,9 @@ ] }, { - "Route": "_content/AnotherClassLib/css/site.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\css\\site.css.gz", - "Selectors": [ - { - "Name": "Content-Encoding", - "Value": "gzip", - "Quality": "__quality__" - } - ], + "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Selectors": [], "ResponseHeaders": [ { "Name": "Accept-Ranges", @@ -874,7 +868,7 @@ }, { "Name": "Cache-Control", - "Value": "no-cache" + "Value": "max-age=31536000, immutable" }, { "Name": "Content-Encoding", @@ -892,10 +886,6 @@ "Name": "ETag", "Value": "__etag__" }, - { - "Name": "ETag", - "Value": "__etag__" - }, { "Name": "Last-Modified", "Value": "__last-modified__" @@ -906,16 +896,30 @@ } ], "EndpointProperties": [ + { + "Name": "fingerprint", + "Value": "__fingerprint__" + }, { "Name": "integrity", "Value": "__integrity__" + }, + { + "Name": "label", + "Value": "AppWithPackageAndP2PReference.styles.css.gz" } ] }, { - "Route": "_content/AnotherClassLib/js/project-direct-dep.js.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\js\\project-direct-dep.js.gz", - "Selectors": [], + "Route": "AppWithPackageAndP2PReference.styles.css", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Selectors": [ + { + "Name": "Content-Encoding", + "Value": "gzip", + "Quality": "__quality__" + } + ], "ResponseHeaders": [ { "Name": "Accept-Ranges", @@ -935,7 +939,11 @@ }, { "Name": "Content-Type", - "Value": "text/javascript" + "Value": "text/css" + }, + { + "Name": "ETag", + "Value": "__etag__" }, { "Name": "ETag", @@ -945,6 +953,10 @@ "Name": "Last-Modified", "Value": "__last-modified__" }, + { + "Name": "Link", + "Value": "\u003C_content/ClassLibrary/ClassLibrary.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022, \u003C_content/RazorPackageLibraryDirectDependency/RazorPackageLibraryDirectDependency.__fingerprint__.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022" + }, { "Name": "Vary", "Value": "Content-Encoding" @@ -958,8 +970,8 @@ ] }, { - "Route": "_content/AnotherClassLib/js/project-direct-dep.js", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\js\\project-direct-dep.js.gz", + "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -974,7 +986,7 @@ }, { "Name": "Cache-Control", - "Value": "no-cache" + "Value": "max-age=31536000, immutable" }, { "Name": "Content-Encoding", @@ -986,7 +998,7 @@ }, { "Name": "Content-Type", - "Value": "text/javascript" + "Value": "text/css" }, { "Name": "ETag", @@ -1000,21 +1012,33 @@ "Name": "Last-Modified", "Value": "__last-modified__" }, + { + "Name": "Link", + "Value": "\u003C_content/ClassLibrary/ClassLibrary.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022, \u003C_content/RazorPackageLibraryDirectDependency/RazorPackageLibraryDirectDependency.__fingerprint__.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022" + }, { "Name": "Vary", "Value": "Content-Encoding" } ], "EndpointProperties": [ + { + "Name": "fingerprint", + "Value": "__fingerprint__" + }, { "Name": "integrity", "Value": "__integrity__" + }, + { + "Name": "label", + "Value": "AppWithPackageAndP2PReference.styles.css" } ] }, { - "Route": "AppWithPackageAndP2PReference.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Route": "_content/AnotherClassLib/css/site.css.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\css\\site.css.gz", "Selectors": [], "ResponseHeaders": [ { @@ -1058,9 +1082,15 @@ ] }, { - "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css.gz", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", - "Selectors": [], + "Route": "_content/AnotherClassLib/css/site.css", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\css\\site.css.gz", + "Selectors": [ + { + "Name": "Content-Encoding", + "Value": "gzip", + "Quality": "__quality__" + } + ], "ResponseHeaders": [ { "Name": "Accept-Ranges", @@ -1068,7 +1098,7 @@ }, { "Name": "Cache-Control", - "Value": "max-age=31536000, immutable" + "Value": "no-cache" }, { "Name": "Content-Encoding", @@ -1086,6 +1116,10 @@ "Name": "ETag", "Value": "__etag__" }, + { + "Name": "ETag", + "Value": "__etag__" + }, { "Name": "Last-Modified", "Value": "__last-modified__" @@ -1096,30 +1130,16 @@ } ], "EndpointProperties": [ - { - "Name": "fingerprint", - "Value": "__fingerprint__" - }, { "Name": "integrity", "Value": "__integrity__" - }, - { - "Name": "label", - "Value": "AppWithPackageAndP2PReference.styles.css.gz" } ] }, { - "Route": "AppWithPackageAndP2PReference.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", - "Selectors": [ - { - "Name": "Content-Encoding", - "Value": "gzip", - "Quality": "__quality__" - } - ], + "Route": "_content/AnotherClassLib/js/project-direct-dep.js.gz", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\js\\project-direct-dep.js.gz", + "Selectors": [], "ResponseHeaders": [ { "Name": "Accept-Ranges", @@ -1139,11 +1159,7 @@ }, { "Name": "Content-Type", - "Value": "text/css" - }, - { - "Name": "ETag", - "Value": "__etag__" + "Value": "text/javascript" }, { "Name": "ETag", @@ -1153,10 +1169,6 @@ "Name": "Last-Modified", "Value": "__last-modified__" }, - { - "Name": "Link", - "Value": "\u003C_content/ClassLibrary/ClassLibrary.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022, \u003C_content/RazorPackageLibraryDirectDependency/RazorPackageLibraryDirectDependency.__fingerprint__.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022" - }, { "Name": "Vary", "Value": "Content-Encoding" @@ -1170,8 +1182,8 @@ ] }, { - "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.gz", + "Route": "_content/AnotherClassLib/js/project-direct-dep.js", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\_content\\AnotherClassLib\\js\\project-direct-dep.js.gz", "Selectors": [ { "Name": "Content-Encoding", @@ -1186,7 +1198,7 @@ }, { "Name": "Cache-Control", - "Value": "max-age=31536000, immutable" + "Value": "no-cache" }, { "Name": "Content-Encoding", @@ -1198,7 +1210,7 @@ }, { "Name": "Content-Type", - "Value": "text/css" + "Value": "text/javascript" }, { "Name": "ETag", @@ -1212,27 +1224,15 @@ "Name": "Last-Modified", "Value": "__last-modified__" }, - { - "Name": "Link", - "Value": "\u003C_content/ClassLibrary/ClassLibrary.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022, \u003C_content/RazorPackageLibraryDirectDependency/RazorPackageLibraryDirectDependency.__fingerprint__.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022" - }, { "Name": "Vary", "Value": "Content-Encoding" } ], "EndpointProperties": [ - { - "Name": "fingerprint", - "Value": "__fingerprint__" - }, { "Name": "integrity", "Value": "__integrity__" - }, - { - "Name": "label", - "Value": "AppWithPackageAndP2PReference.styles.css" } ] }, @@ -1937,8 +1937,8 @@ ] }, { - "Route": "_content/AnotherClassLib/css/site.css.br", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AnotherClassLib\\css\\site.css.br", + "Route": "AppWithPackageAndP2PReference.styles.css.br", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -1982,15 +1982,9 @@ ] }, { - "Route": "_content/AnotherClassLib/css/site.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AnotherClassLib\\css\\site.css.br", - "Selectors": [ - { - "Name": "Content-Encoding", - "Value": "br", - "Quality": "__quality__" - } - ], + "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css.br", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "Selectors": [], "ResponseHeaders": [ { "Name": "Accept-Ranges", @@ -1998,7 +1992,7 @@ }, { "Name": "Cache-Control", - "Value": "no-cache" + "Value": "max-age=31536000, immutable" }, { "Name": "Content-Encoding", @@ -2016,10 +2010,6 @@ "Name": "ETag", "Value": "__etag__" }, - { - "Name": "ETag", - "Value": "__etag__" - }, { "Name": "Last-Modified", "Value": "__last-modified__" @@ -2030,16 +2020,30 @@ } ], "EndpointProperties": [ + { + "Name": "fingerprint", + "Value": "__fingerprint__" + }, { "Name": "integrity", "Value": "__integrity__" + }, + { + "Name": "label", + "Value": "AppWithPackageAndP2PReference.styles.css.br" } ] }, { - "Route": "_content/AnotherClassLib/js/project-direct-dep.js.br", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AnotherClassLib\\js\\project-direct-dep.js.br", - "Selectors": [], + "Route": "AppWithPackageAndP2PReference.styles.css", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "Selectors": [ + { + "Name": "Content-Encoding", + "Value": "br", + "Quality": "__quality__" + } + ], "ResponseHeaders": [ { "Name": "Accept-Ranges", @@ -2059,7 +2063,11 @@ }, { "Name": "Content-Type", - "Value": "text/javascript" + "Value": "text/css" + }, + { + "Name": "ETag", + "Value": "__etag__" }, { "Name": "ETag", @@ -2069,6 +2077,10 @@ "Name": "Last-Modified", "Value": "__last-modified__" }, + { + "Name": "Link", + "Value": "\u003C_content/ClassLibrary/ClassLibrary.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022, \u003C_content/RazorPackageLibraryDirectDependency/RazorPackageLibraryDirectDependency.__fingerprint__.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022" + }, { "Name": "Vary", "Value": "Content-Encoding" @@ -2082,8 +2094,8 @@ ] }, { - "Route": "_content/AnotherClassLib/js/project-direct-dep.js", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AnotherClassLib\\js\\project-direct-dep.js.br", + "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", "Selectors": [ { "Name": "Content-Encoding", @@ -2098,7 +2110,7 @@ }, { "Name": "Cache-Control", - "Value": "no-cache" + "Value": "max-age=31536000, immutable" }, { "Name": "Content-Encoding", @@ -2110,7 +2122,7 @@ }, { "Name": "Content-Type", - "Value": "text/javascript" + "Value": "text/css" }, { "Name": "ETag", @@ -2124,21 +2136,33 @@ "Name": "Last-Modified", "Value": "__last-modified__" }, + { + "Name": "Link", + "Value": "\u003C_content/ClassLibrary/ClassLibrary.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022, \u003C_content/RazorPackageLibraryDirectDependency/RazorPackageLibraryDirectDependency.__fingerprint__.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022" + }, { "Name": "Vary", "Value": "Content-Encoding" } ], "EndpointProperties": [ + { + "Name": "fingerprint", + "Value": "__fingerprint__" + }, { "Name": "integrity", "Value": "__integrity__" + }, + { + "Name": "label", + "Value": "AppWithPackageAndP2PReference.styles.css" } ] }, { - "Route": "AppWithPackageAndP2PReference.styles.css.br", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "Route": "_content/AnotherClassLib/css/site.css.br", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AnotherClassLib\\css\\site.css.br", "Selectors": [], "ResponseHeaders": [ { @@ -2182,9 +2206,15 @@ ] }, { - "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css.br", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", - "Selectors": [], + "Route": "_content/AnotherClassLib/css/site.css", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AnotherClassLib\\css\\site.css.br", + "Selectors": [ + { + "Name": "Content-Encoding", + "Value": "br", + "Quality": "__quality__" + } + ], "ResponseHeaders": [ { "Name": "Accept-Ranges", @@ -2192,7 +2222,7 @@ }, { "Name": "Cache-Control", - "Value": "max-age=31536000, immutable" + "Value": "no-cache" }, { "Name": "Content-Encoding", @@ -2210,6 +2240,10 @@ "Name": "ETag", "Value": "__etag__" }, + { + "Name": "ETag", + "Value": "__etag__" + }, { "Name": "Last-Modified", "Value": "__last-modified__" @@ -2220,30 +2254,16 @@ } ], "EndpointProperties": [ - { - "Name": "fingerprint", - "Value": "__fingerprint__" - }, { "Name": "integrity", "Value": "__integrity__" - }, - { - "Name": "label", - "Value": "AppWithPackageAndP2PReference.styles.css.br" } ] }, { - "Route": "AppWithPackageAndP2PReference.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", - "Selectors": [ - { - "Name": "Content-Encoding", - "Value": "br", - "Quality": "__quality__" - } - ], + "Route": "_content/AnotherClassLib/js/project-direct-dep.js.br", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AnotherClassLib\\js\\project-direct-dep.js.br", + "Selectors": [], "ResponseHeaders": [ { "Name": "Accept-Ranges", @@ -2263,11 +2283,7 @@ }, { "Name": "Content-Type", - "Value": "text/css" - }, - { - "Name": "ETag", - "Value": "__etag__" + "Value": "text/javascript" }, { "Name": "ETag", @@ -2277,10 +2293,6 @@ "Name": "Last-Modified", "Value": "__last-modified__" }, - { - "Name": "Link", - "Value": "\u003C_content/ClassLibrary/ClassLibrary.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022, \u003C_content/RazorPackageLibraryDirectDependency/RazorPackageLibraryDirectDependency.__fingerprint__.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022" - }, { "Name": "Vary", "Value": "Content-Encoding" @@ -2294,8 +2306,8 @@ ] }, { - "Route": "AppWithPackageAndP2PReference.__fingerprint__.styles.css", - "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AppWithPackageAndP2PReference\\AppWithPackageAndP2PReference#[.{fingerprint=__fingerprint__}]?.styles.css.br", + "Route": "_content/AnotherClassLib/js/project-direct-dep.js", + "AssetFile": "${ProjectPath}\\AppWithPackageAndP2PReference\\obj\\Debug\\${Tfm}\\compressed\\publish\\_content\\AnotherClassLib\\js\\project-direct-dep.js.br", "Selectors": [ { "Name": "Content-Encoding", @@ -2310,7 +2322,7 @@ }, { "Name": "Cache-Control", - "Value": "max-age=31536000, immutable" + "Value": "no-cache" }, { "Name": "Content-Encoding", @@ -2322,7 +2334,7 @@ }, { "Name": "Content-Type", - "Value": "text/css" + "Value": "text/javascript" }, { "Name": "ETag", @@ -2336,27 +2348,15 @@ "Name": "Last-Modified", "Value": "__last-modified__" }, - { - "Name": "Link", - "Value": "\u003C_content/ClassLibrary/ClassLibrary.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022, \u003C_content/RazorPackageLibraryDirectDependency/RazorPackageLibraryDirectDependency.__fingerprint__.bundle.scp.css\u003E; rel=\u0022preload\u0022; as=\u0022style\u0022" - }, { "Name": "Vary", "Value": "Content-Encoding" } ], "EndpointProperties": [ - { - "Name": "fingerprint", - "Value": "__fingerprint__" - }, { "Name": "integrity", "Value": "__integrity__" - }, - { - "Name": "label", - "Value": "AppWithPackageAndP2PReference.styles.css" } ] }, diff --git a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsCompressionIntegrationTest.cs b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsCompressionIntegrationTest.cs index 94de9a5784dc..1f875688f57a 100644 --- a/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsCompressionIntegrationTest.cs +++ b/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsCompressionIntegrationTest.cs @@ -99,6 +99,38 @@ public void Build_Detects_PrecompressedAssets() } } + [Fact] + public void CanEnable_CompressionOnAllAssets() + { + var expectedManifest = LoadBuildManifest(); + var testAsset = "RazorAppWithP2PReference"; + ProjectDirectory = CreateAspNetSdkTestAsset(testAsset) + .WithProjectChanges((project, xml) => + { + if (project.Contains("ClassLibrary")) + { + xml.Descendants("PropertyGroup") + .First().Add(new XElement("StaticWebAssetBuildCompressAllAssets", "true")); + } + }); + + var build = CreateBuildCommand(ProjectDirectory, "AppWithP2PReference"); + ExecuteCommand(build).Should().Pass(); + + var intermediateOutputPath = build.GetIntermediateDirectory(DefaultTfm, "Debug").ToString(); + var outputPath = build.GetOutputDirectory(DefaultTfm, "Debug").ToString(); + + // GenerateStaticWebAssetsManifest should generate the manifest file. + var path = Path.Combine(intermediateOutputPath, "staticwebassets.build.json"); + new FileInfo(path).Should().Exist(); + var manifest = StaticWebAssetsManifest.FromJsonBytes(File.ReadAllBytes(path)); + AssertManifest(manifest, expectedManifest); + + // GenerateStaticWebAssetsManifest should copy the file to the output folder. + var finalPath = Path.Combine(outputPath, "AppWithP2PReference.staticwebassets.runtime.json"); + new FileInfo(finalPath).Should().Exist(); + } + [Fact] public void PublishWorks_With_PrecompressedAssets() {