TypeScript icon indicating copy to clipboard operation
TypeScript copied to clipboard

TypeScript v1.7 MSBuild tooling breaks web application publish

Open mattbrooks2010 opened this issue 11 years ago • 48 comments

Summary

Installing TypeScript 1.7 tooling for Visual Studio causes different behaviour from 1.6 when publishing web applications, both from within Visual Studio (right click > publish) and via msbuild.exe (/p:DeployOnBuild=true).

This issue has only been observed using a file system publish.

Symptoms

Generated JavaScript is no longer included in the packaged / published output.

Observations

It appears there is a difference in the MSBuild Content ItemGroup's metadata. I believe that previously the generated JavaScript files were being included in the Content ItemGroup as paths relative to the .csproj file:

Scripts\App.js    

As of 1.7 it appears the generated JavaScript files are now being included in Content as absolute paths:

C:\Projects\Solution\Web\Scripts\App.js

Perhaps this is causing a problem for the web publishing mechanism?

mattbrooks2010 avatar Dec 02 '15 17:12 mattbrooks2010

Tested using VS2013.5 desktop build / publish and also TFS2015.1 CI build / publish. Originally reported symptoms have been fixed. Thanks!

mattbrooks2010 avatar Dec 11 '15 08:12 mattbrooks2010

Tested succesfully on TFS2015.1 classical XAML build. Thx.

JiriZidek avatar Dec 12 '15 13:12 JiriZidek

I was caught by the same problem on 1.7.4 Resolved in 1.7.6 Thank you!

MarcioMonego avatar Dec 13 '15 14:12 MarcioMonego

Working great here. Thanks for being so fast with a fix! Another test case for the books, eh? :+1:

nicholashead avatar Dec 14 '15 17:12 nicholashead

1.7.6 on our build server solved problems here as well! Thanks!

ccrabb avatar Dec 14 '15 22:12 ccrabb

Hi, I tried to install VS 2015 TS 1.7.6 Update on my build machine with no luck. First I installed VS 15 Isolated Shell from https://connect.microsoft.com/VisualStudio/ExtendVS Then Installed VS 2015 Update 1 Then trying to install TS 1.7.6 I get "This version of TypeScript requires Visual Studio 2015 Update 1 to be installed"

How can I install TS 1.7.6 on my build machine without installing full version of VS? P.S. same scenario with VS 13 isolated shelled worked fine with TS 1.7.5

PavelA85 avatar Dec 15 '15 09:12 PavelA85

The build tools for VS 2013 and VS 2015 are identical, so for your build server installing the VS 2013 bits should be sufficient.

You may have to copy the files from:

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\TypeScript

to

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\TypeScript

We'll make sure any future installers work as expected.

paulvanbrenk avatar Dec 15 '15 19:12 paulvanbrenk

Closing this since it's been resolved and verified.

paulvanbrenk avatar Dec 17 '15 23:12 paulvanbrenk