Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

How can I start the TypeScriptCompiler from a package

$
0
0

Hi,

I'm trying to create an extension that will synchronize TypeScript files from one Project into another Project. After copying the .ts file from source to destination it should generate the .js and .map.js file in the destination.

I'm using the following code to copy the file to the destination. The .Save() in that code does nothing and after the code only the .ts file is in the destination location.

	ProjectItem destinationProjectItem = FindProjectItem(destinationFolder.ProjectItems, document.Name);

	if (destinationProjectItem != null)
	{
		destinationProjectItem.Delete();
	}
	// Copy source to destination
	ProjectItem newFile = destinationFolder.ProjectItems.AddFromFileCopy(document.FullName);

	newFile.Open();
	newFile.Document.Save();

My question is: How can I start the TypeScript Compiler from this code?

Regards
Paul





Viewing all articles
Browse latest Browse all 4410


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>