microsoft / microsoft/MSBuildSdks

Remove TargetFramework requirement from Microsoft.Build.NoTargets SDK

Open
#368 9 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature Request
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.