diff --git a/.github/workflows/deploy_tool_nupkg.yml b/.github/workflows/deploy_tool_nupkg.yml index 23a75feb..e2cb5725 100644 --- a/.github/workflows/deploy_tool_nupkg.yml +++ b/.github/workflows/deploy_tool_nupkg.yml @@ -7,7 +7,7 @@ jobs: build: name: Create dotnet tool NuGet package runs-on: ubuntu-latest - container: mcr.microsoft.com/dotnet/sdk:6.0 + container: mcr.microsoft.com/dotnet/sdk:8.0 steps: - name: Check out repository uses: actions/checkout@v3 diff --git a/.github/workflows/dotnet-build-test.yml b/.github/workflows/dotnet-build-test.yml index 57e25f99..4268160b 100644 --- a/.github/workflows/dotnet-build-test.yml +++ b/.github/workflows/dotnet-build-test.yml @@ -10,13 +10,13 @@ jobs: build: name: Build and test .NET projects runs-on: ubuntu-latest - container: mcr.microsoft.com/dotnet/sdk:6.0 + container: mcr.microsoft.com/dotnet/sdk:8.0 steps: - uses: actions/checkout@v3 - name: Setup .NET uses: actions/setup-dotnet@v2 with: - dotnet-version: 6.0.x + dotnet-version: 8.0.x - name: Restore dependencies run: dotnet restore - name: Build @@ -28,4 +28,4 @@ jobs: uses: actions/upload-artifact@v4 with: name: debug-build - path: /home/runner/work/data-migration-desktop-tool/data-migration-desktop-tool/Core/Cosmos.DataTransfer.Core/bin/Debug/net6.0 #path/to/artifact/ # or path/to/artifact + path: /home/runner/work/data-migration-desktop-tool/data-migration-desktop-tool/Core/Cosmos.DataTransfer.Core/bin/Debug/net8.0 #path/to/artifact/ # or path/to/artifact diff --git a/.github/workflows/internal-test-build.yml b/.github/workflows/internal-test-build.yml index d2e28081..eb7d1736 100644 --- a/.github/workflows/internal-test-build.yml +++ b/.github/workflows/internal-test-build.yml @@ -9,7 +9,7 @@ jobs: build-package: name: Build self-contained executables runs-on: ubuntu-latest - container: mcr.microsoft.com/dotnet/sdk:6.0 + container: mcr.microsoft.com/dotnet/sdk:8.0 steps: - name: Check .NET version run: dotnet --version diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 824aeb03..aa3773bf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,7 +44,7 @@ jobs: build-package: name: Build self-contained executables runs-on: ubuntu-latest - container: mcr.microsoft.com/dotnet/sdk:6.0 + container: mcr.microsoft.com/dotnet/sdk:8.0 steps: - name: Check .NET version run: dotnet --version diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 65fca82f..780fc6a7 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -8,7 +8,7 @@ jobs: build-test: name: Build and test .NET projects runs-on: ubuntu-latest - container: mcr.microsoft.com/dotnet/sdk:6.0 + container: mcr.microsoft.com/dotnet/sdk:8.0 steps: - name: Check .NET version run: dotnet --version diff --git a/Core/Cosmos.DataTransfer.Core.UnitTests/Cosmos.DataTransfer.Core.UnitTests.csproj b/Core/Cosmos.DataTransfer.Core.UnitTests/Cosmos.DataTransfer.Core.UnitTests.csproj index 3fd5202d..ac33ad3a 100644 --- a/Core/Cosmos.DataTransfer.Core.UnitTests/Cosmos.DataTransfer.Core.UnitTests.csproj +++ b/Core/Cosmos.DataTransfer.Core.UnitTests/Cosmos.DataTransfer.Core.UnitTests.csproj @@ -1,21 +1,23 @@ - net6.0 + net8.0 enable false - - - - - + + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive + + diff --git a/Core/Cosmos.DataTransfer.Core/Cosmos.DataTransfer.Core.csproj b/Core/Cosmos.DataTransfer.Core/Cosmos.DataTransfer.Core.csproj index 4a0d7b75..2357e01b 100644 --- a/Core/Cosmos.DataTransfer.Core/Cosmos.DataTransfer.Core.csproj +++ b/Core/Cosmos.DataTransfer.Core/Cosmos.DataTransfer.Core.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable enable c7432a3a-5dc1-4e86-a1f0-b2363bf5c77f @@ -19,16 +19,17 @@ - - - - - - - - - - + + + + + + + + + + + diff --git a/CosmosDbDataMigrationTool.sln b/CosmosDbDataMigrationTool.sln index 66d32cc5..efeb8483 100644 --- a/CosmosDbDataMigrationTool.sln +++ b/CosmosDbDataMigrationTool.sln @@ -95,6 +95,7 @@ EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{BCBBAF22-0CB5-416B-8C80-03AB2FC4D0A0}" ProjectSection(SolutionItems) = preProject Contributing.md = Contributing.md + Directory.Packages.props = Directory.Packages.props ExampleConfigs.md = ExampleConfigs.md README.md = README.md EndProjectSection diff --git a/Directory.Packages.props b/Directory.Packages.props new file mode 100644 index 00000000..8c667b21 --- /dev/null +++ b/Directory.Packages.props @@ -0,0 +1,43 @@ + + + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Extensions/AwsS3/Cosmos.DataTransfer.AwsS3Storage/Cosmos.DataTransfer.AwsS3Storage.csproj b/Extensions/AwsS3/Cosmos.DataTransfer.AwsS3Storage/Cosmos.DataTransfer.AwsS3Storage.csproj index a2017fac..7c05a0bc 100644 --- a/Extensions/AwsS3/Cosmos.DataTransfer.AwsS3Storage/Cosmos.DataTransfer.AwsS3Storage.csproj +++ b/Extensions/AwsS3/Cosmos.DataTransfer.AwsS3Storage/Cosmos.DataTransfer.AwsS3Storage.csproj @@ -1,14 +1,14 @@ - net6.0 + net8.0 enable enable - - + + diff --git a/Extensions/AzureBlob/Cosmos.DataTransfer.AzureBlobStorage/Cosmos.DataTransfer.AzureBlobStorage.csproj b/Extensions/AzureBlob/Cosmos.DataTransfer.AzureBlobStorage/Cosmos.DataTransfer.AzureBlobStorage.csproj index e51831ce..8a4a4184 100644 --- a/Extensions/AzureBlob/Cosmos.DataTransfer.AzureBlobStorage/Cosmos.DataTransfer.AzureBlobStorage.csproj +++ b/Extensions/AzureBlob/Cosmos.DataTransfer.AzureBlobStorage/Cosmos.DataTransfer.AzureBlobStorage.csproj @@ -1,15 +1,16 @@ - net6.0 + net8.0 enable enable - - - + + + + diff --git a/Extensions/AzureTableAPI/Cosmos.DataTransfer.AzureTableAPIExtension.UnitTests/Cosmos.DataTransfer.AzureTableAPIExtension.UnitTests.csproj b/Extensions/AzureTableAPI/Cosmos.DataTransfer.AzureTableAPIExtension.UnitTests/Cosmos.DataTransfer.AzureTableAPIExtension.UnitTests.csproj index c93135ba..78b9b4bc 100644 --- a/Extensions/AzureTableAPI/Cosmos.DataTransfer.AzureTableAPIExtension.UnitTests/Cosmos.DataTransfer.AzureTableAPIExtension.UnitTests.csproj +++ b/Extensions/AzureTableAPI/Cosmos.DataTransfer.AzureTableAPIExtension.UnitTests/Cosmos.DataTransfer.AzureTableAPIExtension.UnitTests.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 enable enable @@ -9,11 +9,16 @@ - - - - - + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + diff --git a/Extensions/AzureTableAPI/Cosmos.DataTransfer.AzureTableAPIExtension/Cosmos.DataTransfer.AzureTableAPIExtension.csproj b/Extensions/AzureTableAPI/Cosmos.DataTransfer.AzureTableAPIExtension/Cosmos.DataTransfer.AzureTableAPIExtension.csproj index 3275b267..ea6c37b4 100644 --- a/Extensions/AzureTableAPI/Cosmos.DataTransfer.AzureTableAPIExtension/Cosmos.DataTransfer.AzureTableAPIExtension.csproj +++ b/Extensions/AzureTableAPI/Cosmos.DataTransfer.AzureTableAPIExtension/Cosmos.DataTransfer.AzureTableAPIExtension.csproj @@ -1,16 +1,17 @@  - net6.0 + net8.0 enable enable Exe - - - + + + + diff --git a/Extensions/AzureTableAPI/Cosmos.DataTransfer.AzureTableAPIExtension/Properties/PublishProfiles/PublishToExtensionsFolder.pubxml b/Extensions/AzureTableAPI/Cosmos.DataTransfer.AzureTableAPIExtension/Properties/PublishProfiles/PublishToExtensionsFolder.pubxml index 789090b6..981ca1d6 100644 --- a/Extensions/AzureTableAPI/Cosmos.DataTransfer.AzureTableAPIExtension/Properties/PublishProfiles/PublishToExtensionsFolder.pubxml +++ b/Extensions/AzureTableAPI/Cosmos.DataTransfer.AzureTableAPIExtension/Properties/PublishProfiles/PublishToExtensionsFolder.pubxml @@ -6,19 +6,19 @@ https://go.microsoft.com/fwlink/?LinkID=208121. Debug Any CPU - ..\..\..\Core\Cosmos.DataTransfer.Core\bin\Debug\net6.0\Extensions + ..\..\..\Core\Cosmos.DataTransfer.Core\bin\Debug\net8.0\Extensions FileSystem <_TargetId>Folder - net6.0 + net8.0 false Release Any CPU - ..\..\..\Core\Cosmos.DataTransfer.Core\bin\Release\net6.0\Extensions + ..\..\..\Core\Cosmos.DataTransfer.Core\bin\Release\net8.0\Extensions FileSystem <_TargetId>Folder - net6.0 + net8.0 false \ No newline at end of file diff --git a/Extensions/CognitiveSearch/Cosmos.DataTransfer.CognitiveSearchExtension.UnitTests/Cosmos.DataTransfer.CognitiveSearchExtension.UnitTests.csproj b/Extensions/CognitiveSearch/Cosmos.DataTransfer.CognitiveSearchExtension.UnitTests/Cosmos.DataTransfer.CognitiveSearchExtension.UnitTests.csproj index 50ee9760..f422bb29 100644 --- a/Extensions/CognitiveSearch/Cosmos.DataTransfer.CognitiveSearchExtension.UnitTests/Cosmos.DataTransfer.CognitiveSearchExtension.UnitTests.csproj +++ b/Extensions/CognitiveSearch/Cosmos.DataTransfer.CognitiveSearchExtension.UnitTests/Cosmos.DataTransfer.CognitiveSearchExtension.UnitTests.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 enable enable @@ -9,10 +9,15 @@ - - - - + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + diff --git a/Extensions/CognitiveSearch/Cosmos.DataTransfer.CognitiveSearchExtension/Cosmos.DataTransfer.CognitiveSearchExtension.csproj b/Extensions/CognitiveSearch/Cosmos.DataTransfer.CognitiveSearchExtension/Cosmos.DataTransfer.CognitiveSearchExtension.csproj index 22feaf84..abcfd8f1 100644 --- a/Extensions/CognitiveSearch/Cosmos.DataTransfer.CognitiveSearchExtension/Cosmos.DataTransfer.CognitiveSearchExtension.csproj +++ b/Extensions/CognitiveSearch/Cosmos.DataTransfer.CognitiveSearchExtension/Cosmos.DataTransfer.CognitiveSearchExtension.csproj @@ -1,18 +1,19 @@ - net6.0 + net8.0 enable enable Exe - - - - - + + + + + + diff --git a/Extensions/CognitiveSearch/Cosmos.DataTransfer.CognitiveSearchExtension/Properties/PublishProfiles/PublishToExtensionsFolder.pubxml b/Extensions/CognitiveSearch/Cosmos.DataTransfer.CognitiveSearchExtension/Properties/PublishProfiles/PublishToExtensionsFolder.pubxml index 789090b6..981ca1d6 100644 --- a/Extensions/CognitiveSearch/Cosmos.DataTransfer.CognitiveSearchExtension/Properties/PublishProfiles/PublishToExtensionsFolder.pubxml +++ b/Extensions/CognitiveSearch/Cosmos.DataTransfer.CognitiveSearchExtension/Properties/PublishProfiles/PublishToExtensionsFolder.pubxml @@ -6,19 +6,19 @@ https://go.microsoft.com/fwlink/?LinkID=208121. Debug Any CPU - ..\..\..\Core\Cosmos.DataTransfer.Core\bin\Debug\net6.0\Extensions + ..\..\..\Core\Cosmos.DataTransfer.Core\bin\Debug\net8.0\Extensions FileSystem <_TargetId>Folder - net6.0 + net8.0 false Release Any CPU - ..\..\..\Core\Cosmos.DataTransfer.Core\bin\Release\net6.0\Extensions + ..\..\..\Core\Cosmos.DataTransfer.Core\bin\Release\net8.0\Extensions FileSystem <_TargetId>Folder - net6.0 + net8.0 false \ No newline at end of file diff --git a/Extensions/Cosmos/Cosmos.DataTransfer.CosmosExtension.UnitTests/Cosmos.DataTransfer.CosmosExtension.UnitTests.csproj b/Extensions/Cosmos/Cosmos.DataTransfer.CosmosExtension.UnitTests/Cosmos.DataTransfer.CosmosExtension.UnitTests.csproj index 81019825..0d20df50 100644 --- a/Extensions/Cosmos/Cosmos.DataTransfer.CosmosExtension.UnitTests/Cosmos.DataTransfer.CosmosExtension.UnitTests.csproj +++ b/Extensions/Cosmos/Cosmos.DataTransfer.CosmosExtension.UnitTests/Cosmos.DataTransfer.CosmosExtension.UnitTests.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 enable enable @@ -9,12 +9,17 @@ - - - - - - + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + diff --git a/Extensions/Cosmos/Cosmos.DataTransfer.CosmosExtension/Cosmos.DataTransfer.CosmosExtension.csproj b/Extensions/Cosmos/Cosmos.DataTransfer.CosmosExtension/Cosmos.DataTransfer.CosmosExtension.csproj index 0f12a50b..6f4dfcac 100644 --- a/Extensions/Cosmos/Cosmos.DataTransfer.CosmosExtension/Cosmos.DataTransfer.CosmosExtension.csproj +++ b/Extensions/Cosmos/Cosmos.DataTransfer.CosmosExtension/Cosmos.DataTransfer.CosmosExtension.csproj @@ -1,24 +1,26 @@  - net6.0 + net8.0 enable enable Exe - - - - - - - - - - - + + + + + + + + + + + + + diff --git a/Extensions/Cosmos/Cosmos.DataTransfer.CosmosExtension/Properties/PublishProfiles/PublishToExtensionsFolder.pubxml b/Extensions/Cosmos/Cosmos.DataTransfer.CosmosExtension/Properties/PublishProfiles/PublishToExtensionsFolder.pubxml index 789090b6..981ca1d6 100644 --- a/Extensions/Cosmos/Cosmos.DataTransfer.CosmosExtension/Properties/PublishProfiles/PublishToExtensionsFolder.pubxml +++ b/Extensions/Cosmos/Cosmos.DataTransfer.CosmosExtension/Properties/PublishProfiles/PublishToExtensionsFolder.pubxml @@ -6,19 +6,19 @@ https://go.microsoft.com/fwlink/?LinkID=208121. Debug Any CPU - ..\..\..\Core\Cosmos.DataTransfer.Core\bin\Debug\net6.0\Extensions + ..\..\..\Core\Cosmos.DataTransfer.Core\bin\Debug\net8.0\Extensions FileSystem <_TargetId>Folder - net6.0 + net8.0 false Release Any CPU - ..\..\..\Core\Cosmos.DataTransfer.Core\bin\Release\net6.0\Extensions + ..\..\..\Core\Cosmos.DataTransfer.Core\bin\Release\net8.0\Extensions FileSystem <_TargetId>Folder - net6.0 + net8.0 false \ No newline at end of file diff --git a/Extensions/Csv/Cosmos.DataTransfer.CsvExtension.UnitTests/Cosmos.DataTransfer.CsvExtension.UnitTests.csproj b/Extensions/Csv/Cosmos.DataTransfer.CsvExtension.UnitTests/Cosmos.DataTransfer.CsvExtension.UnitTests.csproj index 49162837..179b89c7 100644 --- a/Extensions/Csv/Cosmos.DataTransfer.CsvExtension.UnitTests/Cosmos.DataTransfer.CsvExtension.UnitTests.csproj +++ b/Extensions/Csv/Cosmos.DataTransfer.CsvExtension.UnitTests/Cosmos.DataTransfer.CsvExtension.UnitTests.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 enable enable @@ -9,10 +9,15 @@ - - - - + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + diff --git a/Extensions/Csv/Cosmos.DataTransfer.CsvExtension/Cosmos.DataTransfer.CsvExtension.csproj b/Extensions/Csv/Cosmos.DataTransfer.CsvExtension/Cosmos.DataTransfer.CsvExtension.csproj index ef2a048f..3c5168ba 100644 --- a/Extensions/Csv/Cosmos.DataTransfer.CsvExtension/Cosmos.DataTransfer.CsvExtension.csproj +++ b/Extensions/Csv/Cosmos.DataTransfer.CsvExtension/Cosmos.DataTransfer.CsvExtension.csproj @@ -1,15 +1,16 @@ - net6.0 + net8.0 enable enable - - - + + + + diff --git a/Extensions/Csv/Cosmos.DataTransfer.CsvExtension/Properties/PublishProfiles/PublishToExtensionsFolder.pubxml b/Extensions/Csv/Cosmos.DataTransfer.CsvExtension/Properties/PublishProfiles/PublishToExtensionsFolder.pubxml index 789090b6..981ca1d6 100644 --- a/Extensions/Csv/Cosmos.DataTransfer.CsvExtension/Properties/PublishProfiles/PublishToExtensionsFolder.pubxml +++ b/Extensions/Csv/Cosmos.DataTransfer.CsvExtension/Properties/PublishProfiles/PublishToExtensionsFolder.pubxml @@ -6,19 +6,19 @@ https://go.microsoft.com/fwlink/?LinkID=208121. Debug Any CPU - ..\..\..\Core\Cosmos.DataTransfer.Core\bin\Debug\net6.0\Extensions + ..\..\..\Core\Cosmos.DataTransfer.Core\bin\Debug\net8.0\Extensions FileSystem <_TargetId>Folder - net6.0 + net8.0 false Release Any CPU - ..\..\..\Core\Cosmos.DataTransfer.Core\bin\Release\net6.0\Extensions + ..\..\..\Core\Cosmos.DataTransfer.Core\bin\Release\net8.0\Extensions FileSystem <_TargetId>Folder - net6.0 + net8.0 false \ No newline at end of file diff --git a/Extensions/Json/Cosmos.DataTransfer.JsonExtension.UnitTests/Cosmos.DataTransfer.JsonExtension.UnitTests.csproj b/Extensions/Json/Cosmos.DataTransfer.JsonExtension.UnitTests/Cosmos.DataTransfer.JsonExtension.UnitTests.csproj index 81d590f5..8dc108b9 100644 --- a/Extensions/Json/Cosmos.DataTransfer.JsonExtension.UnitTests/Cosmos.DataTransfer.JsonExtension.UnitTests.csproj +++ b/Extensions/Json/Cosmos.DataTransfer.JsonExtension.UnitTests/Cosmos.DataTransfer.JsonExtension.UnitTests.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 enable enable @@ -9,12 +9,17 @@ - - - - - - + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + diff --git a/Extensions/Json/Cosmos.DataTransfer.JsonExtension/Cosmos.DataTransfer.JsonExtension.csproj b/Extensions/Json/Cosmos.DataTransfer.JsonExtension/Cosmos.DataTransfer.JsonExtension.csproj index e58f4b15..cc8e3eeb 100644 --- a/Extensions/Json/Cosmos.DataTransfer.JsonExtension/Cosmos.DataTransfer.JsonExtension.csproj +++ b/Extensions/Json/Cosmos.DataTransfer.JsonExtension/Cosmos.DataTransfer.JsonExtension.csproj @@ -1,16 +1,17 @@  - net6.0 + net8.0 enable enable Exe - - - + + + + diff --git a/Extensions/Json/Cosmos.DataTransfer.JsonExtension/Properties/PublishProfiles/PublishToExtensionsFolder.pubxml b/Extensions/Json/Cosmos.DataTransfer.JsonExtension/Properties/PublishProfiles/PublishToExtensionsFolder.pubxml index 789090b6..981ca1d6 100644 --- a/Extensions/Json/Cosmos.DataTransfer.JsonExtension/Properties/PublishProfiles/PublishToExtensionsFolder.pubxml +++ b/Extensions/Json/Cosmos.DataTransfer.JsonExtension/Properties/PublishProfiles/PublishToExtensionsFolder.pubxml @@ -6,19 +6,19 @@ https://go.microsoft.com/fwlink/?LinkID=208121. Debug Any CPU - ..\..\..\Core\Cosmos.DataTransfer.Core\bin\Debug\net6.0\Extensions + ..\..\..\Core\Cosmos.DataTransfer.Core\bin\Debug\net8.0\Extensions FileSystem <_TargetId>Folder - net6.0 + net8.0 false Release Any CPU - ..\..\..\Core\Cosmos.DataTransfer.Core\bin\Release\net6.0\Extensions + ..\..\..\Core\Cosmos.DataTransfer.Core\bin\Release\net8.0\Extensions FileSystem <_TargetId>Folder - net6.0 + net8.0 false \ No newline at end of file diff --git a/Extensions/Mongo/Cosmos.DataTransfer.MongoExtension/Cosmos.DataTransfer.MongoExtension.csproj b/Extensions/Mongo/Cosmos.DataTransfer.MongoExtension/Cosmos.DataTransfer.MongoExtension.csproj index cc3eedd6..d8bf8337 100644 --- a/Extensions/Mongo/Cosmos.DataTransfer.MongoExtension/Cosmos.DataTransfer.MongoExtension.csproj +++ b/Extensions/Mongo/Cosmos.DataTransfer.MongoExtension/Cosmos.DataTransfer.MongoExtension.csproj @@ -1,16 +1,16 @@  - net6.0 + net8.0 enable enable Exe - - - + + + diff --git a/Extensions/Mongo/Cosmos.DataTransfer.MongoExtension/Properties/PublishProfiles/PublishToExtensionsFolder.pubxml b/Extensions/Mongo/Cosmos.DataTransfer.MongoExtension/Properties/PublishProfiles/PublishToExtensionsFolder.pubxml index 789090b6..981ca1d6 100644 --- a/Extensions/Mongo/Cosmos.DataTransfer.MongoExtension/Properties/PublishProfiles/PublishToExtensionsFolder.pubxml +++ b/Extensions/Mongo/Cosmos.DataTransfer.MongoExtension/Properties/PublishProfiles/PublishToExtensionsFolder.pubxml @@ -6,19 +6,19 @@ https://go.microsoft.com/fwlink/?LinkID=208121. Debug Any CPU - ..\..\..\Core\Cosmos.DataTransfer.Core\bin\Debug\net6.0\Extensions + ..\..\..\Core\Cosmos.DataTransfer.Core\bin\Debug\net8.0\Extensions FileSystem <_TargetId>Folder - net6.0 + net8.0 false Release Any CPU - ..\..\..\Core\Cosmos.DataTransfer.Core\bin\Release\net6.0\Extensions + ..\..\..\Core\Cosmos.DataTransfer.Core\bin\Release\net8.0\Extensions FileSystem <_TargetId>Folder - net6.0 + net8.0 false \ No newline at end of file diff --git a/Extensions/Mongo/Cosmos.DataTransfer.MongoVectorExtension/Cosmos.DataTransfer.MongoVectorExtension.csproj b/Extensions/Mongo/Cosmos.DataTransfer.MongoVectorExtension/Cosmos.DataTransfer.MongoVectorExtension.csproj index ecad8af9..943445e0 100644 --- a/Extensions/Mongo/Cosmos.DataTransfer.MongoVectorExtension/Cosmos.DataTransfer.MongoVectorExtension.csproj +++ b/Extensions/Mongo/Cosmos.DataTransfer.MongoVectorExtension/Cosmos.DataTransfer.MongoVectorExtension.csproj @@ -1,17 +1,18 @@  - net6.0 + net8.0 enable enable Exe - - - - + + + + + diff --git a/Extensions/Mongo/Cosmos.DataTransfer.MongoVectorExtension/Properties/PublishProfiles/PublishToExtensionsFolder.pubxml b/Extensions/Mongo/Cosmos.DataTransfer.MongoVectorExtension/Properties/PublishProfiles/PublishToExtensionsFolder.pubxml index 789090b6..981ca1d6 100644 --- a/Extensions/Mongo/Cosmos.DataTransfer.MongoVectorExtension/Properties/PublishProfiles/PublishToExtensionsFolder.pubxml +++ b/Extensions/Mongo/Cosmos.DataTransfer.MongoVectorExtension/Properties/PublishProfiles/PublishToExtensionsFolder.pubxml @@ -6,19 +6,19 @@ https://go.microsoft.com/fwlink/?LinkID=208121. Debug Any CPU - ..\..\..\Core\Cosmos.DataTransfer.Core\bin\Debug\net6.0\Extensions + ..\..\..\Core\Cosmos.DataTransfer.Core\bin\Debug\net8.0\Extensions FileSystem <_TargetId>Folder - net6.0 + net8.0 false Release Any CPU - ..\..\..\Core\Cosmos.DataTransfer.Core\bin\Release\net6.0\Extensions + ..\..\..\Core\Cosmos.DataTransfer.Core\bin\Release\net8.0\Extensions FileSystem <_TargetId>Folder - net6.0 + net8.0 false \ No newline at end of file diff --git a/Extensions/Parquet/Cosmos.DataTransfer.ParquetExtension/Cosmos.DataTransfer.ParquetExtension.csproj b/Extensions/Parquet/Cosmos.DataTransfer.ParquetExtension/Cosmos.DataTransfer.ParquetExtension.csproj index 9223bf11..ffed3a21 100644 --- a/Extensions/Parquet/Cosmos.DataTransfer.ParquetExtension/Cosmos.DataTransfer.ParquetExtension.csproj +++ b/Extensions/Parquet/Cosmos.DataTransfer.ParquetExtension/Cosmos.DataTransfer.ParquetExtension.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable enable @@ -10,9 +10,10 @@ - - - + + + + diff --git a/Extensions/Parquet/Cosmos.DataTransfer.ParquetExtension/ParquetFormatReader.cs b/Extensions/Parquet/Cosmos.DataTransfer.ParquetExtension/ParquetFormatReader.cs index f7879400..f25b4376 100644 --- a/Extensions/Parquet/Cosmos.DataTransfer.ParquetExtension/ParquetFormatReader.cs +++ b/Extensions/Parquet/Cosmos.DataTransfer.ParquetExtension/ParquetFormatReader.cs @@ -25,7 +25,7 @@ public async IAsyncEnumerable ParseDataAsync(IComposableDataSource so { var seekableStream = source; using var tempStream = new MemoryStream(); - if (source.CanSeek == false || !source.TryGetSize(out _)) + if (source.CanSeek == false || !source.HasSize()) { logger.LogInformation("Source stream is not seekable or size is not known. Copying to temporary stream."); await seekableStream.CopyToAsync(tempStream, cancellationToken); diff --git a/Extensions/Parquet/Cosmos.DataTransfer.ParquetExtension/Properties/PublishProfiles/FolderProfile.pubxml b/Extensions/Parquet/Cosmos.DataTransfer.ParquetExtension/Properties/PublishProfiles/FolderProfile.pubxml index f3be63aa..52f069b6 100644 --- a/Extensions/Parquet/Cosmos.DataTransfer.ParquetExtension/Properties/PublishProfiles/FolderProfile.pubxml +++ b/Extensions/Parquet/Cosmos.DataTransfer.ParquetExtension/Properties/PublishProfiles/FolderProfile.pubxml @@ -6,7 +6,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121. Release Any CPU - ..\..\..\Core\Cosmos.DataTransfer.Core\bin\Debug\net6.0\Extensions + ..\..\..\Core\Cosmos.DataTransfer.Core\bin\Debug\net8.0\Extensions FileSystem <_TargetId>Folder diff --git a/Extensions/Parquet/Cosmos.DataTransfer.ParquetExtension/StreamExtensions.cs b/Extensions/Parquet/Cosmos.DataTransfer.ParquetExtension/StreamExtensions.cs new file mode 100644 index 00000000..c3c390a7 --- /dev/null +++ b/Extensions/Parquet/Cosmos.DataTransfer.ParquetExtension/StreamExtensions.cs @@ -0,0 +1,21 @@ +namespace Cosmos.DataTransfer.ParquetExtension; + +public static class StreamExtensions +{ + public static bool HasSize(this Stream s) + { + try + { + var size = s.Length; + return true; + } + catch (NotSupportedException) + { + } + catch (ObjectDisposedException) + { + } + + return false; + } +} \ No newline at end of file diff --git a/Extensions/PostgreSQL/Cosmos.DataTransfer.PostgresqlExtension.csproj b/Extensions/PostgreSQL/Cosmos.DataTransfer.PostgresqlExtension.csproj index a55f6960..7c4fcb75 100644 --- a/Extensions/PostgreSQL/Cosmos.DataTransfer.PostgresqlExtension.csproj +++ b/Extensions/PostgreSQL/Cosmos.DataTransfer.PostgresqlExtension.csproj @@ -2,15 +2,16 @@ Exe - net6.0 + net8.0 enable enable - - - + + + + diff --git a/Extensions/PostgreSQL/Properties/PublishProfiles/FolderProfile.pubxml b/Extensions/PostgreSQL/Properties/PublishProfiles/FolderProfile.pubxml index d6854c40..68837ee1 100644 --- a/Extensions/PostgreSQL/Properties/PublishProfiles/FolderProfile.pubxml +++ b/Extensions/PostgreSQL/Properties/PublishProfiles/FolderProfile.pubxml @@ -6,10 +6,10 @@ https://go.microsoft.com/fwlink/?LinkID=208121. Release Any CPU - ..\..\Core\Cosmos.DataTransfer.Core\bin\Debug\net6.0\Extensions + ..\..\Core\Cosmos.DataTransfer.Core\bin\Debug\net8.0\Extensions FileSystem <_TargetId>Folder - net6.0 + net8.0 false \ No newline at end of file diff --git a/Extensions/SqlServer/Cosmos.DataTransfer.SqlServerExtension.UnitTests/Cosmos.DataTransfer.SqlServerExtension.UnitTests.csproj b/Extensions/SqlServer/Cosmos.DataTransfer.SqlServerExtension.UnitTests/Cosmos.DataTransfer.SqlServerExtension.UnitTests.csproj index 9b869f5b..23dda849 100644 --- a/Extensions/SqlServer/Cosmos.DataTransfer.SqlServerExtension.UnitTests/Cosmos.DataTransfer.SqlServerExtension.UnitTests.csproj +++ b/Extensions/SqlServer/Cosmos.DataTransfer.SqlServerExtension.UnitTests/Cosmos.DataTransfer.SqlServerExtension.UnitTests.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 enable enable @@ -9,12 +9,17 @@ - - - - - - + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + diff --git a/Extensions/SqlServer/Cosmos.DataTransfer.SqlServerExtension/Cosmos.DataTransfer.SqlServerExtension.csproj b/Extensions/SqlServer/Cosmos.DataTransfer.SqlServerExtension/Cosmos.DataTransfer.SqlServerExtension.csproj index aca719c9..6eb35906 100644 --- a/Extensions/SqlServer/Cosmos.DataTransfer.SqlServerExtension/Cosmos.DataTransfer.SqlServerExtension.csproj +++ b/Extensions/SqlServer/Cosmos.DataTransfer.SqlServerExtension/Cosmos.DataTransfer.SqlServerExtension.csproj @@ -1,20 +1,21 @@  - net6.0 + net8.0 enable enable Exe - - - - - - - + + + + + + + + diff --git a/Extensions/SqlServer/Cosmos.DataTransfer.SqlServerExtension/Properties/PublishProfiles/PublishToExtensionsFolder.pubxml b/Extensions/SqlServer/Cosmos.DataTransfer.SqlServerExtension/Properties/PublishProfiles/PublishToExtensionsFolder.pubxml index 789090b6..981ca1d6 100644 --- a/Extensions/SqlServer/Cosmos.DataTransfer.SqlServerExtension/Properties/PublishProfiles/PublishToExtensionsFolder.pubxml +++ b/Extensions/SqlServer/Cosmos.DataTransfer.SqlServerExtension/Properties/PublishProfiles/PublishToExtensionsFolder.pubxml @@ -6,19 +6,19 @@ https://go.microsoft.com/fwlink/?LinkID=208121. Debug Any CPU - ..\..\..\Core\Cosmos.DataTransfer.Core\bin\Debug\net6.0\Extensions + ..\..\..\Core\Cosmos.DataTransfer.Core\bin\Debug\net8.0\Extensions FileSystem <_TargetId>Folder - net6.0 + net8.0 false Release Any CPU - ..\..\..\Core\Cosmos.DataTransfer.Core\bin\Release\net6.0\Extensions + ..\..\..\Core\Cosmos.DataTransfer.Core\bin\Release\net8.0\Extensions FileSystem <_TargetId>Folder - net6.0 + net8.0 false \ No newline at end of file diff --git a/Interfaces/Cosmos.DataTransfer.Common/Cosmos.DataTransfer.Common.csproj b/Interfaces/Cosmos.DataTransfer.Common/Cosmos.DataTransfer.Common.csproj index b7231624..41bde3ff 100644 --- a/Interfaces/Cosmos.DataTransfer.Common/Cosmos.DataTransfer.Common.csproj +++ b/Interfaces/Cosmos.DataTransfer.Common/Cosmos.DataTransfer.Common.csproj @@ -1,13 +1,13 @@ - net6.0 + net8.0 enable enable - + diff --git a/Interfaces/Cosmos.DataTransfer.Interfaces/Cosmos.DataTransfer.Interfaces.csproj b/Interfaces/Cosmos.DataTransfer.Interfaces/Cosmos.DataTransfer.Interfaces.csproj index d9882875..28910ec7 100644 --- a/Interfaces/Cosmos.DataTransfer.Interfaces/Cosmos.DataTransfer.Interfaces.csproj +++ b/Interfaces/Cosmos.DataTransfer.Interfaces/Cosmos.DataTransfer.Interfaces.csproj @@ -1,15 +1,15 @@ - net6.0 + net8.0 enable enable datatransfer-interfaces - - + + diff --git a/README.md b/README.md index 42deea28..fa19e200 100644 --- a/README.md +++ b/README.md @@ -221,8 +221,8 @@ This tutorial outlines how to use the Azure Cosmos DB Desktop Data Migration Too 3. Add the new projects to the `CosmosDbDataMigrationTool` solution. -4. In order to facilitate local debugging the extension build output along with any dependencies needs to be copied into the `Core\Cosmos.DataTransfer.Core\bin\Debug\net6.0\Extensions` folder. To set up the project to automatically copy add the following changes. - - Add a Publish Profile to Folder named `LocalDebugFolder` with a Target Location of `..\..\..\Core\Cosmos.DataTransfer.Core\bin\Debug\net6.0\Extensions` +4. In order to facilitate local debugging the extension build output along with any dependencies needs to be copied into the `Core\Cosmos.DataTransfer.Core\bin\Debug\net8.0\Extensions` folder. To set up the project to automatically copy add the following changes. + - Add a Publish Profile to Folder named `LocalDebugFolder` with a Target Location of `..\..\..\Core\Cosmos.DataTransfer.Core\bin\Debug\net8.0\Extensions` - To publish every time the project builds, edit the .csproj file to add a new post-build step: ```xml