Dean Leigh
06/18/2024, 5:31 AMDean Leigh
06/18/2024, 5:33 AMkdx-perbol
06/18/2024, 8:59 AMPubTmp
, that's correct.
From within Visual Studio 2022 Preview I can't publish, it complains about the below. But the real root cause is not a path length limitation, I can manually create the missing files. I'm writing this off as a Preview problem.
> "Unable to copy file "C:\Users\...\.nuget\packages\umbraco.cms.staticassets\14.0.0\staticwebassets\umbraco\backoffice\packages\language\collection\views\table\column-layouts\entity-actions\language-table-entity-actions-column-layout.element.d.ts" to "E:\...\obj\Debug\net8.0\win-x64\PubTmp\Out\wwwroot\umbraco\backoffice\packages\language\collection\views\table\column-layouts\entity-actions\language-table-entity-actions-column-layout.element.d.ts". Could not find a part of the path 'E:\...\obj\Debug\net8.0\win-x64\PubTmp\Out\wwwroot\umbraco\backoffice\packages\language\collection\views\table\column-layouts\entity-actions\language-table-entity-actions-column-layout.element.d.ts'.kdx-perbol
06/18/2024, 9:00 AMDean Leigh
06/18/2024, 10:10 AMkdx-perbol
06/18/2024, 10:52 AMkdx-perbol
06/18/2024, 10:54 AMdotnet publish
locally works fine as well.kdx-perbol
06/18/2024, 10:54 AMkdx-perbol
06/18/2024, 10:55 AMdotnet publish
, do you get the same errors?Sebastiaan
06/18/2024, 2:23 PMdotnet publish -c Release -o .\release
in the directory where your sln file is?Dean Leigh
06/18/2024, 2:23 PMDean Leigh
06/18/2024, 3:30 PMSebastiaan
06/18/2024, 4:37 PMSebastiaan
06/18/2024, 4:38 PMDean Leigh
06/18/2024, 5:14 PMAll projects are up-to-date for restore.
C:\Program Files\dotnet\sdk\8.0.300\Current\SolutionFile\ImportAfter\Microsoft.NET.Sdk.Solution.targets(36,5): warning NETSDK1194: The "--out
put" option isn't supported when building a solution. Specifying a solution-level output path results in all projects copying outputs to the
same directory, which can lead to inconsistent builds. [C:\Users\deanl\source\repos\xDotNetTemplate\UmBootstrap-V14-01\UmBootstrap-V14-01.sln
]
kdx-perbol
06/18/2024, 7:38 PMkdx-perbol
06/18/2024, 7:41 PMDean Leigh
06/18/2024, 8:06 PMDean Leigh
06/18/2024, 8:06 PMSeverity Code Description Project File Line Suppression State
Error Unable to copy file "C:\Users\deanl\.nuget\packages\umbraco.cms.staticassets\14.0.0\staticwebassets\umbraco\backoffice\packages\block\block-grid\property-editors\block-grid-group-configuration\property-editor-ui-block-grid-group-configuration.element.js" to "C:\Users\deanl\source\repos\xDotNetTemplate\UmBootstrap-V14-01\UmBootstrap-V14-01\obj\Release\net8.0\PubTmp\Out\wwwroot\umbraco\backoffice\packages\block\block-grid\property-editors\block-grid-group-configuration\property-editor-ui-block-grid-group-configuration.element.js". Could not find a part of the path 'C:\Users\deanl\source\repos\xDotNetTemplate\UmBootstrap-V14-01\UmBootstrap-V14-01\obj\Release\net8.0\PubTmp\Out\wwwroot\umbraco\backoffice\packages\block\block-grid\property-editors\block-grid-group-configuration\property-editor-ui-block-grid-group-configuration.element.js'. UmBootstrap-V14-01 0
kdx-perbol
06/18/2024, 8:07 PMkdx-perbol
06/18/2024, 8:07 PMdotnet publish
and you don't seem to either?kdx-perbol
06/18/2024, 8:07 PMdotnet publish
to Azure. (But don't publish the whole solution to the same folder, just publish the Umbraco project.)kdx-perbol
06/18/2024, 8:08 PMkdx-perbol
06/18/2024, 8:09 PMkdx-perbol
06/18/2024, 8:10 PMdotnet publish
in your screenshot worked, I'd just deploy to Azure some other way. I've only ever used "web publish from VS" as a test thing anyway.kdx-perbol
06/18/2024, 8:11 PMDean Leigh
06/18/2024, 8:12 PMkdx-perbol
06/18/2024, 8:12 PMDean Leigh
06/18/2024, 8:13 PMkdx-perbol
06/18/2024, 8:13 PMDean Leigh
06/18/2024, 8:15 PMkdx-perbol
06/18/2024, 8:15 PMJason
06/18/2024, 8:16 PMkdx-perbol
06/18/2024, 8:17 PMDean Leigh
06/18/2024, 8:17 PMDean Leigh
06/18/2024, 8:19 PMkdx-perbol
06/18/2024, 8:19 PMJason
06/18/2024, 8:20 PMJason
06/18/2024, 8:21 PMDean Leigh
06/18/2024, 8:21 PMkdx-perbol
06/18/2024, 8:21 PMDean Leigh
06/18/2024, 8:22 PMkdx-perbol
06/18/2024, 8:22 PMDean Leigh
06/18/2024, 8:22 PMJason
06/18/2024, 8:23 PMkdx-perbol
06/18/2024, 8:24 PMDean Leigh
06/18/2024, 8:25 PMkdx-perbol
06/18/2024, 8:28 PMdotnet publish
the Umbraco project and deploy that) it would probably work. But I was wondering if the publish process in VS has the same bug when publishing to disk as it does when publishing to the web.Dean Leigh
06/18/2024, 8:31 PMdotnet publish
as you suggested early on as well as @Sebastiaan's suggestionkdx-perbol
06/18/2024, 8:32 PMdotnet publish
on the Umbraco project and a subsequent deploy of that should work. Maybe the VSCode extension is doing something wrong? If you look at the Azure wwwroot
, does it look like it should?kdx-perbol
06/18/2024, 8:34 PMMicrosoft Web Deploy V3\msdeploy.exe
, so you should be able to do that manually as well.Dean Leigh
06/18/2024, 8:35 PMkdx-perbol
06/18/2024, 8:36 PMmsdeploy.exe
in my release pipe takes a zip file, I'm guessing you have a standard web project structure instead?kdx-perbol
06/18/2024, 8:38 PMmsdeploy.exe
and msdeploy.axd
on Azure does more than just copy some files. I'm guessing it configures IIS and stuff as well. But your VSCode extension should do that as well.kdx-perbol
06/18/2024, 8:39 PMDean Leigh
06/18/2024, 8:39 PMkdx-perbol
06/18/2024, 8:43 PMkdx-perbol
06/18/2024, 8:44 PMDean Leigh
06/18/2024, 8:47 PMJason
06/18/2024, 8:48 PMkdx-perbol
06/18/2024, 8:48 PMDean Leigh
06/18/2024, 8:49 PMkdx-perbol
06/18/2024, 8:52 PMkdx-perbol
06/18/2024, 8:53 PMmsdeploy
it, you're done. πDean Leigh
06/18/2024, 8:54 PMDean Leigh
06/18/2024, 8:54 PMDean Leigh
06/18/2024, 8:55 PMkdx-perbol
06/18/2024, 8:58 PMcsc.exe
from the VS installation and then the .NET SDK Target files with asset copying. The folder publish command-line I can't see, but judging by the speed and output it seems to just dotnet publish
.kdx-perbol
06/18/2024, 9:00 PMcsc
command line is 63k chars long... for a dotnet new umbraco
projectJason
06/18/2024, 9:01 PMkdx-perbol
06/18/2024, 9:02 PMkdx-perbol
06/18/2024, 9:03 PMkdx-perbol
06/18/2024, 9:03 PMC:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin\Roslyn\csc.exe
and then 62000 characters of flags, options, source files, SDK references etc.kdx-perbol
06/18/2024, 9:07 PMdotnet publish
and then some Azure command-line deploy application? Couldn't we use that on Windows?Jason
06/18/2024, 9:08 PMJason
06/18/2024, 9:09 PMkdx-perbol
06/18/2024, 9:10 PMJason
06/18/2024, 9:11 PMkdx-perbol
06/18/2024, 9:11 PMkdx-perbol
06/18/2024, 9:12 PMJason
06/18/2024, 9:12 PMJason
06/18/2024, 9:14 PMJason
06/18/2024, 9:14 PMJason
06/18/2024, 9:15 PMJason
06/18/2024, 9:16 PMkdx-perbol
06/18/2024, 9:17 PMkdx-perbol
06/18/2024, 9:17 PMcsc.exe
for some reason.Jason
06/18/2024, 9:17 PMJason
06/18/2024, 9:18 PMJason
06/18/2024, 9:18 PMJason
06/18/2024, 9:19 PMkdx-perbol
06/18/2024, 9:19 PMkdx-perbol
06/18/2024, 9:19 PMkdx-perbol
06/18/2024, 9:20 PMDean Leigh
06/19/2024, 5:55 AMWarren Buckley
06/19/2024, 6:30 AMDean Leigh
06/19/2024, 6:33 AMSebastiaan
06/19/2024, 6:33 AMDean Leigh
06/19/2024, 6:36 AMkdx-perbol
06/19/2024, 7:30 AMkdx-perbol
06/19/2024, 7:30 AMSebastiaan
06/19/2024, 7:31 AMdotnet publish
which works!Dean Leigh
06/19/2024, 7:31 AMSebastiaan
06/19/2024, 7:32 AMkdx-perbol
06/19/2024, 8:19 AMJason
06/19/2024, 9:07 AMxopabyteh
07/16/2024, 10:30 AMkdx-perbol
07/18/2024, 7:19 AM