Skip to content

problem publishing ts app using web deploy #7322

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

Closed
lucamorelli opened this issue Mar 1, 2016 · 3 comments
Closed

problem publishing ts app using web deploy #7322

lucamorelli opened this issue Mar 1, 2016 · 3 comments
Assignees
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue

Comments

@lucamorelli
Copy link

Hi, I have a problem publishing an asp.net 4 app using angular, ts 1.8 from visual studio.
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.

Is this normal?

@mhegazy
Copy link
Contributor

mhegazy commented Mar 1, 2016

this is caused by the same issue as #7247

@paulvanbrenk
Copy link
Contributor

This is fixed in the nightly NuGet packages in builds after 1.9.0-beta-20160411-1.

@paulvanbrenk paulvanbrenk added the Fixed A PR has been merged for this issue label Apr 11, 2016
@Malyngo
Copy link

Malyngo commented Sep 19, 2016

Is there maybe some workaround so I can fix this in my deployment without having to install the beta?

ah, I found a workaround in this comment: #7741 (comment)
should be good enough for now.

@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
Bug A bug in TypeScript Fixed A PR has been merged for this issue
Projects
None yet
Development

No branches or pull requests

4 participants