Quantcast
Channel: /r/powershell – How to Code .NET
Viewing all articles
Browse latest Browse all 8793

Debugging a Visual Studio 2010 Project from Powershell?

$
0
0

I’m trying to automate some of my work. One process involves running the debugger on a project in Visual Studio 2010.

So far, I’ve been able to create a program that starts the debugger, but that’s all.

I’m having trouble figuring out how to record the errors/warnings (e.g. write them to another file), end the debugger once it’s gone through the project, and close out of VS. I know there are ways to do this within VS using extensions, but since I’m operating on a server, I don’t have permissions to download what I’d need.

This is my code so far that I execute with a .bat file:

param ( [Parameter(Mandatory = $false)] [String] $TargetFileName ) & "C:Program Files (x86)Microsoft Visual Studio 10.0Common7IDEdevenv.exe" /command "Debug.Start" /debugexe $TargetFileName 

Any and all advice would be greatly appreciated!

submitted by /u/mathnstats
[link] [comments]

The post Debugging a Visual Studio 2010 Project from Powershell? appeared first on How to Code .NET.


Viewing all articles
Browse latest Browse all 8793

Trending Articles