-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Description
We just update some applications using Visual Studio .csproj files and Typescript to 2.7.1 (strict).
The process went smoth, fixing the definitely assignment of class fields, but the CI system fails with the following message:
Copying file should_not_exist.file to obj\x64\To-Test\Package\PackageTmp failed. Could not find file 'should_not_exist.file'
The project file is very similar to: https://github.com/signumsoftware/southwind/blob/master/Southwind.React/Southwind.React.csproj
This file contains two custom blocks:
SignumTSGenerator
Custom MSBuild task that generates TS code from C#, commenting it out does not make any difference so I think is ok.
<UsingTask TaskName="SignumTSGenerator" AssemblyFile="..\Framework\Signum.TSGenerator\Binaries\Signum.TSGenerator.dll" />
<Target Name="GenerateSignumTS">
<SignumTSGenerator References="@(ReferencePath)" Content="@(Content);@(None)" />
</Target>
<PropertyGroup>
<CompileTypeScriptDependsOn>
GenerateSignumTS;
$(CompileTypeScriptDependsOn);
</CompileTypeScriptDependsOn>
</PropertyGroup>WebPackBuild
This parts collects everithing in dist folder to the MSDeploy package. Commenting it out removes the problem (but of course the application doesn't work).
<PropertyGroup Condition="'$(Configuration)' != 'Debug'">
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
<CompileDependsOn>
$(CompileDependsOn);
WebPackBuild;
</CompileDependsOn>
</PropertyGroup>
<Target Name="WebPackBuild" DependsOnTargets="CompileTypeScript">
<Exec Command="npm install" />
<Exec Command="npm run build" />
</Target>
<PropertyGroup Condition="'$(Configuration)' != 'Debug'">
<CopyAllFilesToSingleFolderForPackageDependsOn>
$(CopyAllFilesToSingleFolderForPackageDependsOn);
CollectWebpackOutput;
</CopyAllFilesToSingleFolderForPackageDependsOn>
<CopyAllFilesToSingleFolderForMsdeployDependsOn>
$(CopyAllFilesToSingleFolderForMsdeployDependsOn);
CollectWebpackOutput;
</CopyAllFilesToSingleFolderForMsdeployDependsOn>
</PropertyGroup>
<Target Name="CollectWebpackOutput">
<ItemGroup>
<_CustomWebpackFiles Include="dist\**\*" />
<FilesForPackagingFromProject Include="%(_CustomWebpackFiles.Identity)">
<DestinationRelativePath>dist\%(RecursiveDir)%(Filename)%(Extension)</DestinationRelativePath>
</FilesForPackagingFromProject>
</ItemGroup>
<Message Text="CollectWebpackOutput list: %(_CustomWebpackFiles.Identity)" />
</Target>Also, reverting the commits that updated to 2.7 (similar to signumsoftware/southwind@d9c20f1#diff-b80350f6aff97bcc35c7aa3fe715a3b2) removes the problem.
I've compared a v=diag build of the solution with 2.6 and 2.7.
The files are quite big, but while the 2.6 version makes no reference to should_not_exist.file, the new one does many times. Here are the Search results:
Line 357963: Added Item(s): GeneratedJavascript=should_not_exist.file
Line 357967: Output file "should_not_exist.file" does not exist.
Line 357973: Removed Item(s): GeneratedJavascript=should_not_exist.file
Line 418646: Added Item(s): GeneratedJavascript=should_not_exist.file
Line 418650: Output file "should_not_exist.file" does not exist.
Line 418655: Removed Item(s): GeneratedJavascript=should_not_exist.file
Line 476007: Added Item(s): GeneratedJavascript=should_not_exist.file
Line 476015: Task Parameter:Files=should_not_exist.file (TaskId:673)
Line 476019: should_not_exist.file
Line 476020: OriginalItemSpec=should_not_exist.file
Line 476021: TargetPath=should_not_exist.file (TaskId:673)
Line 476025: should_not_exist.file
Line 476030: OriginalItemSpec=should_not_exist.file
Line 476032: TargetPath=should_not_exist.file
Line 476035: should_not_exist.file
Line 476036: OriginalItemSpec=should_not_exist.file
Line 476037: TargetPath=should_not_exist.file
Line 476038: Added Item(s): Content=should_not_exist.file
Line 495027: C:\Code\IntTec\IntTec.React\should_not_exist.file (TaskId:699)
Line 495523: C:\Code\IntTec\IntTec.React\should_not_exist.file (TaskId:699)
Line 495726: Task Parameter:Text=App\Calculation\Templates\CalculationDocumentsPage.tsx;App\Calculation\Templates\VehicleDiagram.css;App\Calculation\Templates\VehicleDiagram.svg;App\Calculation\ThreeCar\Assets\Shadow.png;App\Calculation\ThreeCar\Assets\Sky.jpg;App\DocumentViewer\images\arrow.png;App\DocumentViewer\images\circle.png;App\DocumentViewer\images\rect.png;App\DocumentViewer\Lightbox.css;App\DocumentViewer\Lightbox.tsx;App\DocumentViewer\Portal.tsx;App\Gateway\DAT\SilverDatIntegration\siteSilverDat.css;App\siteVehicle.css;App\site.css;App\Mapping\MappingTable.css;App\ImportGlasmatic\IntTec.Entities.ImportGlasmatic.t4s;App\Gateway\Autoonline\IntTec.Entities.Gateway.Autoonline.t4s;App\static\CeLogoBrand.svg;App\static\synapses.png;App\VehicleSearch\AwesomeSearch.css;App\VehicleSearch\logo_ce.svg;App\vendors.js;favicon.ico;Global.asax;App\VehicleSearch\MyTest.html;package.json;App\ImportAudatex\IntTec.Entities.ImportAudatex.t4s;App\ApiModels\IntTec.Entities.ApiModels.t4s;App\Calculation\IntTec...
Line 495727: App\Calculation\Templates\CalculationDocumentsPage.tsx;App\Calculation\Templates\VehicleDiagram.css;App\Calculation\Templates\VehicleDiagram.svg;App\Calculation\ThreeCar\Assets\Shadow.png;App\Calculation\ThreeCar\Assets\Sky.jpg;App\DocumentViewer\images\arrow.png;App\DocumentViewer\images\circle.png;App\DocumentViewer\images\rect.png;App\DocumentViewer\Lightbox.css;App\DocumentViewer\Lightbox.tsx;App\DocumentViewer\Portal.tsx;App\Gateway\DAT\SilverDatIntegration\siteSilverDat.css;App\siteVehicle.css;App\site.css;App\Mapping\MappingTable.css;App\ImportGlasmatic\IntTec.Entities.ImportGlasmatic.t4s;App\Gateway\Autoonline\IntTec.Entities.Gateway.Autoonline.t4s;App\static\CeLogoBrand.svg;App\static\synapses.png;App\VehicleSearch\AwesomeSearch.css;App\VehicleSearch\logo_ce.svg;App\vendors.js;favicon.ico;Global.asax;App\VehicleSearch\MyTest.html;package.json;App\ImportAudatex\IntTec.Entities.ImportAudatex.t4s;App\ApiModels\IntTec.Entities.ApiModels.t4s;App\Calculation\IntTec.Entities.Calculatio...
Line 496196: should_not_exist.file
Line 496198: DestinationRelativePath=should_not_exist.file
Line 499880: should_not_exist.file
Line 499885: OriginalItemSpec=should_not_exist.file
Line 499887: TargetPath=should_not_exist.file
Line 500249: should_not_exist.file
Line 500251: DestinationRelativePath=should_not_exist.file
Line 503222: should_not_exist.file
Line 503227: OriginalItemSpec=should_not_exist.file
Line 503229: TargetPath=should_not_exist.file
Line 503591: should_not_exist.file
Line 503593: DestinationRelativePath=should_not_exist.file
Line 506565: should_not_exist.file
Line 506570: OriginalItemSpec=should_not_exist.file
Line 506572: TargetPath=should_not_exist.file
Line 506934: should_not_exist.file
Line 506936: DestinationRelativePath=should_not_exist.file
Line 510323: should_not_exist.file
Line 510328: OriginalItemSpec=should_not_exist.file
Line 510330: TargetPath=should_not_exist.file
Line 510686: should_not_exist.file
Line 510688: DestinationRelativePath=should_not_exist.file
Line 514616: should_not_exist.file
Line 514621: OriginalItemSpec=should_not_exist.file
Line 514623: TargetPath=should_not_exist.file
Line 514972: should_not_exist.file
Line 514974: DestinationRelativePath=should_not_exist.file
Line 517965: Copying should_not_exist.file to obj\x64\To-Test\Package\PackageTmp. (TaskId:781)
Line 517966: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Microsoft\VisualStudio\v15.0\Web\Microsoft.Web.Publishing.targets(2603,5): error : Copying file should_not_exist.file to obj\x64\To-Test\Package\PackageTmp failed. Could not find file 'should_not_exist.file'. [C:\Code\IntTec\IntTec.React\IntTec.React.csproj]
Line 517966: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Microsoft\VisualStudio\v15.0\Web\Microsoft.Web.Publishing.targets(2603,5): error : Copying file should_not_exist.file to obj\x64\To-Test\Package\PackageTmp failed. Could not find file 'should_not_exist.file'. [C:\Code\IntTec\IntTec.React\IntTec.React.csproj]
Line 517969: should_not_exist.file
Line 517974: OriginalItemSpec=should_not_exist.file
Line 517976: TargetPath=should_not_exist.file
Line 518325: should_not_exist.file
Line 518327: DestinationRelativePath=should_not_exist.file
Line 673727: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Microsoft\VisualStudio\v15.0\Web\Microsoft.Web.Publishing.targets(2603,5): error : Copying file should_not_exist.file to obj\x64\To-Test\Package\PackageTmp failed. Could not find file 'should_not_exist.file'. [C:\Code\IntTec\IntTec.React\IntTec.React.csproj]
Line 673727: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Microsoft\VisualStudio\v15.0\Web\Microsoft.Web.Publishing.targets(2603,5): error : Copying file should_not_exist.file to obj\x64\To-Test\Package\PackageTmp failed. Could not find file 'should_not_exist.file'. [C:\Code\IntTec\IntTec.React\IntTec.React.csproj]
Any idea what this files does, and why/how it could interact with MSDeploy / dist folder?