let's create a normal MSBuild file and name it doSomething.msbuild
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="HelloWorld">
<Message Text="Hello world" />
</Target>
</Project>
now if you open developer console or old school dotnet folder you can call something like this
C:\temp\msbuild doSomething.msbuild
I get an output like this:
now refering to dotnet core doc
I should be able to do the same
dotnet msbuild doSomething.msbuild
but I'm getting this
as you can see I even tried to pass the target name, but no output is generated. if I ask to see all the preprocess I get this:
even both of the msbuild are using the same build engine version 16.5.0+d4cbfca49
any idea how to fix it? or it's a bug?




Importance="High"for message.msbuildand .NET Core cli might use the different verbosity by default. You may look at this question, the idea is the same