dotnet / dotnet/sdk

[StaticWebAssets] Provide the ability to pass additional assets via an MSBuild property at build/publish time

Open
#52,019 0 comments 2 reactions 1 assignee Assigned to @Copilot View on GitHub
Area-AspNetCore StaticWebAssets untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

* The property will be a semicolon separated list of values where each value is a content root path, followed by a basepath and separated by comma.
* For example `<>,<>;<>,<>.
* We want to have a new target that runs at the same time as `ResolveCurrentProjectStaticWebAssets` and performs the same actions. Just with the set of provided content root base path pairs.
* We need to add E2E tests for this at https://github.com/dotnet/sdk/tree/main/test/Microsoft.NET.Sdk.StaticWebAssets.Tests
* Look at how is done in one of the static web assets baseline tests.
* Use one of the assets from the existing testassets
* add some folders outside of the project.
* Run `dotnet build` passing the property (let's call it AdditionalContentRoots)
* Validate that the assets are present in the generated manifests.
* You can run the tests and inspect the manifest manually to make sure they work.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.