Can someone explain (or point to documentation regarding) how project files are implicitly imported per https://github.com/bytecodealliance/componentize-dotnet/blob/22eeed4233ec311f1f3e8f76d0ba0eb191b6ebb1/samples/calculator/Adder/Adder.csproj#L3-L4 ?
Maybe related to these lines? https://github.com/bytecodealliance/componentize-dotnet/blob/22eeed4233ec311f1f3e8f76d0ba0eb191b6ebb1/src/WasmComponent.Sdk/WasmComponent.Sdk.csproj#L39-L41
These lines tell msbuild to include the readme in the final package when it is put together.
Joel Dice said:
These lines are there to bring in the "build" props and targets, which don't get automicatlly added when referencing as a subproject. When you reference the package as a nuget package those files get included into the build process automatically but since Adder is referencing the component sdk as a "project" (https://github.com/bytecodealliance/componentize-dotnet/blob/22eeed4233ec311f1f3e8f76d0ba0eb191b6ebb1/samples/calculator/Adder/Adder.csproj#L17) it doesn't include those files
i think these are the docs you are looking for https://learn.microsoft.com/en-us/dotnet/core/project-sdk/overview#project-files
fyi - I added some links I found helpful when learning this stuff in https://github.com/bytecodealliance/componentize-dotnet/blob/22eeed4233ec311f1f3e8f76d0ba0eb191b6ebb1/CONTRIBUTING.md#debugging
Last updated: Dec 13 2025 at 20:04 UTC