Is there a standard file extension for MSBuild files?

前端 未结 4 946
花落未央
花落未央 2020-12-12 23:53

Is there a standard file extension for MSBuild files that are not project files but instead more complex build scripts?

I was thinking .msbuild.proj to avoid confusi

4条回答
  •  青春惊慌失措
    2020-12-13 00:05

    I recommend what VS does:

    .*proj for project files --- msbuild.exe will find them automatically if they match this pattern
    .targets for build process --- generally imported towards the end of your project
    .props for shared settings --- generally imported towards the top of your project. C++ (*.vcxproj) files use these, and they will doubtless get added to VB and C# default project files at some point.
    

提交回复
热议问题