Is there a way to remove a specific warning from running MSBuild?

I get a warning when starting MSBuild in BTDF, so ...

EXEC : warning : If any of the assemblies were previously loaded by a Host Instance, it may be necessary to restart the Host Instance for changes to take effect. [C:\Program Files (x86)\Test\1.0\Deployment\Deployment.btdfproj] 

... but this is a β€œfalse” warning that just confuses things.

Can I turn off these and other warnings in running BTDF / MSBuild?

I have read and it seems that setting IgnoreStandardErrorWarningFormat is true, and using suitable regular expressions for CustomWarningRegularExpression and CustomErrorRegularExpression may be the answer to this, but I cannot decide how to do it

Any pointers?

+6
source share
1 answer

One could pass the / warn: 0 argument to BTDF, but this would suppress all warnings, which are probably undesirable.

The warning you are talking about is harmless (like so many other warnings that BizTalk generates during deployment). Your best bet is to educate your users about what warnings mean and when they can be ignored.

If you really need to suppress these warnings, modify the .targets file - find the Exec instructions associated with BTSTask.exe (just find the line BTSTask.exe). Add the properties you mentioned above and rebuild your msi / project. You will need to create a regex to suppress this warning because you will not want to suppress the actual warnings that should be accepted.

0
source

Source: https://habr.com/ru/post/971112/


All Articles