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.

When TargetName is specified dotnet run command fails

See original GitHub issue

I have created a console application and added the TargetName name property (See screen shot attached). Then dotnet run fails to execute the application. dotnet build works as excepted.

Tested on .NET 5 and .NET 6 preview SDKs.

dotnet

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rainersigwaldcommented, Jul 30, 2021

These have been separate for a very long time, but I don’t know how often they’re actually separated. It’s surprising to me that this is even possible. I also note that TargetName isn’t documented but AssemblyName is, though that’s a pretty weak signal since our documentation isn’t reliably great (no insult intended to our current doc writer!).

0reactions
marcpopMSFTcommented, Aug 4, 2021

Sounds like you’ve found a solution and using TargetName is not supported at this time so closing this out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

dotnet-run command not working as expected
When I run dotnet build in my VS Code terminal, it works as expected. But the problem is, in the same project, when...
Read more >
"Dotnet build" command should generate an error directing ...
"Dotnet build" command should generate an error directing you to use "dotnet msbuild" if you try to specify a target to run (/t:TargetName) ......
Read more >
Unable to run dotnet bundle in csproj target
It seems to be only refusing to execute the command, claiming that 'No executable found matching command "dotnet-bundle"', even though running that exact ......
Read more >
dotnet run command - .NET CLI
The dotnet run command provides a convenient option to run your application from the source code.
Read more >
Exec Task - MSBuild
Learn to use the MSBuild Exec task to run a specified program or command by using the specified arguments.
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