Posted .net core project System.AggregateException: One or more errors occurred

 

Background: Create a .net core webapi project before time is 2.2 SDK version 2.1 after the change, when the release of error.

When the release of error, the information is displayed:

In fact, here was able to see some information, but because of the amount of information is too small, no way to know the specific error, you need to set it: Tools -> Options -> Projects and Solutions -> Build and run

Development Tools VS itself in order to generate speed released, it will generate a log output is set to a minimum; if you need the most detailed, long into the diagnosis, is the most detailed of the

 Read:

The output look:

The results are easy to see, that is generated will be used when the sdk version 2.2. why? Because when you create a project, it has been written this part of the configuration, when the manual went into version 2.1 of the time, this part does not change overnight.

Therefore, the only change here, did not make debugging problems, but when generated, it is not alright.

Because, when the creation of 2.2, the project file which more than one sentence csproj

When I comment out this sentence, and then generate the published article, it can normally released.

If, after the transfer release version of the reason, it can not be accessed because the file must be in csproj inside the iis.

Guess you like

Origin www.cnblogs.com/Vam8023/p/10945574.html