Open shubham-vunet opened 4 years ago
I tried replacing Backwards Slash () with Forward Slash(/) in build/add-migrations.ps1
. It worked in both Linux and Windows. Sorry I can't test on mac.
Updated code looks like this.
#Initialze db context and define the target directory
$targetContexts = @{
AdminIdentityDbContext = "Migrations\Identity"
AdminLogDbContext = "Migrations\Logging";
IdentityServerConfigurationDbContext = "Migrations\IdentityServerConfiguration";
IdentityServerPersistedGrantDbContext = "Migrations\IdentityServerGrants";
AdminAuditLogDbContext = "Migrations\AuditLogging";
IdentityServerDataProtectionDbContext = "Migrations\DataProtection";
}
I can create a PR after reviewing other scripts.
@cossth - thank you for reporting this issue on linux
Description
add-migrations Script is creating folder with forward slash in linux machines. Linux Supports file names with special characters like Colon or Forward Slash. When We are adding Migrations first migration is successful. All consequitive migrations fails. Here is the log to support the issue.
To Reproduce
Steps to reproduce the behavior: (On a linux machine)
cd build
./add-migrations.ps1
Case 2 When Migration Folder Exists
Everything is successful but publishing and building fails. Resulting Directory looks like this.