Skip to content

Projects targeting netcoreapp1.1 without the shared framework install produce unintelligible errors on build. #493

@galvesribeiro

Description

@galvesribeiro

To reproduce the problem with the latest updates try:

  • Create a new .Net Core project (doesn't matter if Console App or ASP.Net project)
  • Update all original nuget packages that are installed from the template from versions 1.0.x to 1.1.0
  • Hit F5 to Run it

The console app in both cases open and close very quickly without any visible error. The only output is on VS2017 Output pad:

The program '[13892] dotnet.exe' has exited with code -2147450749 (0x80008083).
The program '[13892] dotnet.exe: Program Trace' has exited with code 0 (0x0).

If you don't update the nugets to 1.1.0, it works just fine.

If you try to build with dotnet build this is the returned error:

CSC : error CS5001: Program does not contain a static 'Main' method suitable for an entry point [ THE PATH TO .csproj FILE HERE ]

The templates indeed create a Program.cs which in fact has the static Main() so it must be something else...

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions