Skip to content
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

Implicit Compilation of d.ts files not included in a VS project. #4726

Closed
gravidThoughts opened this issue Sep 10, 2015 · 6 comments
Closed
Labels
Duplicate An existing issue was already created

Comments

@gravidThoughts
Copy link

I have an issue where I added a Bower component that distributes angular.d.ts, which I already have included elsewhere in my project.

Even though my bower_components directory is excluded from the project, it appears TSC is still compiling this d.ts resulting in duplicate declaration errors.

Is this the intended behavior of implicit compilation?

@danquirk
Copy link
Member

Yes this is a problem today. See #4665 for some proposed solutions and discussion.

@danquirk danquirk added the Duplicate An existing issue was already created label Sep 10, 2015
@mhegazy
Copy link
Contributor

mhegazy commented Sep 10, 2015

@gravidThoughts can you use --listFils and let me know where is the other angular.d.t.s is coming form? we have no builtin resolvers that will look under bower_component.

@gravidThoughts
Copy link
Author

@mhegazy I found your answer on SO about adding compiler parameters to the project file, but I cannot find an item pointing to tsc in my project file.

It is a TS node console project.

Do I need to modify the targets file described here?
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.targets" Condition="False" />

@mhegazy
Copy link
Contributor

mhegazy commented Sep 11, 2015

@gravidThoughts i am not sure i understand the question. can you link to the SO issue?

@gravidThoughts
Copy link
Author

@mhegazy http://stackoverflow.com/questions/12710691/visual-studio-typescript-options

I created a new project with the HTML App with TS template as you refererred to in the above post. I still don't see the BeforeBuild target your refer to in your answer.

I do have VS 2013 Update 5, and installed VS TS 1.5 since I started this issue.

The bottom line is I don't know how to send the --listFiles parameter to the tsc compiler in VS, as you requested me to do.

@mhegazy
Copy link
Contributor

mhegazy commented Sep 11, 2015

can you share your build log.
in VS, goto tools\optoions\Projects and Solutions\Build and Run\ select "MSBuild project build output verbosity" to be "Detailed"

rebuild your project, and share that. feel free to email me at mhegazy at microsoft.

@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

3 participants