-
-
Save spenkk/b355bac9b946932bb50fb16962b833bc to your computer and use it in GitHub Desktop.
test
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
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<Target Name="RunPowerShell"> | |
<StartPowerShell /> | |
</Target> | |
<UsingTask | |
TaskName="StartPowerShell" | |
TaskFactory="CodeTaskFactory" | |
AssemblyFile="C:\Windows\Microsoft.Net\Framework\v4.0.30319\Microsoft.Build.Tasks.v4.0.dll"> | |
<Task> | |
<Code Type="Class" Language="cs"> | |
<![CDATA[ | |
using System; | |
using Microsoft.Build.Framework; | |
using Microsoft.Build.Utilities; | |
using System.Diagnostics; | |
public class StartPowerShell : Task { | |
public override bool Execute() { | |
Process.Start("powershell.exe"); | |
return true; | |
} | |
} | |
]]> | |
</Code> | |
</Task> | |
</UsingTask> | |
</Project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment