Skip to content

targets mode issue #35

@elangelo

Description

@elangelo

I'm using the Targets Mode to start a powershell script that does the stuff i want (copying config files around, stopping (prebuild) and starting (postbuild) services.

.targets lookse like:

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    <Target Name="Init">
        <!--dirty hack to add a space inside the argument, otherwise the argument is not properly parsed, Trim it in the script!!-->
        <Exec Command="C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File &quot;$(SolutionDir)/Prebuild.ps1&quot; &quot;$(SolutionDir) &quot; &quot;$(TargetDir) &quot;" />
</Target>
</Project>

The powershell scripts only use standard Powershell cmdlets (Write-Output, Copy-Item, Stop-Service and Start-Service)

This used to work very well with vssbe 0.12.7 but with 0.12.9 this seemed to stop working.
The scripts get executed as expected but it looks like after the postbuild target has run, visual studio waits for some output of vssbe as visual studio is completely unresponsive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions