Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Organizes shared MSBuild policy, targets, and package versions via Directory.Build and Directory.Packages props files.
91% 100%+9 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 20 of 22 without it.
In .NET 8, we want to consolidate all project build outputs (`bin`, `obj`, `publish`) into a single root `artifacts/` folder across the entire repository to prevent build path collisions. What single property should be set, and in which file?
Sets the ArtifactsPath property
This test ran on v1. v2 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
.sln,
.slnx, .proj, or project file at that path. If no repo-root entry point
exists, give commands for the discovered projects or state that the entry
point was not found.Microsoft.Common.props searches
upward from each project and automatically imports the nearest
Directory.Build.props early; project values can then override shared
defaults. Explain the equivalent late Microsoft.Common.targets import when
recommending Directory.Build.targets.Understanding which file to use is critical. They differ in when they are imported during evaluation:
Evaluation order:
Microsoft.Common.props imports Directory.Build.props early
→ project body and package/project imports evaluate
→ Microsoft.Common.targets imports Directory.Build.targets late
Use .props for | Use .targets for |
|---|---|
| Setting property defaults | Custom build targets |
| Common item definitions | Late-bound property overrides |
| Properties projects can override | Post-build steps |
| Assembly/package metadata | Conditional logic on final values |
| Analyzer PackageReferences | Targets that depend on SDK-defined properties |
Next to this one in the catalogue, plus more from the same author.