.NET Core 3.1 - Azure Web/FTP Deployment - Dlls locked


#1

Having issues deploying files to azure using Web/FTP deployment from within VS 2019.
Seems like hangfire locks dll’s.

Startup.cs:
services.AddHangfire(configuration => configuration
.SetDataCompatibilityLevel(CompatibilityLevel.Version_170)
.UseSimpleAssemblyNameTypeSerializer()
.UseRecommendedSerializerSettings()
.UseSqlServerStorage(Configuration[“Data:ConnectionStrings:HangfireConnection”], new SqlServerStorageOptions
{
CommandBatchMaxTimeout = TimeSpan.FromMinutes(5),
SlidingInvisibilityTimeout = TimeSpan.FromMinutes(5),
QueuePollInterval = TimeSpan.Zero,
UseRecommendedIsolationLevel = true,
UsePageLocksOnDequeue = true,
DisableGlobalLocks = true
}));

Also,

<EnableMSDeployAppOffline>true</EnableMSDeployAppOffline>

does not seem to do the trick. I’m forced to stop the app service.

Any know how’s regarding this issue?