MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal TV-Server » Help on Development » Development


Development You want to code something for the TV-Server? Share it in here!

Reply
 
Thread Tools Display Modes
Old 2008-03-10, 18:19   #1 (permalink)
Portal Member
 
zebons's Avatar
 
Join Date: Feb 2006
Posts: 629
Thanks: 5
Thanked 72 Times in 52 Posts


Default Debug a plugin with vs 2005 Express

Hi,
How can I debug my plugin with vs 2005 Express without adding Mediaportal project in mine or my plugin in Mediaportal project ?
In a prvious install on my PC, I could do it, but I had to reinstall my PC and now I don't remenber how I configure it to do so, but in my project, I entered in debug mode with the F5 function (Mediaportal was automaticly compiled) and I don't add that project into mine....
zebons is online now   Reply With Quote
Old 2008-03-11, 17:43   #2 (permalink)
Portal Member
 
zebons's Avatar
 
Join Date: Feb 2006
Posts: 629
Thanks: 5
Thanked 72 Times in 52 Posts


Default

Nobody using vs c# 2005 Express ?
zebons is online now   Reply With Quote
Old 2008-03-11, 20:01   #3 (permalink)
Portal Designer
 
Inker's Avatar
 
Join Date: Dec 2004
Posts: 1,560
Thanks: 35
Thanked 137 Times in 58 Posts

My System

Default

I don't know about 2005, but I ran 2008 express for a bit. The express line seems to miss configuration options to start external programs and attach to them.

To my surprise, a project that was done in 2008 prof and then opened in express did launch and connect to the external app though, you just can't configure it inside VS.

Locate you're csproj.user file, and in the config you want, try adding the following:
Code:
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <StartAction>Program</StartAction>
    <StartProgram>h:\MP2\xbmc\bin\Release\mediaportal.exe</StartProgram>
    <RemoteDebugEnabled>false</RemoteDebugEnabled>
    <StartWorkingDirectory>h:\MP2\xbmc\bin\Release\</StartWorkingDirectory>
  </PropertyGroup>
Obviously you also need to set up post-build events to copy the dll into the correct directory.

Again I don't know if this works in 2005 express.
__________________

There are only two industries that refer to their customers as "users".
- Edward Tufte
Inker is offline   Reply With Quote
Old 2008-03-12, 07:37   #4 (permalink)
Portal Member
 
zebons's Avatar
 
Join Date: Feb 2006
Posts: 629
Thanks: 5
Thanked 72 Times in 52 Posts


fixed

Quote:
Originally Posted by Inker View Post
I don't know about 2005, but I ran 2008 express for a bit. The express line seems to miss configuration options to start external programs and attach to them.

To my surprise, a project that was done in 2008 prof and then opened in express did launch and connect to the external app though, you just can't configure it inside VS.

Locate you're csproj.user file, and in the config you want, try adding the following:
Code:
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <StartAction>Program</StartAction>
    <StartProgram>h:\MP2\xbmc\bin\Release\mediaportal.exe</StartProgram>
    <RemoteDebugEnabled>false</RemoteDebugEnabled>
    <StartWorkingDirectory>h:\MP2\xbmc\bin\Release\</StartWorkingDirectory>
  </PropertyGroup>
Obviously you also need to set up post-build events to copy the dll into the correct directory.

Again I don't know if this works in 2005 express.
It works fine !
zebons is online now   Reply With Quote
Reply

Bookmarks

Tags
2005, debug, express, plugin

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling MS Visual C# 2005 Express Edition GadgetMan General Development (no feature request here!) 1 2007-07-05 09:19
SQL Express 2005 crashing with Vista martin_gren Get Support 4 2007-01-31 17:18
Microsoft Visual C# 2005 Express Edition ohdarklord General Development (no feature request here!) 3 2007-01-09 07:32
VS 2005 express compile error bevpet General Development (no feature request here!) 2 2005-11-27 08:33
Visual Studio 2005 express AllenConquest General Development (no feature request here!) 2 2005-02-11 10:42


All times are GMT +1. The time now is 13:03.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden