mcc,
@mcc@mastodon.social avatar

Cursed??? C# question:

We have a ProjectName.csproj with a <PropertyGroup><OutputType>Exe</OutputType></PropertyGroup>. Running at the command line, we can successfully run it with dotnet run on Mac, Linux and Windows. On Mac, we can open it in VS Code, hit "Run", and it runs.

On Windows in VS Code only, if we open it and click the run button, it builds a .DLL instead of a .EXE as its final build output and then fails with a message that you cannot run a .DLL.

Why, and how do we not?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • ngwrru68w68
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • megavids
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • provamag3
  • JUstTest
  • All magazines