microsoft / microsoft/MSBuildSdks
Remove TargetFramework requirement from Microsoft.Build.NoTargets SDK
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 508
- Forks
- 94
- Avg merge
- 6h 40m
- Merged PRs (30d)
- 2
Description
The NoTargets SDK seems to require TargetFramework. Without it I get:
MSB4044 The "ResolvePackageAssets" task was not given a value for the required parameter "TargetFramework".
Can that requirement be removed? The readme says NoTargets is "useful for utility projects that just copy files, build packages, or any other function where an assembly is not compiled". I have no need for a target framework in my case, and have dependency packages that should not be tied to a target framework either.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Microsoft.Build.NoTargets SDK and reproduce the reported MSB4044 error when TargetFramework is absent. Trace how ResolvePackageAssets receives its TargetFramework requirement, then verify that utility projects and dependency packages work without a target framework.
Written by the indexing model from the issue text.
Assessment
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100