-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Backslash in reference path causes Visual studio 2013 to drop js in wrong directory #2152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I will need more information to be able to reproduce this issue locally. here is my setup: output directory: "out" // file1.ts
var f1 = 1; // file2.ts
/// <reference path="c:\users\mhegazy\documents\visual studio 2015\Projects\TypeScriptHTMLApp3\TypeScriptHTMLApp3\file1.ts" />
var f2 = 2; after build, i see out to include file1.js and file2.js |
Hello Mohamed, sorry for not getting back sooner on this. The problem is that the reference path is also the relative location to the By putting the scripts on the root, the resulting javascript drops under I am looking for a behavior where the compilation outputs are dropped in a What do you think? Guy On Thu, Feb 26, 2015 at 10:53 AM, Mohamed Hegazy [email protected]
|
The output folder structure is dependent on the "best common path" of the input. I think what you want is a --projectRoot or --commonSourcePath option to force the compiler to generate outputs to mirror a specific input folder structure. |
Hello Mohamed, what I am looking for is a single output directory (Resources) in which all Does that make sense? Guy On Sun, Mar 8, 2015 at 1:06 PM, Mohamed Hegazy [email protected]
|
when you call the compiler with --outDir outputDirectoryPath, it tries to miror the inpyt directory structure under outputDirectoryPath.
calling the compiler with ` b.ts c.ts --outDir outputDirectoryPath |
When you call the compiler with --outDir outputDirectoryPath, it tries to mirror the input directory structure under outputDirectoryPath.
Calling the compiler with
adding a.ts to the input
I think what you need, is a way to tell the compiler, regardless of my inputs, always consider |
Would be nice allow VS macros for build commands. The result would be something like |
@licinioamendes i have logged #4109 to track that issue. |
this is addressed by --rootDir: #2772 |
Select Redirect Javascript output to directory.
Create ts with reference to another ts using backslash for path.
Build.Look for resulting javascript file in windows explorer.
The text was updated successfully, but these errors were encountered: