Luuk Peters (Proud Nerds)
02/11/2025, 3:41 PM/opt/hostedtoolcache/dotnet/dotnet publish /home/vsts/work/1/s/Test/Test.csproj --configuration Release --output /home/vsts/work/1/a/Test'/opt/hostedtoolcache/dotnet/sdk/9.0.101/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Publish.targets(355,5): error MSB3094: "DestinationFiles" refers to 1 item(s), and "SourceFiles" refers to 435 item(s). They must have the same number of items.Test -> /home/vsts/work/1/s/TestDockerDeploymentSlot/bin/Release/net9.0/Test.dll
Copying JSON schema files into project directory: appsettings-schema.usync.json;appsettings-schema.Umbraco.Cms.json;appsettings-schema.ProudNerds.Umbraco.Core.json;appsettings-schema.ProudNerds.Umbraco.Core.Headless.json
Copying JSON schema files into project directory: umbraco-package-schema.json
Adding JSON schema references to appsettings-schema.json: https://json.schemastore.org/appsettings.json;appsettings-schema.usync.json#;appsettings-schema.Umbraco.Cms.json#;appsettings-schema.ProudNerds.Umbraco.Core.json#;appsettings-schema.ProudNerds.Umbraco.Core.Headless.json#Luuk Peters (Proud Nerds)
02/11/2025, 3:55 PMxml
<Project Sdk="Microsoft.NET.Sdk.Web">
  <PropertyGroup>
    <TargetFramework>net9.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
    <CompressionEnabled>false</CompressionEnabled> <!-- Disable compression. E.g. for umbraco backoffice files. These files should be precompressed by node and not let dotnet handle it -->
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="ProudNerds.Umbraco.Headless" Version="4.0.0-beta202502101" />
    <PackageReference Include="Umbraco.Cms" Version="15.2.0" />
  </ItemGroup>
  <ItemGroup>
    <!-- Opt-in to app-local ICU to ensure consistent globalization APIs across different platforms -->
    <PackageReference Include="Microsoft.ICU.ICU4C.Runtime" Version="72.1.0.3" />
    <PackageReference Include="uSync" Version="15.1.1" />
    <RuntimeHostConfigurationOption Include="System.Globalization.AppLocalIcu" Value="72.1.0.3" Condition="$(RuntimeIdentifier.StartsWith('linux')) or $(RuntimeIdentifier.StartsWith('win')) or ('$(RuntimeIdentifier)' == '' and !$([MSBuild]::IsOSPlatform('osx')))" />
  </ItemGroup>
  <ItemGroup>
    <Folder Include="Views\Partials\Components\" />
  </ItemGroup>
  <PropertyGroup>
    <!-- Razor files are needed for the backoffice to work correctly -->
    <CopyRazorGenerateFilesToPublishDirectory>true</CopyRazorGenerateFilesToPublishDirectory>
  </PropertyGroup>
</Project>Sebastiaan
02/11/2025, 3:55 PMdotnet clean -c Releasedotnet publish MyProject1520.csproj Release --output E:\ReleaseE:\ReleaseSebastiaan
02/11/2025, 3:57 PM<PackageReference Include="ProudNerds.Umbraco.Headless" Version="4.0.0-beta202502101" />Luuk Peters (Proud Nerds)
02/11/2025, 3:57 PMSebastiaan
02/11/2025, 3:58 PM<Folder Include="Views\Partials\Components\" />Sebastiaan
02/11/2025, 3:58 PMkdx-perbol
02/11/2025, 4:11 PMLuuk Peters (Proud Nerds)
02/11/2025, 4:15 PM/opt/hostedtoolcache/dotnet/dotnet publish /home/vsts/work/1/s/TestClassicSlot/TestClassicSlot.csproj --configuration Release --output /home/vsts/work/1/a/TestDockerDeploymentSlot' /p:PublishDir=/home/vsts/work/1/a --no-restore
/opt/hostedtoolcache/dotnet/sdk/9.0.101/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(266,5): error NETSDK1004: Assets file '/home/vsts/work/1/s/TestClassicSlot/obj/project.assets.json' not found. Run a NuGet package restore to generate this file. [/home/vsts/work/1/s/TestClassicSlot/TestClassicSlot.csproj]Luuk Peters (Proud Nerds)
02/11/2025, 4:15 PMSebastiaan
02/11/2025, 4:15 PM--no-restoreLuuk Peters (Proud Nerds)
02/11/2025, 4:18 PM/opt/hostedtoolcache/dotnet/sdk/9.0.101/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Publish.targets(355,5): error MSB3094: "DestinationFiles" refers to 1 item(s), and "SourceFiles" refers to 241 item(s). They must have the same number of items. [/home/vsts/work/1/s/TestClassicSlot/TestClassicSlot.csproj]Sebastiaan
02/11/2025, 4:19 PMLuuk Peters (Proud Nerds)
02/11/2025, 4:20 PM# Publish the project to the staging directory
  - task: DotNetCoreCLI@2
    displayName: '.NET: publish solution'
    inputs:
      command: 'publish'
      feedsToUse: 'select'
      vstsFeed: '#REDACTED#'
      arguments: '--configuration ${{ variables.configuration }} --output $(Build.ArtifactStagingDirectory)/${{ variables.solutionName }}'
      zipAfterPublish: false
      modifyOutputPath: falseLuuk Peters (Proud Nerds)
02/11/2025, 4:20 PMD_Inventor
02/11/2025, 4:24 PMSebastiaan
02/11/2025, 4:24 PMSebastiaan
02/11/2025, 4:26 PM'/home/vsts/work/1/a/TestDockerDeploymentSlot''Luuk Peters (Proud Nerds)
02/11/2025, 4:26 PMLuuk Peters (Proud Nerds)
02/11/2025, 4:30 PM# The name (without the .sln extension) of the solution to build/publish release
solutionName: TestDockerDeploymentSlot'Luuk Peters (Proud Nerds)
02/11/2025, 4:31 PMSebastiaan
02/11/2025, 4:32 PMLuuk Peters (Proud Nerds)
02/11/2025, 4:32 PMA hub and casual space for you to interact with fellow community members and learn more about Umbraco!
Powered by