Last active
August 29, 2015 14:08
-
-
Save tomoh1r/e62f2752f0a1775d6f53 to your computer and use it in GitHub Desktop.
MSBuild.ExtensionPack 使ってみる
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<Project | |
DefaultTargets="run" | |
xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<ProjectName>MsBuild Sample01</ProjectName> | |
<!-- load MSBuild.ExtensionPack --> | |
<RootDir>$(MSBuildProjectDirectory)</RootDir> | |
<ExtPackBinDir>MSBuild Extension Pack 4.0.10.0\Binaries</ExtPackBinDir> | |
<PsDll>MSBuild.ExtensionPack.TaskFactory.PowerShell.dll</PsDll> | |
<PsDllPath>$(RootDir)\$(ExtPackBinDir)\$(PsDll)</PsDllPath> | |
</PropertyGroup> | |
<!-- | |
<ItemGroup> | |
</ItemGroup> | |
--> | |
<UsingTask | |
AssemblyFile="$(PsDllPath)" | |
TaskFactory="PowershellTaskFactory" | |
TaskName="Some"> | |
<!-- | |
Do some. | |
--> | |
<Task><![CDATA[ | |
# do some. | |
$log.LogMessage("some some some") | |
]]></Task> | |
</UsingTask> | |
<Target Name="build" > | |
<CallTarget Targets="run;run2;" /> | |
</Target> | |
<Target Name="run"> | |
<Some /> | |
</Target> | |
<Target Name="run2"> | |
<Message Text="Hello, run2." /> | |
</Target> | |
</Project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment