msbuild - C++/CX Visual Studio 2013 - Include / Reference / Link files Programmatically inside Visual Studio -


Instead of adding files using the Visual Studio IDE, I have to add files programmatically.

This is because javascript has to be added during build-time from a basic folder (which is customized by customer) outside of the project, and is moved to build-time inside the project Although I can transfer the files in the project using the msbild approach, but the project does not reference those files. I have no MA without any luck

Please do I know how to do this to anyone? Itemproc = "text">

Using the MSBield file (the main project file with the .vcxproj extension) I came up with a solution to permanently link files:

  & Lt; ItemGroup & gt; & Lt; Do not include any = "www \ **" & gt; & Lt; DeploymentContent & gt; True & lt; / DeploymentContent & gt; & Lt; / None & gt; & Lt; / ItemGroup & gt;  

To dynamically delete and copy files in the required directory:

   & Lt; Message text = "remove file command" condition = "exists ('www')" value = "high" & gt; & Lt; / Message & gt; & Lt; / Target & gt; & Lt ;! - http://msdn.microsoft.com/en-us/library/3e54c37h.aspx - & gt; & Lt; Target name = "copy files" & gt; & Lt; Message text = "copyfile target" value = "high" & gt; & Lt; / Messages & gt; & Lt; Copy source files = "@ (MySourceFiles)" destination files @ "@ (MySourceFiles-> www \% (recursive directory)% (filename)% (extension) ')" /> & Lt; / Target & gt; & Lt; Target name = "first build" & gt; & Lt; Message text = "build before build" value = "high" & gt; & Lt; / Messages & gt; & Lt; / Target & gt; & Lt; Target name = "afterbild" & gt; & Lt; Call Target Goal = "Clean Goal" & gt; & Lt; / CallTarget & gt; & Lt; Call Target Goal = "Copy Files" & gt; & Lt; / CallTarget & gt; & Lt; / Target & gt;  

My new problem is that the project is making changes only with the previous build case. This means that if I have to switch to another JavaScript folder then I need to run this project twice. I

The technical problem is that the first build event does not apply in my C ++ / CX application project (I believe it will work with the threads that I have read the Internet in the C # project).


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -