How to: Reference an MSBuild Project SDK – MSBuild

How to: Reference an MSBuild Project SDK – MSBuild

How to: Use MSBuild job SDKs

  • Article
  • 2 minutes to check out

MSBuild 15.0 presented the principle of the “task SDK”, which streamlines utilizing software application advancement sets that need residential or commercial properties and targets to be imported.

  web46  

During assessment of the job, MSBuild includes implicit imports at the top and bottom of the job file:

    web46    

There are 3 methods to reference a task SDK:

  • Use the Sdk quality on the component:
     ...  

    An implicit import is contributed to the top and bottom of the job as talked about formerly.

    To define a particular variation of the SDK, add it to the Sdk quality:

     ...  
  • Use the high-level aspect:
     ...  

    An implicit import is contributed to the top and bottom of the job as talked about formerly.

    The Version quality is not needed.

  • Use the component throughout your task:
      Value  ...   

    Explicitly consisting of the imports in your job enables you complete control over the order.

Like this post? Please share to your friends:
Leave a Reply

;-) :| :x :twisted: :smile: :shock: :sad: :roll: :razz: :oops: :o :mrgreen: :lol: :idea: :grin: :evil: :cry: :cool: :arrow: :???: :?: :!: