Startup Options - Can I download before run?

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

Startup Options - Can I download before run?

Postby Yu Nakamura » August 29th, 2014, 6:05 am

I'm developing a plugin program for a CMS.
The plugin has to be "installed" by the CMS's install-system.

With PHP Tools, I made two projects in a solution.
The one is for the entire CMS,
and the other is for the installation package.

When I want to debug my plugin, I run the latter project.
I publish the plugin codes before run,
by using the Startup Options of the project, then I install the plugin.

After that, I want to run(debug) the CMS with XDebug support.
But when I run the former project, it is not the same with the CMS in the Custom Web Server.

To debug my plugin, I have to download the CMS before I run the former project.

So, can I download before run?
I want an option such as, say, "Download before run using following profile:".
(or, "build event" in the property of a C# project file.
with it, I will write a .bat to download before build.
it might be more flexible to everyone...)
Yu Nakamura
 
Posts: 5
Joined: August 7th, 2014, 4:56 am
Location: Hiroshima, Japan

Re: Startup Options - Can I download before run?

Postby Miloslav Beno » September 2nd, 2014, 10:59 am

Hi!

Thanks for your post.

I was thinking about your situation and we're planing some options for your situation and I'd very interested what you think it would fit you the best.

1. option - Project References

Since 1.14 there is project reference property SubPath, where you can setup reference path relative to the current project.

We could add CopyLocal property, that would actually copy the contents of the referenced project before run. In a sense what you called "Download before run using following profile", but just on file system.

2. option - MsBuild

We are going to improve our msbuild story in future version. So that will add possibility to hook into some action that would allow you to run some custom actions

3. option - Build/Publish whole solution

Run publish for all projects.

Thanks!
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm

Re: Startup Options - Can I download before run?

Postby Yu Nakamura » September 3rd, 2014, 5:54 am

Hi Miloslav Beno,
Thank you for your reply!

1. option - Project References

It sounds good for me.
But the destination where the copies are made have to be described by me.
Copying simply is not enough, because the file/folder tree structure of the installation package is differ from that of the CMS.

2. option - MsBuild

I think this would be the best solution.
Ideally I want to do the following tasks when I run (debug):

a) Gather my plugin files from the CMS project, and create the installation package by re-arranging and compressing them.
b) Upload the installation package and run the CMS's install-system.
The install-system registers my plugin into it's database.
c) Visit the Custom Web Server to see whether it works correctly or not. XDebug support is needed.

This will enable me to do them.
Yu Nakamura
 
Posts: 5
Joined: August 7th, 2014, 4:56 am
Location: Hiroshima, Japan

Re: Startup Options - Can I download before run?

Postby Miloslav Beno » September 4th, 2014, 3:06 pm

Hi Yu Nakamura,

Thank you very much for your toughts!

Option 1.

The destination where to copy the referenced project could be specified in SubPath reference property.

Example for Wordpress:

A - Plugin Project
B - WordPress
- Project Reference A( SubPath: "wp-content/plugins/A", CopyLocal: True)

This way when run WordPress project would be updated with plugin into wp-content/plugins/A directory

Option 2.

We're going to implement this option. Actually option 1 could be defined in msbuild file.

Thanks!







That should probably by enough?
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm

Re: Startup Options - Can I download before run?

Postby Yu Nakamura » September 9th, 2014, 3:25 am

That should probably by enough?

Yes, I'm looking forward to the option!


By the way,
I set the "Notify me when a reply is post" checked, when I post my message,
but the board doesn't do what he says...

My profile (E-mail address) is right. Are there any required info to be notified?
Yu Nakamura
 
Posts: 5
Joined: August 7th, 2014, 4:56 am
Location: Hiroshima, Japan


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 52 guests

cron

User Control Panel

Login

Who is online

In total there are 52 users online :: 0 registered, 0 hidden and 52 guests (based on users active over the past 5 minutes)
Most users ever online was 399 on April 19th, 2024, 11:49 pm

Users browsing this forum: No registered users and 52 guests