Including javascript files from other projects inside the same solution

Posted by gnomixa on Stack Overflow See other posts from Stack Overflow or by gnomixa
Published on 2010-06-03T00:21:39Z Indexed on 2010/06/03 3:24 UTC
Read the original article Hit count: 278

Filed under:
|

I have a project called WebResources where I have all the JS files that I intend to use in 2 other projects (all three projects sit in the same solution).

I just spent 2 hours playing around with the file paths and VS just doesn't see the JS file (unless I specify the full path with the drive letter). Is there a trick to including javascript files relatively from other projects?

My file structure is something like:

Project1
  Default.aspx
Project2
WebResourcesProject
   /js
     testToInclude.js

No matter how I try to include testToInclude.js inside Default.aspx, VS doesn't see it.

Any ideas?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about visual-studio