dotnet / dotnet/project-system

Changing platform target results in flashing error message

Open
#2,747 2 comments 0 reactions 0 assignees View on GitHub
Feature-Configurations Triage-Approved
Dominant language
C#
Stars
1k
Forks
415
PR merge metrics
No merged PRs in 30d

Description

I'm using VS 2017 15.3.2.

With this csproj:
```


Exe
net47

```

If I change Platform target (under Project Properties, Build), I get an error message that appears and then disappears:
```
Assets file '' doesn't have a target for '.NETFramework,Version=v4.7/win7-x64'. ENsure that restore has run and that you have included 'net47' in the TargetFramework for your project. You may also need to include 'win7-x64' in your project's RuntimeIdentifiers.
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue from the shown csproj by changing Platform target under Project Properties > Build. Start by tracing how that change triggers restore and displays the reported assets-file error. Done means changing the platform target no longer produces a flashing error message and the project remains in the expected restored state.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
build-system, developer-experience
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.