Skip to content

Problem sharing TS code files between different Visual Studio projects #7153

@KoenT-X

Description

@KoenT-X

I've been trying to make 2 Visual Studio 2015 CE web app projects share the same TypeScript file, but could not find a way to do this. I am using the AMD module system with require.

While coding VS seems to be fine with the require("......") statement for the common code file. However, when running, I get an exception from require.

I have more details on the general problem in this SO post:
http://stackoverflow.com/questions/35506086/using-typescript-files-in-different-web-apps-with-require-amd

and the repository with a self-contained example that reproduces the problem can be found here:
https://bitbucket.org/KoenT_IM/typescripttests

Just build and run the project under Applications/CodeSharingApp1 to reproduce this.

Perhaps the fact that the relative path "climbs out" of the project path to reference the common TS file, is what causes the problem. But then I'm not sure how to share a folder with common TS code files between different projects...

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptNeeds More InfoThe issue still hasn't been fully clarified

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions