Finally, found the answer at GitHub.
https://github.com/dotnet/core/issues/2716
- Open project Properties.
- Select Build tab.
- Go to Output section.
- Set Generate Serialization Assembly to Auto or Off
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I got an error when try to publish a .net library project. Try to troubleshoot it all night but not work. Search in Google and forum but nothing come out. Publish target-runtime is Portable (publish error occur). Change to win-x86 (same error occur).
Environment Info
MS Win 10 x86
MS VSC 2019 v16.11.1
.Net 5.0
Image 1 : Error
Image 2 : Output Log
Diagnostic Log
8/18/2021 3:11:41 PM
System.AggregateException: One or more errors occurred. ---> >Microsoft.WebTools.Shared.Exceptions.WebToolsException: Publish has encountered an error. We were >unable to determine the cause of the error. Check the output log for more details.
--- End of inner exception stack trace ---
---> (Inner Exception #0) Microsoft.WebTools.Shared.Exceptions.WebToolsException: Publish has >encountered an error. We were unable to determine the cause of the error. Check the output log for >more details. <---Microsoft.WebTools.Shared.Exceptions.WebToolsException: Publish has encountered an error. We were >unable to determine the cause of the error. Check the output log for more details.
===================
Any idea, help or solution to this problem is really appreaciate and thanks.
Finally, found the answer at GitHub.
https://github.com/dotnet/core/issues/2716
Hi,
Put attention to versions of App Functions and version in Visual Studio
Image:
https://imgur.com/a/FAMsmsf