Skip to content

Instantly share code, notes, and snippets.

@tomoh1r
Last active Aug 29, 2015
Embed
What would you like to do?
MSBuild.ExtensionPack 使ってみる
<?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