question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Steps to reproduce

PS C:\Source\cli-samples\HelloMvc> dotnet run -f net452
2. The project does not support the desired framework: net452

Expected behavior

dunno, either no numbered list at all or the missing part of the message (if one exists)?

Actual behavior

2. The project does not support the desired framework: net452

Environment data

dotnet --info output:

PS C:\Source\cli-samples\HelloMvc> dotnet --info
.NET Command Line Tools (1.0.0-rc2-002655)

Product Information:
 Version:     1.0.0-rc2-002655
 Commit Sha:  3e96a05f9c

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.10586
 OS Platform: Windows
 RID:         win10-x64

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
dasMullicommented, May 9, 2016

It would be nice if build, publish and run produced the same error message.

Currently their output is:

$ dotnet run -f net452
2. The project does not support the desired framework: net452
$ dotnet build -f net452
Project '/Users/…/BuildRepository/project.json' does not support framework: .NETFramework,Version=v4.5.2.
$ dotnet publish -f net452
'/Users/…/BuildRepository' cannot be published for 'net452' '<no runtime provided>'

My preference would be towards the current output of build (Project '…' does not support framework: .NETFramework,Version=v4.5.2.)

1reaction
dasMullicommented, May 9, 2016

The root issue of the missing 1. … line is quite simple… classic operator precedence and associativity surprise 🎉

a set of parenthesis is needed here "a" + null == null ? "b" : "c" is always "c" 😉

I’m holding off submitting a PR because there is still dotnet/sdk#5919 and i’m afraid it might break some tooling.

Read more comments on GitHub >

github_iconTop Results From Across the Web

List of country calling codes
1 –. United States, including United States territories: 1 (340) –. United States Virgin Islands · 1 (670) –.
Read more >
United States Country Code +1
The United States country code 1 will allow you to call United States from another country. United States telephone code 1 is dialed...
Read more >
Country Code List
AT&T Country Codes. Canada. CA / CAN. 1. Cape Verde. CV / CPV. 238. Cayman Islands. KY / CYM. 1 345. Central African...
Read more >
The World Clock — Worldwide
Wed = Wednesday, August 23, 2023 (1 place). UTC (GMT/Zulu)-time: undefined, August 21, 2023 at 00:02:51. UTC is Coordinated Universal Time, GMT is...
Read more >
Where is One (Live) - YouTube
Provided to YouTube by The Orchard EnterprisesWhere is One (Live) · Allan HoldsworthLive in Japan 1984℗ 1997 The Estate of Allan Holdsworth, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found