Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I automatically add the files gulp creates to my Visual Studio project?

I'm new to gulp. I set it up to preprocess some javascript in a folder within my project. When the task completes, new minified files are created, but they are not automatically included in my Visual Studio Project.

How can I automatically add these to my project? Do I have to manually add files created by gulp or other preprocessors manually?

like image 443
bingo Avatar asked Oct 08 '15 04:10

bingo


1 Answers

If the filenames aren't going to change the easiest thing is to add the files into the project.

If they are going to change you can edit the .csproj file and change Context Include= to a wildcard (*).

Right click on the project and choose Unload Project. Then right-click on the project again and Edit name.csproj. Find a file in the same location you want to include and change it to *.

e.g.

<Content Include="Dist\js\*.js" />

Then Visual Studio will pick up whatever is in the folder.

like image 97
danny-sg Avatar answered Nov 15 '22 06:11

danny-sg