This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- | |
| I found this way somethimes saves you good chunk of time | |
| --> | |
| <Target Name="Createwxs" AfterTargets="AfterBuild"> | |
| <ItemGroup> | |
| <MicrosoftDlls Include="$(OutputPath)\Microsoft.*.*" /> | |
| <MicrosoftDlls Include="$(OutputPath)\System.*.*" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- | |
| I find myself using this a lot to coordinate incompatible reference types. but still project dependencies. | |
| Example 1. CSProj project referencing a C++ project which also brings some other native dependencies | |
| Example 2. .net core project running another project as .net48 executable, but referencing directly causes so much dll hell due to incompatibility of frameworks. | |
| This way you can put them in correct folder location | |
| --> | |
| <Target Name="CopyPublishedFiles" AfterTargets="BeforeBuild"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Target Name="PublishAfterBuild" AfterTargets="Build" Condition="'$(PublishCallWithinBuild)' != 'true' "> | |
| <MSBuild Projects="$(MSBuildThisFileFullPath)" Targets="Publish" Properties="PublishCallWithinBuild=true" /> | |
| </Target> |