Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Diagnostic log generated on Publish errors#12390

Unanswered
edleno2 asked this question inQ&A
Discussion options

So I'm working on an msbuild custom task to run as "AfterPublish" to restart some services after the publish completes. This will be in a Nuget package. The user has to add the custom task to their NetSDK project file and provide some parameters. If the parameters are not valid the custom task does a Log.Error call. While testing using Visual Studio 2022 and the Publish panel I see that on my machine this always causes a diagnostic log to be generated and the attached dialog put out.
MSBuild diagnostic log message
The log file isn't useful - it is about an exception regarding Microsoft.WebTools.Shared.Exceptions.WebToolsException.

The error message that is generated by the custom task is what the user has to fix. I think this diagnostic log will cause confusion if users see it.
Of course, if you run msbuild as a command line there is no issue, this is Visual Studio behavior. I have my message level for Build set at "minimal" in Visual Studio options.

My question: is this normal, or did I sometime in a previous life turn on some diagnostics to cause these logs to be generated? Anyway to stop this behavior? Just putting in garbage in a source unit so that it doesn't compile also generates this dialog and diagnostic log during publish. Builds work, this is just Publish behavior.

You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

@anvillan /@vijayrkn is this some behavior unique to VS publishing scenarios?

You must be logged in to vote
1 reply
@anvillan
Comment options

@baronfel

Yes. This behavior is unique to VS IDE publish scenario(s):

  • By default, the dialog is shown when publish operation result is marked as"Failed".
  • It has been like this since, at least, VS 16.11 (2019).
  • Current implementation does not offer users a way to not display this dialog on publish failure.

CC:@vijayrkn

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
3 participants
@edleno2@baronfel@anvillan

[8]ページ先頭

©2009-2025 Movatter.jp