You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using MSBuilds to deploy projects the build fails because it cannot find the required typings file.
packages\Zoltu.BuildTools.TypeScript.FromReferencesTask.2.0.5.0\build\Zoltu.BuildTools.TypeScript.FromReferencesTask.targets (9, 3)
Could not find file 'D:\VNextAgent\_work\4\s\Logistics Portal\Common Projects\Jdn.LogisticsPortal.Utilities\Scripts\utils.d.ts'.
Process 'msbuild.exe' exited with code '1'.
This is because the file is not added to source control (TFS in this case). However when adding the file to source control, visual studio fails to compile because there are duplicate declarations (once in your .ts and once in your .d.ts files).
I'm a believer of the "generated files should not be committed to source control", so my initial reaction is to say that this is working as intended. That being said, I would like to understand your use case a little better to see if there is something that can be done to help resolve the issue.
The first question I have is how is your TFS setup? Presumably, TFS should generate the .d.ts files for referenced projects on build and therefore building the project with the references should "just work" on TFS just like it does locally.
As far as committing the files to source control, which files did you try committing to source control? The way things are setup, assuming TFS builds the same as locally even if you did commit to source control everything should work fine.
Activity
MicahZoltu commentedon Sep 16, 2016
I'm a believer of the "generated files should not be committed to source control", so my initial reaction is to say that this is working as intended. That being said, I would like to understand your use case a little better to see if there is something that can be done to help resolve the issue.
The first question I have is how is your TFS setup? Presumably, TFS should generate the
.d.tsfiles for referenced projects on build and therefore building the project with the references should "just work" on TFS just like it does locally.As far as committing the files to source control, which files did you try committing to source control? The way things are setup, assuming TFS builds the same as locally even if you did commit to source control everything should work fine.