Add new files / remove old files automatically from solution

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

Add new files / remove old files automatically from solution

Postby beo6 » February 26th, 2018, 4:52 pm

Hello,

i have another question.
It might be not something specific for PHP-Tools, but maybe since i have not found a working solution for this usecase there is something existing in PHP-Tools or maybe an idea for an update.

Sometimes i work together with other people that might not use Visual Studio to develop. (yep that happens. :)) But when they add new files or delete old files, the sln project does not update automatically. New files are not visible in the Project, and deleted files are still in the list.

Is there any way to update it automatically? Currently my only idea to update it, is always dragging the whole project folder into the project again, and telling it not to overwrite anything. But old deleted files are still included in the project then.

I found something on google where i should edit the *.phpproj file in an editor and adding something like
Code: Select all
<Folder Include="Volumes\typo3\**\*" />

or
Code: Select all
<Compile Include="Volumes\typo3\**\*" />


But when i did that, files also showed up as folder and i could not open them.
beo6
 
Posts: 8
Joined: February 11th, 2018, 6:33 pm

Re: Add new files / remove old files automatically from solu

Postby DanTalash » February 26th, 2018, 6:08 pm

If you enable 'Show All Files' in your solution explorer then all files will be shown even if they are not included in your solution.
You do not have the required permissions to view the files attached to this post.
DanTalash
 
Posts: 23
Joined: November 25th, 2015, 6:19 pm

Re: Add new files / remove old files automatically from solu

Postby beo6 » February 26th, 2018, 10:53 pm

ahh. thx.

But i guess it will still display deleted files.
Just found that i can change the .phpproj

parts with
Code: Select all
  <ItemGroup>...</ItemGroup>

to
Code: Select all
  <ItemGroup>
    <Compile Include="**" />
  </ItemGroup>
  <ItemGroup>
    <Content Include="**" />
  </ItemGroup>


seem to work.
But thanks. Like this its a lot better to work with it.
beo6
 
Posts: 8
Joined: February 11th, 2018, 6:33 pm


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 53 guests

cron

User Control Panel

Login

Who is online

In total there are 53 users online :: 0 registered, 0 hidden and 53 guests (based on users active over the past 5 minutes)
Most users ever online was 256 on March 28th, 2024, 9:42 am

Users browsing this forum: No registered users and 53 guests