.NET publish in Azure error MSB3094: "DestinationFiles" refers to 1 item(s), and "SourceFiles"
l

Luuk Peters (Proud Nerds)

8 months ago
I'm at a loss. I have a very simple, practically empty Umbraco 15 project with only uSync and a private package installed. It will publish locally, but it will not publish in Azure. When executing the dotnetcli task in Azure, I see that it executes the following command:
/opt/hostedtoolcache/dotnet/dotnet publish /home/vsts/work/1/s/Test/Test.csproj --configuration Release --output /home/vsts/work/1/a/Test'
It will fail with the following error:
/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.
I think it something to do with the files that are being copied, but that's not something that changes between Umbraco 13 and 15 as far as I know and this pipeline has been in use for quite some time.
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#
Because the site is practically empty and a local publish works as expected, I'm at a loss what could be causing this. The only difference is that the build pipeline is Linux and my local machine Windows. Any idea?
System.InvalidOperationException: Unknown provider name "Microsoft.Data.SqlClient" (SOLVED)
d

Dennis Bidstrup

over 1 year ago
Hi. I'm trying to upgrade from Umbraco 12 to 13. I have changed the dotnet versions, and upgraded the Umbraco nuget packages. But know I get an error stating it cant finde Microsoft.Data.SqlClient The first error I got was: BootFailedException: Boot failed: Umbraco cannot run. See Umbraco's log file for more details. -> Umbraco.Cms.Core.Exceptions.BootFailedException: Unattended installation failed. -> Umbraco.Cms.Core.Exceptions.UnattendedInstallException: Unattended installation failed. -> System.ArgumentException: The specified invariant name 'Microsoft.Data.SqlClient' wasn't found in the list of registered .NET Data Providers. at System.Data.Common.DbProviderFactories.GetFactory(String providerInvariantName, Boolean throwOnError) Then I added, DbProviderFactories.RegisterFactory("Microsoft.Data.SqlClient", SqlClientFactory.Instance); And now I get: BootFailedException: Boot failed: Umbraco cannot run. See Umbraco's log file for more details. -> Umbraco.Cms.Core.Exceptions.BootFailedException: The database configuration failed. Please check log file for additional information (can be found in '/Umbraco/Data/Logs/') -> Umbraco.Cms.Core.Exceptions.UnattendedInstallException: The database configuration failed. Please check log file for additional information (can be found in '/Umbraco/Data/Logs/') -> System.InvalidOperationException: Unknown provider name "Microsoft.Data.SqlClient" at Umbraco.Cms.Infrastructure.Persistence.DbProviderFactoryCreator.GetSqlSyntaxProvider(String providerName) Anyone know how to fix this?