Skip to content
This repository has been archived by the owner on Apr 11, 2020. It is now read-only.

problem publishing ts app using web deploy #412

Closed
lucamorelli opened this issue Feb 28, 2016 · 2 comments
Closed

problem publishing ts app using web deploy #412

lucamorelli opened this issue Feb 28, 2016 · 2 comments

Comments

@lucamorelli
Copy link

Hi, first of all I have to way I'm not sure if this is for tooling or for typescript report: I'm talking about an asp.net 4 app using angular, ts 1.8.
Since with ts 1.8 is possible to add a tsconfig file in asp.net 4 projects too, I added it and configured it to create a single output file this way

{
  "compilerOptions": {
    "noImplicitAny": false,
    "noEmitOnError": true,
    "removeComments": false,
    "target": "es5",
    "inlineSourceMap": true,
    "inlineSources": true,
    "outFile": "Scripts/application.js"
  },
  "exclude": [
    "node_modules",
    "wwwroot"
  ]
}

All works fine until I try to deploy to an azure app service using web deploy: added it, configured, but when I try to deploy I have this error:

Copying file App\Maintenance.js to obj\Debug\Package\PackageTmp\App\Maintenance.js failed. Could not find file 'App\Maintenance.js'.

This is one the ts files that are compiled in the single file 'application.js'.
If my ts installation is not broken, looks like web deploy still continues to look inside the msbuild project settings for the deployment settings of ts files, but adding tsconfig.json file this changes, and when tsconfig file is present typescript project settings are disabled.

Proof of this is that if I rename the tsconfig file, reapply settings via project settings and try to deploy, everything works fine.

@sayedihashimi
Copy link
Contributor

The TypeScript story for ASP.NET Core 1 is not clear to me. I just asked about it at microsoft/TypeScript#7321.

I think we should post this to the typescript repo. @lucamorelli can you port it and close this?

@lucamorelli
Copy link
Author

opened microsoft/TypeScript#7322. Anyway this issues is about an asp.net 4 app.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants