microsoft / TypeScript

TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
https://www.typescriptlang.org
Apache License 2.0
101.34k stars 12.54k forks source link

Cannot publish when using TypeScriptOutDir #3178

Closed mcintyre321 closed 9 years ago

mcintyre321 commented 9 years ago

When my project contains a custom typescipt output directory, I cannot publish my project using VS 2013 Update 3/4 or when pushed to Azure/Kudu.

e.g. Inside Host.csproj:

 <TypeScriptOutDir>.\obj\jsoutput</TypeScriptOutDir>

will cause the following error appears in the publish log:

Copying file .\obj\jsoutput\Host.js to obj\Debug\Package\PackageTmp\.\obj\jsoutput\Host.js failed.

Could not find a part of the path '.\obj\jsoutput\Host.js'.

If I comment the line out, the publish succeeds. This happens with various other paths, not just the one from the example above.

A similar issue this was previously raised here: https://github.com/Microsoft/TypeScript/issues/292

mcintyre321 commented 9 years ago

The good news is this is fixed - I installed the 1.5 beta and could successfully publish.

The bad news is it's not on Azure/Kudu yet, so I have to stick with manual publishes!

Thanks for your help.