how to add stop msbuild from building the project visual studio build option

299 Views Asked by At

I want to stop msbuild default "build" target to stop building my code instead, i want to define my custom target which will build my application. how to achieve this?

Thanks,

1

There are 1 best solutions below

5
Mr Qian On BEST ANSWER

Just open the csproj file of your project.

And add these at the bottom of the file:

<Target Name="Build">

//write your custom build function

</Target>

It will overwrite the default build and use yours.