diff --git a/.github/workflows/Installer.yml b/.github/workflows/Installer.yml index cf2e66b49..2562a4b1f 100644 --- a/.github/workflows/Installer.yml +++ b/.github/workflows/Installer.yml @@ -11,7 +11,7 @@ jobs: strategy: fail-fast: true matrix: - os: [windows-2019] + os: [windows-latest] runs-on: ${{ matrix.os }} steps: @@ -21,18 +21,16 @@ jobs: submodules: recursive fetch-depth: 0 - # Install the .NET Core workload - - name: Install .NET Core - uses: actions/setup-dotnet@v1 + - name: Install .NET + uses: actions/setup-dotnet@v4 with: - dotnet-version: 5.0.x + dotnet-version: 8.0.x # Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild - name: Setup MSBuild.exe (Windows OS) uses: microsoft/setup-msbuild@v1.0.2 env: ACTIONS_ALLOW_UNSECURE_COMMANDS: true # So the PATH can be set by this step - if: ${{ matrix.os == 'windows-2019' }} # Run the unit tests - name: Restore @@ -42,10 +40,10 @@ jobs: env: ACTIONS_ALLOW_UNSECURE_COMMANDS: true # So gitversion can set environment vars during the build run: msbuild src/WeSay.sln /p:Configuration=Release - + - name: Build Installer run: msbuild build/Installer.targets /p:Configuration=Release /p:Platform=x86 /t:BuildRelease - + - name: Publish Installer uses: actions/upload-artifact@v2 with: diff --git a/.github/workflows/PR.yml b/.github/workflows/PR.yml index 1d9d7df2d..24d4144e6 100644 --- a/.github/workflows/PR.yml +++ b/.github/workflows/PR.yml @@ -11,50 +11,26 @@ jobs: strategy: fail-fast: false matrix: - os: [windows-2019] + os: [windows-latest] runs-on: ${{ matrix.os }} steps: - name: Checkout - uses: actions/checkout@v2.3.4 + uses: actions/checkout@v4 with: fetch-depth: 0 - # Install the .NET Core workload - - name: Install .NET Core - uses: actions/setup-dotnet@v1 + - name: Install .NET + uses: actions/setup-dotnet@v4 with: - dotnet-version: 5.0.x + dotnet-version: 8.0.x - # Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild - - name: Setup MSBuild.exe (Windows OS) - uses: microsoft/setup-msbuild@v1.0.2 - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: true # So the PATH can be set by this step - if: ${{ matrix.os == 'windows-2019' }} - - # Run the unit tests - name: Restore - run: nuget restore src/WeSay.sln + run: dotnet restore - name: Build - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: true # So gitversion can set environment vars during the build - run: msbuild src/WeSay.sln + run: dotnet build - - name: Prepare to Test - run: msbuild build/WeSay.proj /t:RestoreBuildTasks - - name: Test - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: true # So testing files and folders can be created - run: msbuild build/WeSay.proj /t:TestOnly /p:Configuration=Debug /p:Platform="x86" /p:CI=true /v:diag - - - name: Test Report - uses: jasonleenaylor/nunit-reporter@63ab85dd5da111c3f4ef95f2fb73bbe667f58db9 - if: always() - with: - path: output/**/TestResults.xml - access-token: ${{ secrets.GITHUB_TOKEN }} - reportTitle: "Test Results (${{ matrix.os }})" - numFailures: \ No newline at end of file + # space after -- before RunConfig is required + run: dotnet test --filter "TestCategory != SkipOnCI" --no-build -maxcpucount:1 --logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true" -- RunConfiguration.CollectSourceInformation=true \ No newline at end of file diff --git a/Directory.Build.props b/Directory.Build.props index a4fc4a16c..c34ce92bd 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,5 +1,6 @@ $(MSBuildThisFileDirectory) + false \ No newline at end of file diff --git a/src/WeSay.sln b/WeSay.sln similarity index 77% rename from src/WeSay.sln rename to WeSay.sln index c6b28458d..09d674d6d 100644 --- a/src/WeSay.sln +++ b/WeSay.sln @@ -1,67 +1,68 @@ - -Microsoft Visual Studio Solution File, Format Version 11.00 -# Visual Studio 2010 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WeSay.ConfigTool", "WeSay.ConfigTool\WeSay.ConfigTool.csproj", "{54C943DB-7725-4F52-BCE4-86C3D3D5A66E}" +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.8.34511.84 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WeSay.ConfigTool", "src\WeSay.ConfigTool\WeSay.ConfigTool.csproj", "{54C943DB-7725-4F52-BCE4-86C3D3D5A66E}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WeSay.Foundation", "WeSay.Foundation\WeSay.Foundation.csproj", "{F12EB680-0990-4900-B77E-0FBF2E28A815}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WeSay.Foundation", "src\WeSay.Foundation\WeSay.Foundation.csproj", "{F12EB680-0990-4900-B77E-0FBF2E28A815}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Addin.Backup", "Addin.Backup\Addin.Backup.csproj", "{42FB4CC3-F2D1-4509-87DD-6BBD430CD4AB}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Addin.Backup", "src\Addin.Backup\Addin.Backup.csproj", "{42FB4CC3-F2D1-4509-87DD-6BBD430CD4AB}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WeSay.Project", "WeSay.Project\WeSay.Project.csproj", "{5CFD0BB3-5B2A-4911-B220-9C2286151BF0}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WeSay.Project", "src\WeSay.Project\WeSay.Project.csproj", "{5CFD0BB3-5B2A-4911-B220-9C2286151BF0}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WeSay.UI.Tests", "WeSay.UI.Tests\WeSay.UI.Tests.csproj", "{6AED6785-CC6F-4A6A-BDB1-1895C6DA1090}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WeSay.UI.Tests", "src\WeSay.UI.Tests\WeSay.UI.Tests.csproj", "{6AED6785-CC6F-4A6A-BDB1-1895C6DA1090}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LexicalTools", "LexicalTools\LexicalTools.csproj", "{87AF0B02-2983-486D-857F-D1859535C234}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LexicalTools", "src\LexicalTools\LexicalTools.csproj", "{87AF0B02-2983-486D-857F-D1859535C234}" ProjectSection(ProjectDependencies) = postProject {600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD} = {600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD} EndProjectSection EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WeSay.AddinLib", "WeSay.AddinLib\WeSay.AddinLib.csproj", "{E651E83C-94DD-4D6D-ABA2-C9FDA34FBA55}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WeSay.AddinLib", "src\WeSay.AddinLib\WeSay.AddinLib.csproj", "{E651E83C-94DD-4D6D-ABA2-C9FDA34FBA55}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WeSay.UI", "WeSay.UI\WeSay.UI.csproj", "{AC8F284C-7B34-4AC9-A7DE-FAF765456DFF}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WeSay.UI", "src\WeSay.UI\WeSay.UI.csproj", "{AC8F284C-7B34-4AC9-A7DE-FAF765456DFF}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WeSay.Data", "WeSay.Data\WeSay.Data.csproj", "{600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WeSay.Data", "src\WeSay.Data\WeSay.Data.csproj", "{600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WeSay.App", "WeSay.App\WeSay.App.csproj", "{EFB9D66D-AF0F-4E45-A1AC-DB32981711D2}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WeSay.App", "src\WeSay.App\WeSay.App.csproj", "{EFB9D66D-AF0F-4E45-A1AC-DB32981711D2}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Addin.Transform.Tests", "Addin.Transform.Tests\Addin.Transform.Tests.csproj", "{19310CA3-6653-45E0-9EC8-F824629E2AD8}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Addin.Transform.Tests", "src\Addin.Transform.Tests\Addin.Transform.Tests.csproj", "{19310CA3-6653-45E0-9EC8-F824629E2AD8}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LexicalModel", "LexicalModel\LexicalModel.csproj", "{5F61C809-B6C0-4567-9603-B2198E1AD038}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LexicalModel", "src\LexicalModel\LexicalModel.csproj", "{5F61C809-B6C0-4567-9603-B2198E1AD038}" ProjectSection(ProjectDependencies) = postProject {600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD} = {600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD} EndProjectSection EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WeSay.AddinLib.Tests", "WeSay.AddinLib.Tests\WeSay.AddinLib.Tests.csproj", "{74DF4C01-660C-4CF4-9343-9330337BCBEA}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WeSay.AddinLib.Tests", "src\WeSay.AddinLib.Tests\WeSay.AddinLib.Tests.csproj", "{74DF4C01-660C-4CF4-9343-9330337BCBEA}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LexicalModel.Tests", "LexicalModel.Tests\LexicalModel.Tests.csproj", "{123D695C-0D5D-46E5-893F-39EC4E0B01B8}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LexicalModel.Tests", "src\LexicalModel.Tests\LexicalModel.Tests.csproj", "{123D695C-0D5D-46E5-893F-39EC4E0B01B8}" ProjectSection(ProjectDependencies) = postProject {600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD} = {600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD} EndProjectSection EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Addin.Backup.Tests", "Addin.Backup.Tests\Addin.Backup.Tests.csproj", "{EF37C48F-EABC-478B-B7C1-2BDB33968A21}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Addin.Backup.Tests", "src\Addin.Backup.Tests\Addin.Backup.Tests.csproj", "{EF37C48F-EABC-478B-B7C1-2BDB33968A21}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Addin.Transform", "Addin.Transform\Addin.Transform.csproj", "{9D196637-2D50-4604-A310-378083CEA809}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Addin.Transform", "src\Addin.Transform\Addin.Transform.csproj", "{9D196637-2D50-4604-A310-378083CEA809}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WeSay.ConfigTool.Tests", "WeSay.ConfigTool.Tests\WeSay.ConfigTool.Tests.csproj", "{FB7CFBB8-D7D0-4E9D-96CF-7D3D0D947EB5}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WeSay.ConfigTool.Tests", "src\WeSay.ConfigTool.Tests\WeSay.ConfigTool.Tests.csproj", "{FB7CFBB8-D7D0-4E9D-96CF-7D3D0D947EB5}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WeSay.Project.Tests", "WeSay.Project.Tests\WeSay.Project.Tests.csproj", "{F644C902-A952-4797-9E2D-19D6051DD032}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WeSay.Project.Tests", "src\WeSay.Project.Tests\WeSay.Project.Tests.csproj", "{F644C902-A952-4797-9E2D-19D6051DD032}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WeSay.Data.Tests", "WeSay.Data.Tests\WeSay.Data.Tests.csproj", "{8491FEEE-C311-4B64-BB30-A1F1C1802F45}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WeSay.Data.Tests", "src\WeSay.Data.Tests\WeSay.Data.Tests.csproj", "{8491FEEE-C311-4B64-BB30-A1F1C1802F45}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SampleDataProcessor", "Lift2WeSay\SampleDataProcessor.csproj", "{4408C857-0371-42BF-A635-E23C8A99A803}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SampleDataProcessor", "src\Lift2WeSay\SampleDataProcessor.csproj", "{4408C857-0371-42BF-A635-E23C8A99A803}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WeSay.App.Tests", "WeSay.App.Tests\WeSay.App.Tests.csproj", "{7DA57D98-255B-46DE-BF94-D163695A0568}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WeSay.App.Tests", "src\WeSay.App.Tests\WeSay.App.Tests.csproj", "{7DA57D98-255B-46DE-BF94-D163695A0568}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LexicalTools.Tests", "LexicalTools.Tests\LexicalTools.Tests.csproj", "{9936180C-90A7-467C-B761-EC184EFE1F9F}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LexicalTools.Tests", "src\LexicalTools.Tests\LexicalTools.Tests.csproj", "{9936180C-90A7-467C-B761-EC184EFE1F9F}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WeSay.TestUtilities", "WeSay.TestUtilities\WeSay.TestUtilities.csproj", "{FEC3014D-0067-4D59-A838-3B046EC3C352}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WeSay.TestUtilities", "src\WeSay.TestUtilities\WeSay.TestUtilities.csproj", "{FEC3014D-0067-4D59-A838-3B046EC3C352}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{DEFF1312-21E7-47EA-8EBF-0B3705FDD564}" ProjectSection(SolutionItems) = preProject - .nuget\packages.config = .nuget\packages.config + src\.nuget\packages.config = src\.nuget\packages.config EndProjectSection EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LiftWordList2Json", "LiftWordList2Json\LiftWordList2Json.csproj", "{4498EAF7-1736-40C3-AD20-6B2CD8D935DB}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LiftWordList2Json", "src\LiftWordList2Json\LiftWordList2Json.csproj", "{4498EAF7-1736-40C3-AD20-6B2CD8D935DB}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -73,265 +74,266 @@ Global Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution + {54C943DB-7725-4F52-BCE4-86C3D3D5A66E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {54C943DB-7725-4F52-BCE4-86C3D3D5A66E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {54C943DB-7725-4F52-BCE4-86C3D3D5A66E}.Debug|x86.ActiveCfg = Debug|Any CPU + {54C943DB-7725-4F52-BCE4-86C3D3D5A66E}.Debug|x86.Build.0 = Debug|Any CPU + {54C943DB-7725-4F52-BCE4-86C3D3D5A66E}.minimal|Any CPU.ActiveCfg = Debug|Any CPU + {54C943DB-7725-4F52-BCE4-86C3D3D5A66E}.minimal|Any CPU.Build.0 = Debug|Any CPU + {54C943DB-7725-4F52-BCE4-86C3D3D5A66E}.minimal|x86.ActiveCfg = Release|Any CPU + {54C943DB-7725-4F52-BCE4-86C3D3D5A66E}.minimal|x86.Build.0 = Release|Any CPU + {54C943DB-7725-4F52-BCE4-86C3D3D5A66E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {54C943DB-7725-4F52-BCE4-86C3D3D5A66E}.Release|Any CPU.Build.0 = Release|Any CPU + {54C943DB-7725-4F52-BCE4-86C3D3D5A66E}.Release|x86.ActiveCfg = Release|Any CPU + {54C943DB-7725-4F52-BCE4-86C3D3D5A66E}.Release|x86.Build.0 = Release|Any CPU {F12EB680-0990-4900-B77E-0FBF2E28A815}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {F12EB680-0990-4900-B77E-0FBF2E28A815}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F12EB680-0990-4900-B77E-0FBF2E28A815}.Debug|x86.ActiveCfg = Debug|x86 - {F12EB680-0990-4900-B77E-0FBF2E28A815}.Debug|x86.Build.0 = Debug|x86 + {F12EB680-0990-4900-B77E-0FBF2E28A815}.Debug|x86.ActiveCfg = Debug|Any CPU + {F12EB680-0990-4900-B77E-0FBF2E28A815}.Debug|x86.Build.0 = Debug|Any CPU {F12EB680-0990-4900-B77E-0FBF2E28A815}.minimal|Any CPU.ActiveCfg = Debug|Any CPU {F12EB680-0990-4900-B77E-0FBF2E28A815}.minimal|Any CPU.Build.0 = Debug|Any CPU - {F12EB680-0990-4900-B77E-0FBF2E28A815}.minimal|x86.ActiveCfg = Release|x86 - {F12EB680-0990-4900-B77E-0FBF2E28A815}.minimal|x86.Build.0 = Release|x86 + {F12EB680-0990-4900-B77E-0FBF2E28A815}.minimal|x86.ActiveCfg = Release|Any CPU + {F12EB680-0990-4900-B77E-0FBF2E28A815}.minimal|x86.Build.0 = Release|Any CPU {F12EB680-0990-4900-B77E-0FBF2E28A815}.Release|Any CPU.ActiveCfg = Release|Any CPU {F12EB680-0990-4900-B77E-0FBF2E28A815}.Release|Any CPU.Build.0 = Release|Any CPU - {F12EB680-0990-4900-B77E-0FBF2E28A815}.Release|x86.ActiveCfg = Release|x86 - {F12EB680-0990-4900-B77E-0FBF2E28A815}.Release|x86.Build.0 = Release|x86 + {F12EB680-0990-4900-B77E-0FBF2E28A815}.Release|x86.ActiveCfg = Release|Any CPU + {F12EB680-0990-4900-B77E-0FBF2E28A815}.Release|x86.Build.0 = Release|Any CPU {42FB4CC3-F2D1-4509-87DD-6BBD430CD4AB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {42FB4CC3-F2D1-4509-87DD-6BBD430CD4AB}.Debug|Any CPU.Build.0 = Debug|Any CPU - {42FB4CC3-F2D1-4509-87DD-6BBD430CD4AB}.Debug|x86.ActiveCfg = Debug|x86 - {42FB4CC3-F2D1-4509-87DD-6BBD430CD4AB}.Debug|x86.Build.0 = Debug|x86 + {42FB4CC3-F2D1-4509-87DD-6BBD430CD4AB}.Debug|x86.ActiveCfg = Debug|Any CPU + {42FB4CC3-F2D1-4509-87DD-6BBD430CD4AB}.Debug|x86.Build.0 = Debug|Any CPU {42FB4CC3-F2D1-4509-87DD-6BBD430CD4AB}.minimal|Any CPU.ActiveCfg = Debug|Any CPU - {42FB4CC3-F2D1-4509-87DD-6BBD430CD4AB}.minimal|x86.ActiveCfg = Release|x86 - {42FB4CC3-F2D1-4509-87DD-6BBD430CD4AB}.minimal|x86.Build.0 = Release|x86 + {42FB4CC3-F2D1-4509-87DD-6BBD430CD4AB}.minimal|x86.ActiveCfg = Release|Any CPU + {42FB4CC3-F2D1-4509-87DD-6BBD430CD4AB}.minimal|x86.Build.0 = Release|Any CPU {42FB4CC3-F2D1-4509-87DD-6BBD430CD4AB}.Release|Any CPU.ActiveCfg = Release|Any CPU {42FB4CC3-F2D1-4509-87DD-6BBD430CD4AB}.Release|Any CPU.Build.0 = Release|Any CPU - {42FB4CC3-F2D1-4509-87DD-6BBD430CD4AB}.Release|x86.ActiveCfg = Release|x86 - {42FB4CC3-F2D1-4509-87DD-6BBD430CD4AB}.Release|x86.Build.0 = Release|x86 + {42FB4CC3-F2D1-4509-87DD-6BBD430CD4AB}.Release|x86.ActiveCfg = Release|Any CPU + {42FB4CC3-F2D1-4509-87DD-6BBD430CD4AB}.Release|x86.Build.0 = Release|Any CPU {5CFD0BB3-5B2A-4911-B220-9C2286151BF0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {5CFD0BB3-5B2A-4911-B220-9C2286151BF0}.Debug|Any CPU.Build.0 = Debug|Any CPU - {5CFD0BB3-5B2A-4911-B220-9C2286151BF0}.Debug|x86.ActiveCfg = Debug|x86 - {5CFD0BB3-5B2A-4911-B220-9C2286151BF0}.Debug|x86.Build.0 = Debug|x86 + {5CFD0BB3-5B2A-4911-B220-9C2286151BF0}.Debug|x86.ActiveCfg = Debug|Any CPU + {5CFD0BB3-5B2A-4911-B220-9C2286151BF0}.Debug|x86.Build.0 = Debug|Any CPU {5CFD0BB3-5B2A-4911-B220-9C2286151BF0}.minimal|Any CPU.ActiveCfg = Debug|Any CPU - {5CFD0BB3-5B2A-4911-B220-9C2286151BF0}.minimal|x86.ActiveCfg = Release|x86 - {5CFD0BB3-5B2A-4911-B220-9C2286151BF0}.minimal|x86.Build.0 = Release|x86 + {5CFD0BB3-5B2A-4911-B220-9C2286151BF0}.minimal|x86.ActiveCfg = Release|Any CPU + {5CFD0BB3-5B2A-4911-B220-9C2286151BF0}.minimal|x86.Build.0 = Release|Any CPU {5CFD0BB3-5B2A-4911-B220-9C2286151BF0}.Release|Any CPU.ActiveCfg = Release|Any CPU {5CFD0BB3-5B2A-4911-B220-9C2286151BF0}.Release|Any CPU.Build.0 = Release|Any CPU - {5CFD0BB3-5B2A-4911-B220-9C2286151BF0}.Release|x86.ActiveCfg = Release|x86 - {5CFD0BB3-5B2A-4911-B220-9C2286151BF0}.Release|x86.Build.0 = Release|x86 + {5CFD0BB3-5B2A-4911-B220-9C2286151BF0}.Release|x86.ActiveCfg = Release|Any CPU + {5CFD0BB3-5B2A-4911-B220-9C2286151BF0}.Release|x86.Build.0 = Release|Any CPU {6AED6785-CC6F-4A6A-BDB1-1895C6DA1090}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {6AED6785-CC6F-4A6A-BDB1-1895C6DA1090}.Debug|Any CPU.Build.0 = Debug|Any CPU - {6AED6785-CC6F-4A6A-BDB1-1895C6DA1090}.Debug|x86.ActiveCfg = Debug|x86 - {6AED6785-CC6F-4A6A-BDB1-1895C6DA1090}.Debug|x86.Build.0 = Debug|x86 + {6AED6785-CC6F-4A6A-BDB1-1895C6DA1090}.Debug|x86.ActiveCfg = Debug|Any CPU + {6AED6785-CC6F-4A6A-BDB1-1895C6DA1090}.Debug|x86.Build.0 = Debug|Any CPU {6AED6785-CC6F-4A6A-BDB1-1895C6DA1090}.minimal|Any CPU.ActiveCfg = Debug|Any CPU - {6AED6785-CC6F-4A6A-BDB1-1895C6DA1090}.minimal|x86.ActiveCfg = Release|x86 - {6AED6785-CC6F-4A6A-BDB1-1895C6DA1090}.minimal|x86.Build.0 = Release|x86 + {6AED6785-CC6F-4A6A-BDB1-1895C6DA1090}.minimal|x86.ActiveCfg = Release|Any CPU + {6AED6785-CC6F-4A6A-BDB1-1895C6DA1090}.minimal|x86.Build.0 = Release|Any CPU {6AED6785-CC6F-4A6A-BDB1-1895C6DA1090}.Release|Any CPU.ActiveCfg = Release|Any CPU {6AED6785-CC6F-4A6A-BDB1-1895C6DA1090}.Release|Any CPU.Build.0 = Release|Any CPU - {6AED6785-CC6F-4A6A-BDB1-1895C6DA1090}.Release|x86.ActiveCfg = Release|x86 - {6AED6785-CC6F-4A6A-BDB1-1895C6DA1090}.Release|x86.Build.0 = Release|x86 + {6AED6785-CC6F-4A6A-BDB1-1895C6DA1090}.Release|x86.ActiveCfg = Release|Any CPU + {6AED6785-CC6F-4A6A-BDB1-1895C6DA1090}.Release|x86.Build.0 = Release|Any CPU {87AF0B02-2983-486D-857F-D1859535C234}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {87AF0B02-2983-486D-857F-D1859535C234}.Debug|Any CPU.Build.0 = Debug|Any CPU - {87AF0B02-2983-486D-857F-D1859535C234}.Debug|x86.ActiveCfg = Debug|x86 - {87AF0B02-2983-486D-857F-D1859535C234}.Debug|x86.Build.0 = Debug|x86 + {87AF0B02-2983-486D-857F-D1859535C234}.Debug|x86.ActiveCfg = Debug|Any CPU + {87AF0B02-2983-486D-857F-D1859535C234}.Debug|x86.Build.0 = Debug|Any CPU {87AF0B02-2983-486D-857F-D1859535C234}.minimal|Any CPU.ActiveCfg = Debug|Any CPU - {87AF0B02-2983-486D-857F-D1859535C234}.minimal|x86.ActiveCfg = Release|x86 - {87AF0B02-2983-486D-857F-D1859535C234}.minimal|x86.Build.0 = Release|x86 + {87AF0B02-2983-486D-857F-D1859535C234}.minimal|x86.ActiveCfg = Release|Any CPU + {87AF0B02-2983-486D-857F-D1859535C234}.minimal|x86.Build.0 = Release|Any CPU {87AF0B02-2983-486D-857F-D1859535C234}.Release|Any CPU.ActiveCfg = Release|Any CPU {87AF0B02-2983-486D-857F-D1859535C234}.Release|Any CPU.Build.0 = Release|Any CPU - {87AF0B02-2983-486D-857F-D1859535C234}.Release|x86.ActiveCfg = Release|x86 - {87AF0B02-2983-486D-857F-D1859535C234}.Release|x86.Build.0 = Release|x86 + {87AF0B02-2983-486D-857F-D1859535C234}.Release|x86.ActiveCfg = Release|Any CPU + {87AF0B02-2983-486D-857F-D1859535C234}.Release|x86.Build.0 = Release|Any CPU {E651E83C-94DD-4D6D-ABA2-C9FDA34FBA55}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {E651E83C-94DD-4D6D-ABA2-C9FDA34FBA55}.Debug|Any CPU.Build.0 = Debug|Any CPU - {E651E83C-94DD-4D6D-ABA2-C9FDA34FBA55}.Debug|x86.ActiveCfg = Debug|x86 - {E651E83C-94DD-4D6D-ABA2-C9FDA34FBA55}.Debug|x86.Build.0 = Debug|x86 + {E651E83C-94DD-4D6D-ABA2-C9FDA34FBA55}.Debug|x86.ActiveCfg = Debug|Any CPU + {E651E83C-94DD-4D6D-ABA2-C9FDA34FBA55}.Debug|x86.Build.0 = Debug|Any CPU {E651E83C-94DD-4D6D-ABA2-C9FDA34FBA55}.minimal|Any CPU.ActiveCfg = Debug|Any CPU - {E651E83C-94DD-4D6D-ABA2-C9FDA34FBA55}.minimal|x86.ActiveCfg = Release|x86 - {E651E83C-94DD-4D6D-ABA2-C9FDA34FBA55}.minimal|x86.Build.0 = Release|x86 + {E651E83C-94DD-4D6D-ABA2-C9FDA34FBA55}.minimal|x86.ActiveCfg = Release|Any CPU + {E651E83C-94DD-4D6D-ABA2-C9FDA34FBA55}.minimal|x86.Build.0 = Release|Any CPU {E651E83C-94DD-4D6D-ABA2-C9FDA34FBA55}.Release|Any CPU.ActiveCfg = Release|Any CPU {E651E83C-94DD-4D6D-ABA2-C9FDA34FBA55}.Release|Any CPU.Build.0 = Release|Any CPU - {E651E83C-94DD-4D6D-ABA2-C9FDA34FBA55}.Release|x86.ActiveCfg = Release|x86 - {E651E83C-94DD-4D6D-ABA2-C9FDA34FBA55}.Release|x86.Build.0 = Release|x86 - {54C943DB-7725-4F52-BCE4-86C3D3D5A66E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {54C943DB-7725-4F52-BCE4-86C3D3D5A66E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {54C943DB-7725-4F52-BCE4-86C3D3D5A66E}.Debug|x86.ActiveCfg = Debug|x86 - {54C943DB-7725-4F52-BCE4-86C3D3D5A66E}.Debug|x86.Build.0 = Debug|x86 - {54C943DB-7725-4F52-BCE4-86C3D3D5A66E}.minimal|Any CPU.ActiveCfg = Debug|Any CPU - {54C943DB-7725-4F52-BCE4-86C3D3D5A66E}.minimal|Any CPU.Build.0 = Debug|Any CPU - {54C943DB-7725-4F52-BCE4-86C3D3D5A66E}.minimal|x86.ActiveCfg = Release|x86 - {54C943DB-7725-4F52-BCE4-86C3D3D5A66E}.minimal|x86.Build.0 = Release|x86 - {54C943DB-7725-4F52-BCE4-86C3D3D5A66E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {54C943DB-7725-4F52-BCE4-86C3D3D5A66E}.Release|Any CPU.Build.0 = Release|Any CPU - {54C943DB-7725-4F52-BCE4-86C3D3D5A66E}.Release|x86.ActiveCfg = Release|x86 - {54C943DB-7725-4F52-BCE4-86C3D3D5A66E}.Release|x86.Build.0 = Release|x86 + {E651E83C-94DD-4D6D-ABA2-C9FDA34FBA55}.Release|x86.ActiveCfg = Release|Any CPU + {E651E83C-94DD-4D6D-ABA2-C9FDA34FBA55}.Release|x86.Build.0 = Release|Any CPU {AC8F284C-7B34-4AC9-A7DE-FAF765456DFF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {AC8F284C-7B34-4AC9-A7DE-FAF765456DFF}.Debug|Any CPU.Build.0 = Debug|Any CPU - {AC8F284C-7B34-4AC9-A7DE-FAF765456DFF}.Debug|x86.ActiveCfg = Debug|x86 - {AC8F284C-7B34-4AC9-A7DE-FAF765456DFF}.Debug|x86.Build.0 = Debug|x86 + {AC8F284C-7B34-4AC9-A7DE-FAF765456DFF}.Debug|x86.ActiveCfg = Debug|Any CPU + {AC8F284C-7B34-4AC9-A7DE-FAF765456DFF}.Debug|x86.Build.0 = Debug|Any CPU {AC8F284C-7B34-4AC9-A7DE-FAF765456DFF}.minimal|Any CPU.ActiveCfg = Debug|Any CPU - {AC8F284C-7B34-4AC9-A7DE-FAF765456DFF}.minimal|x86.ActiveCfg = Release|x86 - {AC8F284C-7B34-4AC9-A7DE-FAF765456DFF}.minimal|x86.Build.0 = Release|x86 + {AC8F284C-7B34-4AC9-A7DE-FAF765456DFF}.minimal|x86.ActiveCfg = Release|Any CPU + {AC8F284C-7B34-4AC9-A7DE-FAF765456DFF}.minimal|x86.Build.0 = Release|Any CPU {AC8F284C-7B34-4AC9-A7DE-FAF765456DFF}.Release|Any CPU.ActiveCfg = Release|Any CPU {AC8F284C-7B34-4AC9-A7DE-FAF765456DFF}.Release|Any CPU.Build.0 = Release|Any CPU - {AC8F284C-7B34-4AC9-A7DE-FAF765456DFF}.Release|x86.ActiveCfg = Release|x86 - {AC8F284C-7B34-4AC9-A7DE-FAF765456DFF}.Release|x86.Build.0 = Release|x86 + {AC8F284C-7B34-4AC9-A7DE-FAF765456DFF}.Release|x86.ActiveCfg = Release|Any CPU + {AC8F284C-7B34-4AC9-A7DE-FAF765456DFF}.Release|x86.Build.0 = Release|Any CPU {600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD}.Debug|Any CPU.Build.0 = Debug|Any CPU - {600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD}.Debug|x86.ActiveCfg = Debug|x86 - {600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD}.Debug|x86.Build.0 = Debug|x86 + {600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD}.Debug|x86.ActiveCfg = Debug|Any CPU + {600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD}.Debug|x86.Build.0 = Debug|Any CPU {600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD}.minimal|Any CPU.ActiveCfg = Debug|Any CPU - {600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD}.minimal|x86.ActiveCfg = Release|x86 - {600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD}.minimal|x86.Build.0 = Release|x86 + {600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD}.minimal|x86.ActiveCfg = Release|Any CPU + {600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD}.minimal|x86.Build.0 = Release|Any CPU {600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD}.Release|Any CPU.ActiveCfg = Release|Any CPU {600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD}.Release|Any CPU.Build.0 = Release|Any CPU - {600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD}.Release|x86.ActiveCfg = Release|x86 - {600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD}.Release|x86.Build.0 = Release|x86 + {600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD}.Release|x86.ActiveCfg = Release|Any CPU + {600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD}.Release|x86.Build.0 = Release|Any CPU {EFB9D66D-AF0F-4E45-A1AC-DB32981711D2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {EFB9D66D-AF0F-4E45-A1AC-DB32981711D2}.Debug|Any CPU.Build.0 = Debug|Any CPU - {EFB9D66D-AF0F-4E45-A1AC-DB32981711D2}.Debug|x86.ActiveCfg = Debug|x86 - {EFB9D66D-AF0F-4E45-A1AC-DB32981711D2}.Debug|x86.Build.0 = Debug|x86 + {EFB9D66D-AF0F-4E45-A1AC-DB32981711D2}.Debug|x86.ActiveCfg = Debug|Any CPU + {EFB9D66D-AF0F-4E45-A1AC-DB32981711D2}.Debug|x86.Build.0 = Debug|Any CPU {EFB9D66D-AF0F-4E45-A1AC-DB32981711D2}.minimal|Any CPU.ActiveCfg = Debug|Any CPU - {EFB9D66D-AF0F-4E45-A1AC-DB32981711D2}.minimal|x86.ActiveCfg = Release|x86 - {EFB9D66D-AF0F-4E45-A1AC-DB32981711D2}.minimal|x86.Build.0 = Release|x86 + {EFB9D66D-AF0F-4E45-A1AC-DB32981711D2}.minimal|x86.ActiveCfg = Release|Any CPU + {EFB9D66D-AF0F-4E45-A1AC-DB32981711D2}.minimal|x86.Build.0 = Release|Any CPU {EFB9D66D-AF0F-4E45-A1AC-DB32981711D2}.Release|Any CPU.ActiveCfg = Release|Any CPU {EFB9D66D-AF0F-4E45-A1AC-DB32981711D2}.Release|Any CPU.Build.0 = Release|Any CPU - {EFB9D66D-AF0F-4E45-A1AC-DB32981711D2}.Release|x86.ActiveCfg = Release|x86 - {EFB9D66D-AF0F-4E45-A1AC-DB32981711D2}.Release|x86.Build.0 = Release|x86 + {EFB9D66D-AF0F-4E45-A1AC-DB32981711D2}.Release|x86.ActiveCfg = Release|Any CPU + {EFB9D66D-AF0F-4E45-A1AC-DB32981711D2}.Release|x86.Build.0 = Release|Any CPU {19310CA3-6653-45E0-9EC8-F824629E2AD8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {19310CA3-6653-45E0-9EC8-F824629E2AD8}.Debug|Any CPU.Build.0 = Debug|Any CPU - {19310CA3-6653-45E0-9EC8-F824629E2AD8}.Debug|x86.ActiveCfg = Debug|x86 - {19310CA3-6653-45E0-9EC8-F824629E2AD8}.Debug|x86.Build.0 = Debug|x86 + {19310CA3-6653-45E0-9EC8-F824629E2AD8}.Debug|x86.ActiveCfg = Debug|Any CPU + {19310CA3-6653-45E0-9EC8-F824629E2AD8}.Debug|x86.Build.0 = Debug|Any CPU {19310CA3-6653-45E0-9EC8-F824629E2AD8}.minimal|Any CPU.ActiveCfg = Debug|Any CPU - {19310CA3-6653-45E0-9EC8-F824629E2AD8}.minimal|x86.ActiveCfg = Release|x86 - {19310CA3-6653-45E0-9EC8-F824629E2AD8}.minimal|x86.Build.0 = Release|x86 + {19310CA3-6653-45E0-9EC8-F824629E2AD8}.minimal|x86.ActiveCfg = Release|Any CPU + {19310CA3-6653-45E0-9EC8-F824629E2AD8}.minimal|x86.Build.0 = Release|Any CPU {19310CA3-6653-45E0-9EC8-F824629E2AD8}.Release|Any CPU.ActiveCfg = Release|Any CPU {19310CA3-6653-45E0-9EC8-F824629E2AD8}.Release|Any CPU.Build.0 = Release|Any CPU - {19310CA3-6653-45E0-9EC8-F824629E2AD8}.Release|x86.ActiveCfg = Release|x86 - {19310CA3-6653-45E0-9EC8-F824629E2AD8}.Release|x86.Build.0 = Release|x86 + {19310CA3-6653-45E0-9EC8-F824629E2AD8}.Release|x86.ActiveCfg = Release|Any CPU + {19310CA3-6653-45E0-9EC8-F824629E2AD8}.Release|x86.Build.0 = Release|Any CPU {5F61C809-B6C0-4567-9603-B2198E1AD038}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {5F61C809-B6C0-4567-9603-B2198E1AD038}.Debug|Any CPU.Build.0 = Debug|Any CPU - {5F61C809-B6C0-4567-9603-B2198E1AD038}.Debug|x86.ActiveCfg = Debug|x86 - {5F61C809-B6C0-4567-9603-B2198E1AD038}.Debug|x86.Build.0 = Debug|x86 + {5F61C809-B6C0-4567-9603-B2198E1AD038}.Debug|x86.ActiveCfg = Debug|Any CPU + {5F61C809-B6C0-4567-9603-B2198E1AD038}.Debug|x86.Build.0 = Debug|Any CPU {5F61C809-B6C0-4567-9603-B2198E1AD038}.minimal|Any CPU.ActiveCfg = Debug|Any CPU {5F61C809-B6C0-4567-9603-B2198E1AD038}.minimal|Any CPU.Build.0 = Debug|Any CPU - {5F61C809-B6C0-4567-9603-B2198E1AD038}.minimal|x86.ActiveCfg = Release|x86 - {5F61C809-B6C0-4567-9603-B2198E1AD038}.minimal|x86.Build.0 = Release|x86 + {5F61C809-B6C0-4567-9603-B2198E1AD038}.minimal|x86.ActiveCfg = Release|Any CPU + {5F61C809-B6C0-4567-9603-B2198E1AD038}.minimal|x86.Build.0 = Release|Any CPU {5F61C809-B6C0-4567-9603-B2198E1AD038}.Release|Any CPU.ActiveCfg = Release|Any CPU {5F61C809-B6C0-4567-9603-B2198E1AD038}.Release|Any CPU.Build.0 = Release|Any CPU - {5F61C809-B6C0-4567-9603-B2198E1AD038}.Release|x86.ActiveCfg = Release|x86 - {5F61C809-B6C0-4567-9603-B2198E1AD038}.Release|x86.Build.0 = Release|x86 + {5F61C809-B6C0-4567-9603-B2198E1AD038}.Release|x86.ActiveCfg = Release|Any CPU + {5F61C809-B6C0-4567-9603-B2198E1AD038}.Release|x86.Build.0 = Release|Any CPU {74DF4C01-660C-4CF4-9343-9330337BCBEA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {74DF4C01-660C-4CF4-9343-9330337BCBEA}.Debug|Any CPU.Build.0 = Debug|Any CPU - {74DF4C01-660C-4CF4-9343-9330337BCBEA}.Debug|x86.ActiveCfg = Debug|x86 - {74DF4C01-660C-4CF4-9343-9330337BCBEA}.Debug|x86.Build.0 = Debug|x86 + {74DF4C01-660C-4CF4-9343-9330337BCBEA}.Debug|x86.ActiveCfg = Debug|Any CPU + {74DF4C01-660C-4CF4-9343-9330337BCBEA}.Debug|x86.Build.0 = Debug|Any CPU {74DF4C01-660C-4CF4-9343-9330337BCBEA}.minimal|Any CPU.ActiveCfg = Debug|Any CPU - {74DF4C01-660C-4CF4-9343-9330337BCBEA}.minimal|x86.ActiveCfg = Release|x86 - {74DF4C01-660C-4CF4-9343-9330337BCBEA}.minimal|x86.Build.0 = Release|x86 + {74DF4C01-660C-4CF4-9343-9330337BCBEA}.minimal|x86.ActiveCfg = Release|Any CPU + {74DF4C01-660C-4CF4-9343-9330337BCBEA}.minimal|x86.Build.0 = Release|Any CPU {74DF4C01-660C-4CF4-9343-9330337BCBEA}.Release|Any CPU.ActiveCfg = Release|Any CPU {74DF4C01-660C-4CF4-9343-9330337BCBEA}.Release|Any CPU.Build.0 = Release|Any CPU - {74DF4C01-660C-4CF4-9343-9330337BCBEA}.Release|x86.ActiveCfg = Release|x86 - {74DF4C01-660C-4CF4-9343-9330337BCBEA}.Release|x86.Build.0 = Release|x86 + {74DF4C01-660C-4CF4-9343-9330337BCBEA}.Release|x86.ActiveCfg = Release|Any CPU + {74DF4C01-660C-4CF4-9343-9330337BCBEA}.Release|x86.Build.0 = Release|Any CPU {123D695C-0D5D-46E5-893F-39EC4E0B01B8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {123D695C-0D5D-46E5-893F-39EC4E0B01B8}.Debug|Any CPU.Build.0 = Debug|Any CPU - {123D695C-0D5D-46E5-893F-39EC4E0B01B8}.Debug|x86.ActiveCfg = Debug|x86 - {123D695C-0D5D-46E5-893F-39EC4E0B01B8}.Debug|x86.Build.0 = Debug|x86 + {123D695C-0D5D-46E5-893F-39EC4E0B01B8}.Debug|x86.ActiveCfg = Debug|Any CPU + {123D695C-0D5D-46E5-893F-39EC4E0B01B8}.Debug|x86.Build.0 = Debug|Any CPU {123D695C-0D5D-46E5-893F-39EC4E0B01B8}.minimal|Any CPU.ActiveCfg = Debug|Any CPU {123D695C-0D5D-46E5-893F-39EC4E0B01B8}.minimal|Any CPU.Build.0 = Debug|Any CPU - {123D695C-0D5D-46E5-893F-39EC4E0B01B8}.minimal|x86.ActiveCfg = Release|x86 - {123D695C-0D5D-46E5-893F-39EC4E0B01B8}.minimal|x86.Build.0 = Release|x86 + {123D695C-0D5D-46E5-893F-39EC4E0B01B8}.minimal|x86.ActiveCfg = Release|Any CPU + {123D695C-0D5D-46E5-893F-39EC4E0B01B8}.minimal|x86.Build.0 = Release|Any CPU {123D695C-0D5D-46E5-893F-39EC4E0B01B8}.Release|Any CPU.ActiveCfg = Release|Any CPU {123D695C-0D5D-46E5-893F-39EC4E0B01B8}.Release|Any CPU.Build.0 = Release|Any CPU - {123D695C-0D5D-46E5-893F-39EC4E0B01B8}.Release|x86.ActiveCfg = Release|x86 - {123D695C-0D5D-46E5-893F-39EC4E0B01B8}.Release|x86.Build.0 = Release|x86 + {123D695C-0D5D-46E5-893F-39EC4E0B01B8}.Release|x86.ActiveCfg = Release|Any CPU + {123D695C-0D5D-46E5-893F-39EC4E0B01B8}.Release|x86.Build.0 = Release|Any CPU {EF37C48F-EABC-478B-B7C1-2BDB33968A21}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {EF37C48F-EABC-478B-B7C1-2BDB33968A21}.Debug|Any CPU.Build.0 = Debug|Any CPU - {EF37C48F-EABC-478B-B7C1-2BDB33968A21}.Debug|x86.ActiveCfg = Debug|x86 - {EF37C48F-EABC-478B-B7C1-2BDB33968A21}.Debug|x86.Build.0 = Debug|x86 + {EF37C48F-EABC-478B-B7C1-2BDB33968A21}.Debug|x86.ActiveCfg = Debug|Any CPU + {EF37C48F-EABC-478B-B7C1-2BDB33968A21}.Debug|x86.Build.0 = Debug|Any CPU {EF37C48F-EABC-478B-B7C1-2BDB33968A21}.minimal|Any CPU.ActiveCfg = Release|Any CPU {EF37C48F-EABC-478B-B7C1-2BDB33968A21}.minimal|Any CPU.Build.0 = Release|Any CPU - {EF37C48F-EABC-478B-B7C1-2BDB33968A21}.minimal|x86.ActiveCfg = Release|x86 - {EF37C48F-EABC-478B-B7C1-2BDB33968A21}.minimal|x86.Build.0 = Release|x86 + {EF37C48F-EABC-478B-B7C1-2BDB33968A21}.minimal|x86.ActiveCfg = Release|Any CPU + {EF37C48F-EABC-478B-B7C1-2BDB33968A21}.minimal|x86.Build.0 = Release|Any CPU {EF37C48F-EABC-478B-B7C1-2BDB33968A21}.Release|Any CPU.ActiveCfg = Release|Any CPU {EF37C48F-EABC-478B-B7C1-2BDB33968A21}.Release|Any CPU.Build.0 = Release|Any CPU - {EF37C48F-EABC-478B-B7C1-2BDB33968A21}.Release|x86.ActiveCfg = Release|x86 - {EF37C48F-EABC-478B-B7C1-2BDB33968A21}.Release|x86.Build.0 = Release|x86 + {EF37C48F-EABC-478B-B7C1-2BDB33968A21}.Release|x86.ActiveCfg = Release|Any CPU + {EF37C48F-EABC-478B-B7C1-2BDB33968A21}.Release|x86.Build.0 = Release|Any CPU {9D196637-2D50-4604-A310-378083CEA809}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {9D196637-2D50-4604-A310-378083CEA809}.Debug|Any CPU.Build.0 = Debug|Any CPU - {9D196637-2D50-4604-A310-378083CEA809}.Debug|x86.ActiveCfg = Debug|x86 - {9D196637-2D50-4604-A310-378083CEA809}.Debug|x86.Build.0 = Debug|x86 + {9D196637-2D50-4604-A310-378083CEA809}.Debug|x86.ActiveCfg = Debug|Any CPU + {9D196637-2D50-4604-A310-378083CEA809}.Debug|x86.Build.0 = Debug|Any CPU {9D196637-2D50-4604-A310-378083CEA809}.minimal|Any CPU.ActiveCfg = Debug|Any CPU {9D196637-2D50-4604-A310-378083CEA809}.minimal|Any CPU.Build.0 = Debug|Any CPU - {9D196637-2D50-4604-A310-378083CEA809}.minimal|x86.ActiveCfg = Release|x86 - {9D196637-2D50-4604-A310-378083CEA809}.minimal|x86.Build.0 = Release|x86 + {9D196637-2D50-4604-A310-378083CEA809}.minimal|x86.ActiveCfg = Release|Any CPU + {9D196637-2D50-4604-A310-378083CEA809}.minimal|x86.Build.0 = Release|Any CPU {9D196637-2D50-4604-A310-378083CEA809}.Release|Any CPU.ActiveCfg = Release|Any CPU {9D196637-2D50-4604-A310-378083CEA809}.Release|Any CPU.Build.0 = Release|Any CPU - {9D196637-2D50-4604-A310-378083CEA809}.Release|x86.ActiveCfg = Release|x86 - {9D196637-2D50-4604-A310-378083CEA809}.Release|x86.Build.0 = Release|x86 + {9D196637-2D50-4604-A310-378083CEA809}.Release|x86.ActiveCfg = Release|Any CPU + {9D196637-2D50-4604-A310-378083CEA809}.Release|x86.Build.0 = Release|Any CPU {FB7CFBB8-D7D0-4E9D-96CF-7D3D0D947EB5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {FB7CFBB8-D7D0-4E9D-96CF-7D3D0D947EB5}.Debug|Any CPU.Build.0 = Debug|Any CPU - {FB7CFBB8-D7D0-4E9D-96CF-7D3D0D947EB5}.Debug|x86.ActiveCfg = Debug|x86 - {FB7CFBB8-D7D0-4E9D-96CF-7D3D0D947EB5}.Debug|x86.Build.0 = Debug|x86 + {FB7CFBB8-D7D0-4E9D-96CF-7D3D0D947EB5}.Debug|x86.ActiveCfg = Debug|Any CPU + {FB7CFBB8-D7D0-4E9D-96CF-7D3D0D947EB5}.Debug|x86.Build.0 = Debug|Any CPU {FB7CFBB8-D7D0-4E9D-96CF-7D3D0D947EB5}.minimal|Any CPU.ActiveCfg = Debug|Any CPU - {FB7CFBB8-D7D0-4E9D-96CF-7D3D0D947EB5}.minimal|x86.ActiveCfg = Release|x86 - {FB7CFBB8-D7D0-4E9D-96CF-7D3D0D947EB5}.minimal|x86.Build.0 = Release|x86 + {FB7CFBB8-D7D0-4E9D-96CF-7D3D0D947EB5}.minimal|x86.ActiveCfg = Release|Any CPU + {FB7CFBB8-D7D0-4E9D-96CF-7D3D0D947EB5}.minimal|x86.Build.0 = Release|Any CPU {FB7CFBB8-D7D0-4E9D-96CF-7D3D0D947EB5}.Release|Any CPU.ActiveCfg = Release|Any CPU {FB7CFBB8-D7D0-4E9D-96CF-7D3D0D947EB5}.Release|Any CPU.Build.0 = Release|Any CPU - {FB7CFBB8-D7D0-4E9D-96CF-7D3D0D947EB5}.Release|x86.ActiveCfg = Release|x86 - {FB7CFBB8-D7D0-4E9D-96CF-7D3D0D947EB5}.Release|x86.Build.0 = Release|x86 + {FB7CFBB8-D7D0-4E9D-96CF-7D3D0D947EB5}.Release|x86.ActiveCfg = Release|Any CPU + {FB7CFBB8-D7D0-4E9D-96CF-7D3D0D947EB5}.Release|x86.Build.0 = Release|Any CPU {F644C902-A952-4797-9E2D-19D6051DD032}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {F644C902-A952-4797-9E2D-19D6051DD032}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F644C902-A952-4797-9E2D-19D6051DD032}.Debug|x86.ActiveCfg = Debug|x86 - {F644C902-A952-4797-9E2D-19D6051DD032}.Debug|x86.Build.0 = Debug|x86 + {F644C902-A952-4797-9E2D-19D6051DD032}.Debug|x86.ActiveCfg = Debug|Any CPU + {F644C902-A952-4797-9E2D-19D6051DD032}.Debug|x86.Build.0 = Debug|Any CPU {F644C902-A952-4797-9E2D-19D6051DD032}.minimal|Any CPU.ActiveCfg = Debug|Any CPU - {F644C902-A952-4797-9E2D-19D6051DD032}.minimal|x86.ActiveCfg = Release|x86 - {F644C902-A952-4797-9E2D-19D6051DD032}.minimal|x86.Build.0 = Release|x86 + {F644C902-A952-4797-9E2D-19D6051DD032}.minimal|x86.ActiveCfg = Release|Any CPU + {F644C902-A952-4797-9E2D-19D6051DD032}.minimal|x86.Build.0 = Release|Any CPU {F644C902-A952-4797-9E2D-19D6051DD032}.Release|Any CPU.ActiveCfg = Release|Any CPU {F644C902-A952-4797-9E2D-19D6051DD032}.Release|Any CPU.Build.0 = Release|Any CPU - {F644C902-A952-4797-9E2D-19D6051DD032}.Release|x86.ActiveCfg = Release|x86 - {F644C902-A952-4797-9E2D-19D6051DD032}.Release|x86.Build.0 = Release|x86 + {F644C902-A952-4797-9E2D-19D6051DD032}.Release|x86.ActiveCfg = Release|Any CPU + {F644C902-A952-4797-9E2D-19D6051DD032}.Release|x86.Build.0 = Release|Any CPU {8491FEEE-C311-4B64-BB30-A1F1C1802F45}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {8491FEEE-C311-4B64-BB30-A1F1C1802F45}.Debug|Any CPU.Build.0 = Debug|Any CPU - {8491FEEE-C311-4B64-BB30-A1F1C1802F45}.Debug|x86.ActiveCfg = Debug|x86 - {8491FEEE-C311-4B64-BB30-A1F1C1802F45}.Debug|x86.Build.0 = Debug|x86 + {8491FEEE-C311-4B64-BB30-A1F1C1802F45}.Debug|x86.ActiveCfg = Debug|Any CPU + {8491FEEE-C311-4B64-BB30-A1F1C1802F45}.Debug|x86.Build.0 = Debug|Any CPU {8491FEEE-C311-4B64-BB30-A1F1C1802F45}.minimal|Any CPU.ActiveCfg = Debug|Any CPU - {8491FEEE-C311-4B64-BB30-A1F1C1802F45}.minimal|x86.ActiveCfg = Release|x86 - {8491FEEE-C311-4B64-BB30-A1F1C1802F45}.minimal|x86.Build.0 = Release|x86 + {8491FEEE-C311-4B64-BB30-A1F1C1802F45}.minimal|x86.ActiveCfg = Release|Any CPU + {8491FEEE-C311-4B64-BB30-A1F1C1802F45}.minimal|x86.Build.0 = Release|Any CPU {8491FEEE-C311-4B64-BB30-A1F1C1802F45}.Release|Any CPU.ActiveCfg = Release|Any CPU {8491FEEE-C311-4B64-BB30-A1F1C1802F45}.Release|Any CPU.Build.0 = Release|Any CPU - {8491FEEE-C311-4B64-BB30-A1F1C1802F45}.Release|x86.ActiveCfg = Release|x86 - {8491FEEE-C311-4B64-BB30-A1F1C1802F45}.Release|x86.Build.0 = Release|x86 + {8491FEEE-C311-4B64-BB30-A1F1C1802F45}.Release|x86.ActiveCfg = Release|Any CPU + {8491FEEE-C311-4B64-BB30-A1F1C1802F45}.Release|x86.Build.0 = Release|Any CPU {4408C857-0371-42BF-A635-E23C8A99A803}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {4408C857-0371-42BF-A635-E23C8A99A803}.Debug|Any CPU.Build.0 = Debug|Any CPU - {4408C857-0371-42BF-A635-E23C8A99A803}.Debug|x86.ActiveCfg = Debug|x86 - {4408C857-0371-42BF-A635-E23C8A99A803}.Debug|x86.Build.0 = Debug|x86 + {4408C857-0371-42BF-A635-E23C8A99A803}.Debug|x86.ActiveCfg = Debug|Any CPU + {4408C857-0371-42BF-A635-E23C8A99A803}.Debug|x86.Build.0 = Debug|Any CPU {4408C857-0371-42BF-A635-E23C8A99A803}.minimal|Any CPU.ActiveCfg = Debug|Any CPU - {4408C857-0371-42BF-A635-E23C8A99A803}.minimal|x86.ActiveCfg = Release|x86 - {4408C857-0371-42BF-A635-E23C8A99A803}.minimal|x86.Build.0 = Release|x86 + {4408C857-0371-42BF-A635-E23C8A99A803}.minimal|x86.ActiveCfg = Release|Any CPU + {4408C857-0371-42BF-A635-E23C8A99A803}.minimal|x86.Build.0 = Release|Any CPU {4408C857-0371-42BF-A635-E23C8A99A803}.Release|Any CPU.ActiveCfg = Release|Any CPU {4408C857-0371-42BF-A635-E23C8A99A803}.Release|Any CPU.Build.0 = Release|Any CPU - {4408C857-0371-42BF-A635-E23C8A99A803}.Release|x86.ActiveCfg = Release|x86 - {4408C857-0371-42BF-A635-E23C8A99A803}.Release|x86.Build.0 = Release|x86 + {4408C857-0371-42BF-A635-E23C8A99A803}.Release|x86.ActiveCfg = Release|Any CPU + {4408C857-0371-42BF-A635-E23C8A99A803}.Release|x86.Build.0 = Release|Any CPU {7DA57D98-255B-46DE-BF94-D163695A0568}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {7DA57D98-255B-46DE-BF94-D163695A0568}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7DA57D98-255B-46DE-BF94-D163695A0568}.Debug|x86.ActiveCfg = Debug|x86 - {7DA57D98-255B-46DE-BF94-D163695A0568}.Debug|x86.Build.0 = Debug|x86 + {7DA57D98-255B-46DE-BF94-D163695A0568}.Debug|x86.ActiveCfg = Debug|Any CPU + {7DA57D98-255B-46DE-BF94-D163695A0568}.Debug|x86.Build.0 = Debug|Any CPU {7DA57D98-255B-46DE-BF94-D163695A0568}.minimal|Any CPU.ActiveCfg = Debug|Any CPU - {7DA57D98-255B-46DE-BF94-D163695A0568}.minimal|x86.ActiveCfg = Release|x86 - {7DA57D98-255B-46DE-BF94-D163695A0568}.minimal|x86.Build.0 = Release|x86 + {7DA57D98-255B-46DE-BF94-D163695A0568}.minimal|x86.ActiveCfg = Release|Any CPU + {7DA57D98-255B-46DE-BF94-D163695A0568}.minimal|x86.Build.0 = Release|Any CPU {7DA57D98-255B-46DE-BF94-D163695A0568}.Release|Any CPU.ActiveCfg = Release|Any CPU {7DA57D98-255B-46DE-BF94-D163695A0568}.Release|Any CPU.Build.0 = Release|Any CPU - {7DA57D98-255B-46DE-BF94-D163695A0568}.Release|x86.ActiveCfg = Release|x86 - {7DA57D98-255B-46DE-BF94-D163695A0568}.Release|x86.Build.0 = Release|x86 + {7DA57D98-255B-46DE-BF94-D163695A0568}.Release|x86.ActiveCfg = Release|Any CPU + {7DA57D98-255B-46DE-BF94-D163695A0568}.Release|x86.Build.0 = Release|Any CPU {9936180C-90A7-467C-B761-EC184EFE1F9F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {9936180C-90A7-467C-B761-EC184EFE1F9F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {9936180C-90A7-467C-B761-EC184EFE1F9F}.Debug|x86.ActiveCfg = Debug|x86 - {9936180C-90A7-467C-B761-EC184EFE1F9F}.Debug|x86.Build.0 = Debug|x86 + {9936180C-90A7-467C-B761-EC184EFE1F9F}.Debug|x86.ActiveCfg = Debug|Any CPU + {9936180C-90A7-467C-B761-EC184EFE1F9F}.Debug|x86.Build.0 = Debug|Any CPU {9936180C-90A7-467C-B761-EC184EFE1F9F}.minimal|Any CPU.ActiveCfg = Debug|Any CPU - {9936180C-90A7-467C-B761-EC184EFE1F9F}.minimal|x86.ActiveCfg = Release|x86 - {9936180C-90A7-467C-B761-EC184EFE1F9F}.minimal|x86.Build.0 = Release|x86 + {9936180C-90A7-467C-B761-EC184EFE1F9F}.minimal|x86.ActiveCfg = Release|Any CPU + {9936180C-90A7-467C-B761-EC184EFE1F9F}.minimal|x86.Build.0 = Release|Any CPU {9936180C-90A7-467C-B761-EC184EFE1F9F}.Release|Any CPU.ActiveCfg = Release|Any CPU {9936180C-90A7-467C-B761-EC184EFE1F9F}.Release|Any CPU.Build.0 = Release|Any CPU - {9936180C-90A7-467C-B761-EC184EFE1F9F}.Release|x86.ActiveCfg = Release|x86 - {9936180C-90A7-467C-B761-EC184EFE1F9F}.Release|x86.Build.0 = Release|x86 + {9936180C-90A7-467C-B761-EC184EFE1F9F}.Release|x86.ActiveCfg = Release|Any CPU + {9936180C-90A7-467C-B761-EC184EFE1F9F}.Release|x86.Build.0 = Release|Any CPU {FEC3014D-0067-4D59-A838-3B046EC3C352}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {FEC3014D-0067-4D59-A838-3B046EC3C352}.Debug|Any CPU.Build.0 = Debug|Any CPU - {FEC3014D-0067-4D59-A838-3B046EC3C352}.Debug|x86.ActiveCfg = Debug|x86 - {FEC3014D-0067-4D59-A838-3B046EC3C352}.Debug|x86.Build.0 = Debug|x86 - {FEC3014D-0067-4D59-A838-3B046EC3C352}.minimal|Any CPU.ActiveCfg = Release|x86 - {FEC3014D-0067-4D59-A838-3B046EC3C352}.minimal|x86.ActiveCfg = Release|x86 - {FEC3014D-0067-4D59-A838-3B046EC3C352}.minimal|x86.Build.0 = Release|x86 + {FEC3014D-0067-4D59-A838-3B046EC3C352}.Debug|x86.ActiveCfg = Debug|Any CPU + {FEC3014D-0067-4D59-A838-3B046EC3C352}.Debug|x86.Build.0 = Debug|Any CPU + {FEC3014D-0067-4D59-A838-3B046EC3C352}.minimal|Any CPU.ActiveCfg = Release|Any CPU + {FEC3014D-0067-4D59-A838-3B046EC3C352}.minimal|Any CPU.Build.0 = Release|Any CPU + {FEC3014D-0067-4D59-A838-3B046EC3C352}.minimal|x86.ActiveCfg = Release|Any CPU + {FEC3014D-0067-4D59-A838-3B046EC3C352}.minimal|x86.Build.0 = Release|Any CPU {FEC3014D-0067-4D59-A838-3B046EC3C352}.Release|Any CPU.ActiveCfg = Release|Any CPU {FEC3014D-0067-4D59-A838-3B046EC3C352}.Release|Any CPU.Build.0 = Release|Any CPU - {FEC3014D-0067-4D59-A838-3B046EC3C352}.Release|x86.ActiveCfg = Release|x86 - {FEC3014D-0067-4D59-A838-3B046EC3C352}.Release|x86.Build.0 = Release|x86 + {FEC3014D-0067-4D59-A838-3B046EC3C352}.Release|x86.ActiveCfg = Release|Any CPU + {FEC3014D-0067-4D59-A838-3B046EC3C352}.Release|x86.Build.0 = Release|Any CPU {4498EAF7-1736-40C3-AD20-6B2CD8D935DB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {4498EAF7-1736-40C3-AD20-6B2CD8D935DB}.Debug|Any CPU.Build.0 = Debug|Any CPU {4498EAF7-1736-40C3-AD20-6B2CD8D935DB}.Debug|x86.ActiveCfg = Debug|Any CPU diff --git a/build/WeSay.proj b/build/WeSay.proj index 4b4e6b40e..6c07bc21d 100644 --- a/build/WeSay.proj +++ b/build/WeSay.proj @@ -6,7 +6,7 @@ $(RootDir)/$(Solution) Debug KnownMonoIssue, - SkipOnTeamCity,$(LinuxExcludeCategories) + SkipOnCI,$(LinuxExcludeCategories) true x false @@ -46,7 +46,7 @@ ]]> - + @@ -66,10 +66,10 @@ - - + - diff --git a/build/build.common.proj b/build/build.common.proj index ee279dd2d..b21710a09 100644 --- a/build/build.common.proj +++ b/build/build.common.proj @@ -5,7 +5,7 @@ true false - SkipOnTeamCity,$(ExtraExcludeCategories) + SkipOnCI,$(ExtraExcludeCategories) diff --git a/build/build.mono.proj b/build/build.mono.proj index e1ad093c8..383b9ab75 100644 --- a/build/build.mono.proj +++ b/build/build.mono.proj @@ -51,7 +51,7 @@ Targets="Build" Properties="Configuration=$(Configuration);Constants=$(Constants)" /> diff --git a/src/.nuget/packages.config b/src/.nuget/packages.config deleted file mode 100644 index 23a62fd78..000000000 --- a/src/.nuget/packages.config +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/src/Addin.Backup.Tests/Addin.Backup.Tests.csproj b/src/Addin.Backup.Tests/Addin.Backup.Tests.csproj index 826d8a86c..e827bb45e 100755 --- a/src/Addin.Backup.Tests/Addin.Backup.Tests.csproj +++ b/src/Addin.Backup.Tests/Addin.Backup.Tests.csproj @@ -1,228 +1,70 @@ - - - + - Debug - AnyCPU - 9.0.21022 - 2.0 - {EF37C48F-EABC-478B-B7C1-2BDB33968A21} + net8.0-windows Library - Properties - Addin.Backup.Tests - Addin.Backup.Tests - v4.6.1 - ..\AppForTests.config - 512 - - - 3.5 - - - + false + true + true - true - full - false ..\..\output\Debug\ - DEBUG;TRACE - prompt - 4 Library - Addin.Backup.Tests - Addin.Backup.Tests - false true - x86 - pdbonly - true ..\..\output\Release\ - TRACE - prompt - 4 Library - Addin.Backup.Tests true - Addin.Backup.Tests - false true - true ..\..\output\Debug\ - DEBUG;TRACE true - full - x86 - prompt true ..\..\output\Release\ - TRACE true - true - pdbonly - x86 - prompt true - - ..\packages\Autofac.4.1.1\lib\net45\Autofac.dll - - - ..\packages\SharpZipLib.0.86.0\lib\20\ICSharpCode.SharpZipLib.dll - - - ..\packages\icu.net.2.7.1\lib\net451\icu.net.dll - - - ..\packages\Microsoft.Bcl.AsyncInterfaces.5.0.0\lib\net461\Microsoft.Bcl.AsyncInterfaces.dll - - - ..\packages\Microsoft.DotNet.PlatformAbstractions.2.0.4\lib\net45\Microsoft.DotNet.PlatformAbstractions.dll - - - ..\packages\Microsoft.Extensions.DependencyModel.2.0.4\lib\net451\Microsoft.Extensions.DependencyModel.dll - - - ..\packages\Mono.Posix.7.0.0-alpha2.21278.1\lib\net45\Mono.Posix.dll - - - ..\packages\Mono.Unix.7.0.0-alpha2.21278.1\lib\net45\Mono.Unix.dll - - - ..\packages\NUnit.3.13.1\lib\net45\nunit.framework.dll - - - ..\packages\SIL.Core.9.0.0-beta0154\lib\net461\SIL.Core.dll - - - False - ..\packages\SIL.Core.Desktop.9.0.0-beta0154\lib\net461\SIL.Core.Desktop.dll - - - ..\packages\SIL.TestUtilities.9.0.0-beta0154\lib\net461\SIL.TestUtilities.dll - - - ..\packages\SIL.WritingSystems.9.0.0-beta0154\lib\net461\SIL.WritingSystems.dll - - - ..\packages\Spart.1.0.0\lib\net461\Spart.dll - - - - ..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll - - - - 3.5 - - - ..\packages\System.Diagnostics.DiagnosticSource.4.7.1\lib\net46\System.Diagnostics.DiagnosticSource.dll - - - ..\packages\System.IO.FileSystem.AccessControl.4.7.0\lib\net461\System.IO.FileSystem.AccessControl.dll - - - ..\packages\System.Memory.4.5.4\lib\net461\System.Memory.dll - - - - ..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll - - - ..\packages\System.Runtime.CompilerServices.Unsafe.4.5.3\lib\net461\System.Runtime.CompilerServices.Unsafe.dll - - - ..\packages\System.Security.AccessControl.4.7.0\lib\net461\System.Security.AccessControl.dll - - - ..\packages\System.Security.Principal.Windows.4.7.0\lib\net461\System.Security.Principal.Windows.dll - - - ..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll - - - ..\packages\System.ValueTuple.4.5.0\lib\net461\System.ValueTuple.dll - - - - 3.5 - - - 3.5 - - - - - - - - - - - - ResXFileCodeGenerator - Resources.Designer.cs - Designer - - - True - Resources.resx - True - - - SettingsSingleFileGenerator - Settings.Designer.cs - - - True - Settings.settings - True - - + + + - - {42FB4CC3-F2D1-4509-87DD-6BBD430CD4AB} - Addin.Backup - - - {5CFD0BB3-5B2A-4911-B220-9C2286151BF0} - WeSay.Project - - - {FEC3014D-0067-4D59-A838-3B046EC3C352} - WeSay.TestUtilities - + - + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + + + + + + + + + + + + + - - - - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - - - \ No newline at end of file diff --git a/src/Addin.Backup.Tests/Properties/AssemblyInfo.cs b/src/Addin.Backup.Tests/Properties/AssemblyInfo.cs deleted file mode 100644 index 6336f3e34..000000000 --- a/src/Addin.Backup.Tests/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System.Reflection; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("Addin.Backup.Tests")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("Addin.Backup.Tests")] -[assembly: AssemblyCopyright("Copyright © 2009")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("80465a17-fb70-4a64-b8b0-95f9350d4b47")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.9.0.10")] -[assembly: AssemblyVersion("1.9.0.10")] -[assembly: AssemblyFileVersion("1.9.0.10")] diff --git a/src/Addin.Backup.Tests/packages.config b/src/Addin.Backup.Tests/packages.config deleted file mode 100644 index 2924511e4..000000000 --- a/src/Addin.Backup.Tests/packages.config +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/Addin.Backup/Addin.Backup.csproj b/src/Addin.Backup/Addin.Backup.csproj index e879aa3ee..4b5b895f3 100755 --- a/src/Addin.Backup/Addin.Backup.csproj +++ b/src/Addin.Backup/Addin.Backup.csproj @@ -1,215 +1,77 @@ - - + - Debug - AnyCPU - 9.0.21022 - 2.0 - {42FB4CC3-F2D1-4509-87DD-6BBD430CD4AB} + net8.0-windows Library - Properties - Addin.Backup - Addin.Backup - - - - - 3.5 - v4.6.1 - - - + false + true + true - true - full - false ..\..\output\Debug\ - DEBUG;TRACE - prompt - 4 Library - Addin.Backup - Addin.Backup - false true - x86 - pdbonly - true ..\..\output\Release\ - TRACE - prompt - 4 Library - Addin.Backup true - Addin.Backup - false true - true ..\..\output\$(Configuration)\ - DEBUG;TRACE true - full - x86 - prompt true ..\..\output\Release\ - TRACE true - true - pdbonly - x86 - prompt true - - ..\packages\Enchant.Net.1.4.2\lib\net461\Enchant.Net.dll - - - ..\packages\SharpZipLib.0.86.0\lib\20\ICSharpCode.SharpZipLib.dll - - - ..\packages\JetBrains.Annotations.2021.2.0\lib\net20\JetBrains.Annotations.dll - - - ..\packages\L10NSharp.5.0.0-beta0086\lib\net461\L10NSharp.dll - - - ..\packages\SIL.Chorus.LibChorus.5.0.0-beta0017\lib\net461\LibChorus.dll - - - ..\packages\Mono.Addins.1.3.8\lib\net45\Mono.Addins.dll - - - PreserveNewest - - - ..\packages\SIL.Core.9.0.0-beta0154\lib\net461\SIL.Core.dll - - - ..\packages\SIL.Core.Desktop.9.0.0-beta0154\lib\net461\SIL.Core.Desktop.dll - - - ..\packages\SIL.Lift.9.0.0-beta0154\lib\net461\SIL.Lift.dll - - - ..\packages\SIL.Windows.Forms.9.0.0-beta0154\lib\net461\SIL.Windows.Forms.dll - - - ..\packages\SIL.WritingSystems.9.0.0-beta0154\lib\net461\SIL.WritingSystems.dll - - - - - - 3.5 - - - - - - - - - + + + + + + - - - - Form - - - BackupDialog.cs - - - - True - True - Resources.resx - - - - Form - - - SendProjectEmailSettingsDialog.cs - - - - - {5F61C809-B6C0-4567-9603-B2198E1AD038} - LexicalModel - - - {E651E83C-94DD-4D6D-ABA2-C9FDA34FBA55} - WeSay.AddinLib - - - {600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD} - WeSay.Data - - - {F12EB680-0990-4900-B77E-0FBF2E28A815} - WeSay.Foundation - - - {5CFD0BB3-5B2A-4911-B220-9C2286151BF0} - WeSay.Project - - - {AC8F284C-7B34-4AC9-A7DE-FAF765456DFF} - WeSay.UI - - - - - Designer - BackupDialog.cs - - - Designer - ResXFileCodeGenerator - Resources.Designer.cs - - - Designer - SendProjectEmailSettingsDialog.cs - + + + $(PkgSIL_Windows_Forms)\lib\net461\SIL.Windows.Forms.dll + - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - - - \ No newline at end of file diff --git a/src/Addin.Backup/BackupDialog.cs b/src/Addin.Backup/BackupDialog.cs index 1429f1431..d19f3023b 100644 --- a/src/Addin.Backup/BackupDialog.cs +++ b/src/Addin.Backup/BackupDialog.cs @@ -1,10 +1,9 @@ using SIL.i18n; using SIL.Reporting; -using SIL.UsbDrive; using System; -using System.Collections.Generic; using System.Drawing; using System.IO; +using System.Linq; using System.Windows.Forms; using WeSay.AddinLib; @@ -24,7 +23,7 @@ public BackupDialog(ProjectInfo projectInfo) _cancelButton.Font = (Font)StringCatalog.LabelFont.Clone(); } - private void DoBackup(IUsbDriveInfo info) + private void DoBackup(DriveInfo info) { _checkForUsbKeyTimer.Enabled = false; _noteLabel.Visible = false; @@ -57,9 +56,9 @@ private void _cancelButton_Click(object sender, EventArgs e) _checkForUsbKeyTimer.Enabled = false; } - public List GetLogicalUsbDisks() + public DriveInfo[] GetLogicalUsbDisks() { - return UsbDriveInfo.GetDrives(); + return DriveInfo.GetDrives().Where(d => d.DriveType == DriveType.Removable).ToArray(); } private void Dialog_Load(object sender, EventArgs e) @@ -77,7 +76,7 @@ private void LookForTargetVolume() try { var usbDrives = GetLogicalUsbDisks(); - if ((usbDrives.Count > 0) && (usbDrives[0].IsReady)) + if ((usbDrives.Length > 0) && (usbDrives[0].IsReady)) { DoBackup(usbDrives[0]); } diff --git a/src/Addin.Backup/Properties/AssemblyInfo.cs b/src/Addin.Backup/Properties/AssemblyInfo.cs deleted file mode 100644 index fc98e9123..000000000 --- a/src/Addin.Backup/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,41 +0,0 @@ -using Mono.Addins; -using System.Reflection; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. - -[assembly: AssemblyTitle("Addin.Backup")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("SIL")] -[assembly: AssemblyProduct("Addin.Backup")] -[assembly: AssemblyCopyright("Copyright © SIL 2007")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. - -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM - -[assembly: Guid("ad1eca7a-211c-4b64-87ba-5d43887a267c")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Revision and Build Numbers -// by using the '*' as shown below: - -[assembly: AssemblyVersion("1.9.0.10")] -[assembly: AssemblyFileVersion("1.9.0.10")] -[assembly: Addin] -[assembly: AddinDependency("WeSay.AddinLib", "1.0")] \ No newline at end of file diff --git a/src/Addin.Backup/packages.config b/src/Addin.Backup/packages.config deleted file mode 100644 index 228f512c4..000000000 --- a/src/Addin.Backup/packages.config +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/Addin.Synchronize/Addin.Synchronize.csproj b/src/Addin.Synchronize/Addin.Synchronize.csproj index 2eda84d64..ca8ff286f 100644 --- a/src/Addin.Synchronize/Addin.Synchronize.csproj +++ b/src/Addin.Synchronize/Addin.Synchronize.csproj @@ -29,7 +29,7 @@ - ..\packages\Mono.Addins.1.2\lib\net40\Mono.Addins.dll + ..\..\packages\Mono.Addins.1.2\lib\net40\Mono.Addins.dll diff --git a/src/Addin.Transform.Tests/Addin.Transform.Tests.csproj b/src/Addin.Transform.Tests/Addin.Transform.Tests.csproj index d26a46fbb..d1ca87b3b 100644 --- a/src/Addin.Transform.Tests/Addin.Transform.Tests.csproj +++ b/src/Addin.Transform.Tests/Addin.Transform.Tests.csproj @@ -1,260 +1,91 @@ - - + - Debug - AnyCPU - 9.0.21022 - 2.0 - {19310CA3-6653-45E0-9EC8-F824629E2AD8} + net8.0-windows Library - Properties - Addin.Transform.Tests - Addin.Transform.Tests ..\AppForTests.config - - - - - 3.5 - v4.6.1 - - - + false + true + true - true - full - false ..\..\output\Debug\ - DEBUG;TRACE - prompt - 4 Library - Addin.Transform.Tests - Addin.Transform.Tests - false true - x86 - pdbonly - true ..\..\output\Release\ - TRACE - prompt - 4 Library - Addin.Transform.Tests true - Addin.Transform.Tests - false true - true ..\..\output\Debug\ - DEBUG;TRACE true - full - x86 - prompt true ..\..\output\Release\ - TRACE true - true - pdbonly - x86 - prompt true - - ..\packages\Autofac.4.1.1\lib\net45\Autofac.dll - - - ..\packages\RelaxNG.3.2.3\lib\net40\Commons.Xml.Relaxng.dll - - - ..\packages\DialogAdapters.Gtk2.0.1.9\lib\net461\DialogAdapters.dll - - - ..\packages\Enchant.Net.1.4.2\lib\net461\Enchant.Net.dll - - - ..\packages\SharpZipLib.0.86.0\lib\20\ICSharpCode.SharpZipLib.dll - - - ..\packages\icu.net.2.7.1\lib\net451\icu.net.dll - - - ..\packages\JetBrains.Annotations.2021.2.0\lib\net20\JetBrains.Annotations.dll - - - ..\packages\L10NSharp.5.0.0-beta0086\lib\net461\L10NSharp.dll - - - ..\packages\Markdig.Signed.0.22.0\lib\net452\Markdig.Signed.dll - - - ..\packages\Microsoft.DotNet.PlatformAbstractions.2.0.4\lib\net45\Microsoft.DotNet.PlatformAbstractions.dll - - - ..\packages\Microsoft.Extensions.DependencyModel.2.0.4\lib\net451\Microsoft.Extensions.DependencyModel.dll - - - ..\packages\NDesk.DBus.0.15.0\lib\NDesk.DBus.dll - - - ..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll - - - ..\packages\SIL.Core.9.0.0-beta0154\lib\net461\SIL.Core.dll - - - ..\packages\SIL.Core.Desktop.9.0.0-beta0154\lib\net461\SIL.Core.Desktop.dll - - - ..\packages\SIL.DictionaryServices.9.0.0-beta0154\lib\net461\SIL.DictionaryServices.dll - - - ..\packages\SIL.Lift.9.0.0-beta0154\lib\net461\SIL.Lift.dll - - - False - ..\packages\SIL.TestUtilities.9.0.0-beta0154\lib\net461\SIL.TestUtilities.dll - - - ..\packages\SIL.Windows.Forms.9.0.0-beta0154\lib\net461\SIL.Windows.Forms.dll - - - ..\packages\SIL.WritingSystems.9.0.0-beta0154\lib\net461\SIL.WritingSystems.dll - - - ..\packages\Spart.1.0.0\lib\net461\Spart.dll - - - - ..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll - - - - 3.5 - - - - - - ..\packages\System.IO.FileSystem.AccessControl.4.7.0\lib\net461\System.IO.FileSystem.AccessControl.dll - - - - ..\packages\System.Memory.4.5.4\lib\net461\System.Memory.dll - - - - ..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll - - - ..\packages\System.Runtime.CompilerServices.Unsafe.4.5.3\lib\net461\System.Runtime.CompilerServices.Unsafe.dll - - - - ..\packages\System.Security.AccessControl.4.7.0\lib\net461\System.Security.AccessControl.dll - - - ..\packages\System.Security.Principal.Windows.4.7.0\lib\net461\System.Security.Principal.Windows.dll - - - - ..\packages\System.ValueTuple.4.5.0\lib\net461\System.ValueTuple.dll - - - - - - ..\packages\NUnit.3.13.1\lib\net45\nunit.framework.dll - - - ..\packages\TagLibSharp.2.2.0\lib\net45\TagLibSharp.dll + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + $(PkgSIL_Windows_Forms)\lib\net461\SIL.Windows.Forms.dll - - - - - - - - - + + + + + + + + + - - {9D196637-2D50-4604-A310-378083CEA809} - Addin.Transform - - - {123D695C-0D5D-46E5-893F-39EC4E0B01B8} - LexicalModel.Tests - - - {5F61C809-B6C0-4567-9603-B2198E1AD038} - LexicalModel - - - {E651E83C-94DD-4D6D-ABA2-C9FDA34FBA55} - WeSay.AddinLib - - - {600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD} - WeSay.Data - - - {F12EB680-0990-4900-B77E-0FBF2E28A815} - WeSay.Foundation - - - {F644C902-A952-4797-9E2D-19D6051DD032} - WeSay.Project.Tests - - - {5CFD0BB3-5B2A-4911-B220-9C2286151BF0} - WeSay.Project - - - {FEC3014D-0067-4D59-A838-3B046EC3C352} - WeSay.TestUtilities - + + + + + + + + + + + + + - - - + - + + + + + + + + + + + + + + - - - - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - - \ No newline at end of file diff --git a/src/Addin.Transform.Tests/LibreOfficePdfTests.cs b/src/Addin.Transform.Tests/LibreOfficePdfTests.cs index 265d119df..f410fb816 100644 --- a/src/Addin.Transform.Tests/LibreOfficePdfTests.cs +++ b/src/Addin.Transform.Tests/LibreOfficePdfTests.cs @@ -107,7 +107,7 @@ private static void CopyFolder(string sourceFolder, string destFolder) } [Test] - [Category("SkipOnTeamCity")] + [Category("SkipOnCI")] [Platform(Exclude = "Win", Reason = "Mono only test")] public void TestOpenDocumentPdf() { @@ -132,7 +132,7 @@ public void TestOpenDocumentPdf() } [Test] - [Category("SkipOnTeamCity")] + [Category("SkipOnCI")] [Platform(Exclude = "Win", Reason = "Mono only test")] public void TestOpenDocumentPdfOpen() { diff --git a/src/Addin.Transform.Tests/PdfMakerTests.cs b/src/Addin.Transform.Tests/PdfMakerTests.cs index 8fc09e820..8230690c6 100644 --- a/src/Addin.Transform.Tests/PdfMakerTests.cs +++ b/src/Addin.Transform.Tests/PdfMakerTests.cs @@ -61,14 +61,14 @@ public void TearDown() } [Test] - [Category("SkipOnTeamCity")] + [Category("SkipOnCI")] public void CreatePDF() { LaunchAddin(); } [Test] - [Category("SkipOnTeamCity")] + [Category("SkipOnCI")] public void CreatePdfAndOpen() { LaunchAddin(); diff --git a/src/Addin.Transform.Tests/Properties/AssemblyInfo.cs b/src/Addin.Transform.Tests/Properties/AssemblyInfo.cs deleted file mode 100644 index cd240e859..000000000 --- a/src/Addin.Transform.Tests/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. - -[assembly: AssemblyTitle("Addin.Transform.Tests")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("SIL")] -[assembly: AssemblyProduct("Addin.Transform.Tests")] -[assembly: AssemblyCopyright("Copyright © SIL 2007")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. - -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM - -[assembly: Guid("7351069e-f724-4f9b-858b-908778e28ab4")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// - -[assembly: AssemblyVersion("1.9.0.10")] -[assembly: AssemblyFileVersion("1.9.0.10")] \ No newline at end of file diff --git a/src/Addin.Transform.Tests/SfmTransformerTests.cs b/src/Addin.Transform.Tests/SfmTransformerTests.cs index 8ee58c2b2..697356336 100644 --- a/src/Addin.Transform.Tests/SfmTransformerTests.cs +++ b/src/Addin.Transform.Tests/SfmTransformerTests.cs @@ -11,7 +11,7 @@ namespace Addin.Transform.Tests { - [Category("SkipOnTeamCity")] // Uses ProgressDialog during transforms. + [Category("SkipOnCI")] // Uses ProgressDialog during transforms. [TestFixture] public class SfmTransformerTests { diff --git a/src/Addin.Transform.Tests/packages.config b/src/Addin.Transform.Tests/packages.config deleted file mode 100644 index 9b71df9c6..000000000 --- a/src/Addin.Transform.Tests/packages.config +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/Addin.Transform/Addin.Transform.csproj b/src/Addin.Transform/Addin.Transform.csproj index 6c700a3c9..314583153 100755 --- a/src/Addin.Transform/Addin.Transform.csproj +++ b/src/Addin.Transform/Addin.Transform.csproj @@ -1,22 +1,7 @@ - - + - Debug - AnyCPU - 9.0.21022 - 2.0 - {9D196637-2D50-4604-A310-378083CEA809} + net8.0-windows Library - Properties - Addin.Transform - Addin.Transform - - - - - 3.5 - v4.6.1 - publish\ true Disk @@ -32,324 +17,92 @@ false false true - - + false + true + true - true - full - false ..\..\output\Debug\ - DEBUG;TRACE - prompt - 4 Library - Addin.Transform true /usr/share/wesay/WeSay.ConfigTool.exe /home/keith/WeSay/krstest/krstest.lift true - x86 - pdbonly - true ..\..\output\Release\ - TRACE - prompt - 4 Library true - Addin.Transform true - true ..\..\output\Debug\ - DEBUG;TRACE true - full - x86 - prompt - 4 - false true ..\..\output\Release\ - TRACE true - true - pdbonly - x86 - prompt - 4 - - ..\packages\RelaxNG.3.2.3\lib\net40\Commons.Xml.Relaxng.dll - - - ..\packages\DialogAdapters.Gtk2.0.1.9\lib\net461\DialogAdapters.dll - - - ..\packages\Enchant.Net.1.4.2\lib\net461\Enchant.Net.dll - - - ..\packages\icu.net.2.7.1\lib\net451\icu.net.dll - - - ..\packages\JetBrains.Annotations.2021.2.0\lib\net20\JetBrains.Annotations.dll - - - ..\packages\L10NSharp.5.0.0-beta0086\lib\net461\L10NSharp.dll - - - ..\packages\Markdig.Signed.0.22.0\lib\net452\Markdig.Signed.dll - - - ..\packages\Microsoft.DotNet.PlatformAbstractions.2.0.4\lib\net45\Microsoft.DotNet.PlatformAbstractions.dll - - - ..\packages\Microsoft.Extensions.DependencyModel.2.0.4\lib\net451\Microsoft.Extensions.DependencyModel.dll - - - PreserveNewest - - - ..\packages\Mono.Addins.1.3.8\lib\net45\Mono.Addins.dll - - - ..\packages\NDesk.DBus.0.15.0\lib\NDesk.DBus.dll - - - False - ..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll - - - ..\packages\SIL.Core.9.0.0-beta0154\lib\net461\SIL.Core.dll - - - ..\packages\SIL.Core.Desktop.9.0.0-beta0154\lib\net461\SIL.Core.Desktop.dll - - - ..\packages\SIL.DictionaryServices.9.0.0-beta0154\lib\net461\SIL.DictionaryServices.dll - - - ..\packages\SIL.Lexicon.9.0.0-beta0154\lib\net461\SIL.Lexicon.dll - - - ..\packages\SIL.Lift.9.0.0-beta0154\lib\net461\SIL.Lift.dll - - - ..\packages\SIL.Windows.Forms.9.0.0-beta0154\lib\net461\SIL.Windows.Forms.dll - - - ..\packages\SIL.WritingSystems.9.0.0-beta0154\lib\net461\SIL.WritingSystems.dll - - - ..\packages\Spart.1.0.0\lib\net461\Spart.dll - - - - ..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll - - - - 3.5 - - - - - ..\packages\System.IO.FileSystem.AccessControl.4.7.0\lib\net461\System.IO.FileSystem.AccessControl.dll - - - - ..\packages\System.Memory.4.5.4\lib\net461\System.Memory.dll - - - - ..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll - - - ..\packages\System.Runtime.CompilerServices.Unsafe.4.5.3\lib\net461\System.Runtime.CompilerServices.Unsafe.dll - - - - ..\packages\System.Security.AccessControl.4.7.0\lib\net461\System.Security.AccessControl.dll - - - ..\packages\System.Security.Principal.Windows.4.7.0\lib\net461\System.Security.Principal.Windows.dll - - - - ..\packages\System.ValueTuple.4.5.0\lib\net461\System.ValueTuple.dll - - - - - - ..\packages\SharpZipLib.0.86.0\lib\20\ICSharpCode.SharpZipLib.dll - - - ..\packages\TagLibSharp.2.2.0\lib\net45\TagLibSharp.dll - + + + + + - - Form - - - LameProgressDialog.cs - - - Form - - - AboutMakePdfDictionary.cs - - - - Form - - - AboutLexiquePro.cs - - - - - - - - - - - - PreserveNewest - True - True - Resources.resx - - - Form - - - SFMChangesDialog.cs - - - - - - - - - - - {5F61C809-B6C0-4567-9603-B2198E1AD038} - LexicalModel - - - {E651E83C-94DD-4D6D-ABA2-C9FDA34FBA55} - WeSay.AddinLib - - - {600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD} - WeSay.Data - - - {F12EB680-0990-4900-B77E-0FBF2E28A815} - WeSay.Foundation - - - {5CFD0BB3-5B2A-4911-B220-9C2286151BF0} - WeSay.Project - - - - - Designer - ResXFileCodeGenerator - Resources.Designer.cs - - - SFMChangesDialog.cs - Designer - Always - - LameProgressDialog.cs - Designer - - - AboutLexiquePro.cs - Designer - Always - - AboutMakePdfDictionary.cs - Designer - PreserveNewest - - - - - - - - - - - - - PreserveNewest + - - False - .NET Framework 3.5 SP1 Client Profile - false - - - False - .NET Framework 3.5 SP1 - true - - - False - Windows Installer 3.1 - true - + + + $(PkgSIL_Windows_Forms)\lib\net461\SIL.Windows.Forms.dll + - - - - - - - - - - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/Addin.Transform/LiftTransformer.cs b/src/Addin.Transform/LiftTransformer.cs index bf5aabcad..de93f429a 100644 --- a/src/Addin.Transform/LiftTransformer.cs +++ b/src/Addin.Transform/LiftTransformer.cs @@ -265,18 +265,6 @@ private static void OnDoTransformWork(object sender, DoWorkEventArgs args) progressState.WriteToLog(err.Message); progressState.State = ProgressState.StateValue.StoppedWithError; } - finally - { - if (transform != null) - { - progressState.StatusLabel = "Cleaning up..."; - TempFileCollection tempfiles = transform.TemporaryFiles; - if (tempfiles != null) // tempfiles will be null when debugging is not enabled - { - tempfiles.Delete(); - } - } - } } private static void OnXsltMessageEncountered(object sender, diff --git a/src/Addin.Transform/Properties/AssemblyInfo.cs b/src/Addin.Transform/Properties/AssemblyInfo.cs deleted file mode 100644 index 49cdcbb94..000000000 --- a/src/Addin.Transform/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,41 +0,0 @@ -using Mono.Addins; -using System.Reflection; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. - -[assembly: AssemblyTitle("Addin.XSLT")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("SIL")] -[assembly: AssemblyProduct("Addin.XSLT")] -[assembly: AssemblyCopyright("Copyright © SIL 2007")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. - -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM - -[assembly: Guid("a8757a37-99f8-4d54-a662-e7e6fdf666e0")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Revision and Build Numbers -// by using the '*' as shown below: - -[assembly: AssemblyVersion("1.9.0.10")] -[assembly: AssemblyFileVersion("1.9.0.10")] -[assembly: Addin] -[assembly: AddinDependency("WeSay.AddinLib", "1.0")] \ No newline at end of file diff --git a/src/Addin.Transform/packages.config b/src/Addin.Transform/packages.config deleted file mode 100644 index bd805a407..000000000 --- a/src/Addin.Transform/packages.config +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/CommonTools.Tests/CommonTools.Tests.csproj b/src/CommonTools.Tests/CommonTools.Tests.csproj index 78007716e..1a49e701e 100644 --- a/src/CommonTools.Tests/CommonTools.Tests.csproj +++ b/src/CommonTools.Tests/CommonTools.Tests.csproj @@ -34,7 +34,7 @@ - ..\packages\NUnit.3.13.1\lib\net45\nunit.framework.dll + ..\..\packages\NUnit.3.13.1\lib\net45\nunit.framework.dll diff --git a/src/CommonTools/CommonTools.csproj b/src/CommonTools/CommonTools.csproj index da968d4aa..474c81bb2 100644 --- a/src/CommonTools/CommonTools.csproj +++ b/src/CommonTools/CommonTools.csproj @@ -51,15 +51,15 @@ .exe - ..\packages\Mono.Addins.1.2\lib\net40\Mono.Addins.dll + ..\..\packages\Mono.Addins.1.2\lib\net40\Mono.Addins.dll False - ..\packages\SIL.Core.9.0.0-beta0154\lib\net461\SIL.Core.dll + ..\..\packages\SIL.Core.9.0.0-beta0154\lib\net461\SIL.Core.dll False - ..\packages\SIL.Windows.Forms.9.0.0-beta0154\lib\net461\SIL.Windows.Forms.dll + ..\..\packages\SIL.Windows.Forms.9.0.0-beta0154\lib\net461\SIL.Windows.Forms.dll diff --git a/src/Language/Language.csproj b/src/Language/Language.csproj index 7f0e254d2..142ca9c56 100644 --- a/src/Language/Language.csproj +++ b/src/Language/Language.csproj @@ -30,7 +30,7 @@ False - ../packages/NetReflector.1.1.2009/lib/net20/NetReflector.dll + ../../packages/NetReflector.1.1.2009/lib/net20/NetReflector.dll diff --git a/src/LexicalModel.Tests/LexEntryRepositoryCachingTests.cs b/src/LexicalModel.Tests/LexEntryRepositoryCachingTests.cs index 474e0eeaf..472952f6d 100644 --- a/src/LexicalModel.Tests/LexEntryRepositoryCachingTests.cs +++ b/src/LexicalModel.Tests/LexEntryRepositoryCachingTests.cs @@ -29,8 +29,8 @@ public void OneTimeTeardown() [SetUp] public void Setup() { - _tempfolder = new TemporaryFolder(); - string persistedFilePath = _tempfolder.GetTemporaryFile(); + _tempfolder = new TemporaryFolder("LexEntryRepositoryCachingTests"); + string persistedFilePath = _tempfolder.GetNewTempFile(false).Path; _repository = new LexEntryRepository(persistedFilePath); } @@ -38,6 +38,7 @@ public void Setup() public void Teardown() { _repository.Dispose(); + _repository.Dispose(); //added in dotnet8 conversion } [Test] diff --git a/src/LexicalModel.Tests/LexEntryRepositoryCreateItemTransitionTests.cs b/src/LexicalModel.Tests/LexEntryRepositoryCreateItemTransitionTests.cs index a67aa38ea..a49b2a819 100644 --- a/src/LexicalModel.Tests/LexEntryRepositoryCreateItemTransitionTests.cs +++ b/src/LexicalModel.Tests/LexEntryRepositoryCreateItemTransitionTests.cs @@ -21,8 +21,8 @@ public LexEntryRepositoryCreateItemTransitionTests() [SetUp] public override void SetUp() { - _tempFolder = new TemporaryFolder(); - _persistedFilePath = _tempFolder.GetTemporaryFile(); + _tempFolder = new TemporaryFolder("LexEntryRepositoryCreateItemTransitionTests"); + _persistedFilePath = _tempFolder.GetNewTempFile(false).Path; DataMapperUnderTest = new LexEntryRepository(_persistedFilePath); } @@ -30,7 +30,7 @@ public override void SetUp() public override void TearDown() { DataMapperUnderTest.Dispose(); - _tempFolder.Delete(); + _tempFolder.Dispose(); } [Test] diff --git a/src/LexicalModel.Tests/LexEntryRepositoryCreatedFromPersistedData.cs b/src/LexicalModel.Tests/LexEntryRepositoryCreatedFromPersistedData.cs index fa84adced..0831043e4 100644 --- a/src/LexicalModel.Tests/LexEntryRepositoryCreatedFromPersistedData.cs +++ b/src/LexicalModel.Tests/LexEntryRepositoryCreatedFromPersistedData.cs @@ -53,7 +53,7 @@ public class LexEntryRepositoryCreatedFromPersistedData : public override void SetUp() { _tempFolder = new TemporaryFolder("LexEntryRepositoryCreatedFromPersistedData"); - _persistedFilePath = LiftFileInitializer.MakeFile(_tempFolder.GetTemporaryFile()); + _persistedFilePath = LiftFileInitializer.MakeFile(_tempFolder.GetNewTempFile(false).Path); DataMapperUnderTest = new LexEntryRepository(_persistedFilePath); } @@ -61,7 +61,7 @@ public override void SetUp() public override void TearDown() { DataMapperUnderTest.Dispose(); - _tempFolder.Delete(); + _tempFolder.Dispose(); } [Test] diff --git a/src/LexicalModel.Tests/LexEntryRepositoryDeleteAllItemsTransitionTests.cs b/src/LexicalModel.Tests/LexEntryRepositoryDeleteAllItemsTransitionTests.cs index 05c36687d..265acd316 100644 --- a/src/LexicalModel.Tests/LexEntryRepositoryDeleteAllItemsTransitionTests.cs +++ b/src/LexicalModel.Tests/LexEntryRepositoryDeleteAllItemsTransitionTests.cs @@ -16,7 +16,7 @@ public class LexEntryRepositoryDeleteAllItemsTransitionTests : public override void SetUp() { _tempFolder = new TemporaryFolder("LexEntryRepositoryDeleteAllItemsTransitionTests"); - _persistedFilePath = _tempFolder.GetTemporaryFile(); + _persistedFilePath = _tempFolder.GetNewTempFile(false).Path; DataMapperUnderTest = new LexEntryRepository(_persistedFilePath); } @@ -24,7 +24,7 @@ public override void SetUp() public override void TearDown() { DataMapperUnderTest.Dispose(); - _tempFolder.Delete(); + _tempFolder.Dispose(); } protected override void RepopulateRepositoryFromPersistedData() diff --git a/src/LexicalModel.Tests/LexEntryRepositoryDeleteIdTransitionTests.cs b/src/LexicalModel.Tests/LexEntryRepositoryDeleteIdTransitionTests.cs index 46fda71cc..ffdcaf619 100644 --- a/src/LexicalModel.Tests/LexEntryRepositoryDeleteIdTransitionTests.cs +++ b/src/LexicalModel.Tests/LexEntryRepositoryDeleteIdTransitionTests.cs @@ -30,7 +30,7 @@ public override void SetUp() public override void TearDown() { DataMapperUnderTest.Dispose(); - _tempFolder.Delete(); + _tempFolder.Dispose(); } [Test] diff --git a/src/LexicalModel.Tests/LexEntryRepositoryDeleteItemTransitionTests.cs b/src/LexicalModel.Tests/LexEntryRepositoryDeleteItemTransitionTests.cs index 5f88cd177..7ab066305 100644 --- a/src/LexicalModel.Tests/LexEntryRepositoryDeleteItemTransitionTests.cs +++ b/src/LexicalModel.Tests/LexEntryRepositoryDeleteItemTransitionTests.cs @@ -27,7 +27,7 @@ public override void SetUp() public override void TearDown() { DataMapperUnderTest.Dispose(); - _tempFolder.Delete(); + _tempFolder.Dispose(); } [Test] diff --git a/src/LexicalModel.Tests/LexEntryRepositoryTests.cs b/src/LexicalModel.Tests/LexEntryRepositoryTests.cs index 3cf6eb28c..c832869b4 100644 --- a/src/LexicalModel.Tests/LexEntryRepositoryTests.cs +++ b/src/LexicalModel.Tests/LexEntryRepositoryTests.cs @@ -46,7 +46,7 @@ public void Setup() public void TearDown() { _lexEntryRepository.Dispose(); - _temporaryFolder.Delete(); + _temporaryFolder.Dispose(); } private void MakeTestLexEntry(string writingSystemId, string lexicalForm) diff --git a/src/LexicalModel.Tests/LexEntryRepository_GetMissingItemTests.cs b/src/LexicalModel.Tests/LexEntryRepository_GetMissingItemTests.cs index 308bd67b5..f531ce65e 100644 --- a/src/LexicalModel.Tests/LexEntryRepository_GetMissingItemTests.cs +++ b/src/LexicalModel.Tests/LexEntryRepository_GetMissingItemTests.cs @@ -35,8 +35,8 @@ public void Setup() { DefaultCollation = new IcuRulesCollationDefinition("standard") }; - _temporaryFolder = new TemporaryFolder(); - string filePath = _temporaryFolder.GetTemporaryFile(); + _temporaryFolder = new TemporaryFolder("LexEntryRepository_GetMissingItemTests"); + string filePath = _temporaryFolder.GetNewTempFile(false).Path; _lexEntryRepository = new LexEntryRepository(filePath); } @@ -44,7 +44,7 @@ public void Setup() public void TearDown() { _lexEntryRepository.Dispose(); - _temporaryFolder.Delete(); + _temporaryFolder.Dispose(); } private void CreateLexentryWithOnlyCitationForm(string citationForm, string writingSystemId) @@ -247,8 +247,8 @@ private class TestEnvironment : IDisposable public TestEnvironment() { - _temporaryFolder = new TemporaryFolder(); - string filePath = _temporaryFolder.GetTemporaryFile(); + _temporaryFolder = new TemporaryFolder("LexEntryRepository_GetMissingItemTests"); + string filePath = _temporaryFolder.GetNewTempFile(false).Path; _repository = new LexEntryRepository(filePath); } @@ -286,7 +286,7 @@ private LexEntry CreateEntryWithDefinitionAndWs(IEnumerable populatedWri public void Dispose() { _repository.Dispose(); - _temporaryFolder.Delete(); + _temporaryFolder.Dispose(); } } diff --git a/src/LexicalModel.Tests/LexicalModel.Tests.csproj b/src/LexicalModel.Tests/LexicalModel.Tests.csproj index ae7be6527..647a14101 100755 --- a/src/LexicalModel.Tests/LexicalModel.Tests.csproj +++ b/src/LexicalModel.Tests/LexicalModel.Tests.csproj @@ -1,245 +1,81 @@ - - - + - Debug - AnyCPU - 9.0.21022 - 2.0 - {123D695C-0D5D-46E5-893F-39EC4E0B01B8} + net8.0-windows Library - Properties WeSay.LexicalModel.Tests - LexicalModel.Tests ..\AppForTests.config - - - - - 3.5 - v4.6.1 - - - + false + true + true - true - full - false ..\..\output\Debug\ - DEBUG;TRACE - prompt - 4 Library - LexicalModel.Tests WeSay.LexicalModel.Tests - false true - x86 - pdbonly - true ..\..\output\Release\ - TRACE - prompt - 4 Library - LexicalModel.Tests true WeSay.LexicalModel.Tests - false true - true ..\..\output\Debug\ - DEBUG;TRACE true - full - x86 - prompt true ..\..\output\Release\ - TRACE true - true - pdbonly - x86 - prompt - - ..\packages\RelaxNG.3.2.3\lib\net40\Commons.Xml.Relaxng.dll - - - False - ..\packages\Enchant.Net.1.4.2\lib\net461\Enchant.Net.dll - - - False - ..\packages\icu.net.2.7.1\lib\net451\icu.net.dll - - - ..\packages\Microsoft.DotNet.PlatformAbstractions.2.0.4\lib\net45\Microsoft.DotNet.PlatformAbstractions.dll - - - ..\packages\Microsoft.Extensions.DependencyModel.2.0.4\lib\net451\Microsoft.Extensions.DependencyModel.dll - - - ..\packages\NDesk.DBus.0.15.0\lib\NDesk.DBus.dll - - - False - ../packages/NetReflector.1.1.2009/lib/net20/NetReflector.dll - - - False - ..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll - - - False - ..\packages\NUnit.3.13.1\lib\net45\nunit.framework.dll - - - PreserveNewest - - - ..\packages\SIL.Core.9.0.0-beta0154\lib\net461\SIL.Core.dll - - - ..\packages\SIL.Core.Desktop.9.0.0-beta0154\lib\net461\SIL.Core.Desktop.dll - - - ..\packages\SIL.Core.Tests.9.0.0-beta0154\lib\net461\SIL.Core.Tests.dll - - - ..\packages\SIL.DictionaryServices.9.0.0-beta0154\lib\net461\SIL.DictionaryServices.dll - - - ..\packages\SIL.Lexicon.9.0.0-beta0154\lib\net461\SIL.Lexicon.dll - - - ..\packages\SIL.Lift.9.0.0-beta0154\lib\net461\SIL.Lift.dll - - - ..\packages\SIL.TestUtilities.9.0.0-beta0154\lib\net461\SIL.TestUtilities.dll - - - ..\packages\SIL.WritingSystems.9.0.0-beta0154\lib\net461\SIL.WritingSystems.dll - - - ..\packages\SIL.WritingSystems.Tests.9.0.0-beta0154\lib\net461\SIL.WritingSystems.Tests.dll - - - ..\packages\Spart.1.0.0\lib\net461\Spart.dll - - - - - 3.5 - - - - - ..\packages\System.IO.FileSystem.AccessControl.4.7.0\lib\net461\System.IO.FileSystem.AccessControl.dll - - - - - ..\packages\System.Security.AccessControl.4.7.0\lib\net461\System.Security.AccessControl.dll - - - ..\packages\System.Security.Principal.Windows.4.7.0\lib\net461\System.Security.Principal.Windows.dll - - - ..\packages\System.ValueTuple.4.5.0\lib\net461\System.ValueTuple.dll - - - - - - - - - - - - TestResources.resx - True - True - - - - - - - - - - - - - - - - + + + + + - - {5F61C809-B6C0-4567-9603-B2198E1AD038} - LexicalModel - - - {8491FEEE-C311-4B64-BB30-A1F1C1802F45} - WeSay.Data.Tests - - - {600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD} - WeSay.Data - - - {F644C902-A952-4797-9E2D-19D6051DD032} - WeSay.Project.Tests - - - {5CFD0BB3-5B2A-4911-B220-9C2286151BF0} - WeSay.Project - + - - ResXFileCodeGenerator - TestResources.Designer.cs - Designer - + - + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + $(PkgSIL_Core_Tests)\lib\net461\SIL.Core.Tests.dll + - + + + + + + + + + + + + + + + + + + + + + + - - - - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - - - - - - - \ No newline at end of file diff --git a/src/LexicalModel.Tests/Properties/AssemblyInfo.cs b/src/LexicalModel.Tests/Properties/AssemblyInfo.cs deleted file mode 100644 index 983eb46c2..000000000 --- a/src/LexicalModel.Tests/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,38 +0,0 @@ -using System.Reflection; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. - -[assembly: AssemblyTitle("LexicalModel.Tests")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("WeSay.Tests")] -[assembly: AssemblyCopyright("")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. - -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM - -[assembly: Guid("052ecd1b-d5d4-40a4-ad84-412e7fb43f63")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Revision and Build Numbers -// by using the '*' as shown below: - -[assembly: AssemblyVersion("1.9.0.10")] -[assembly: AssemblyFileVersion("1.9.0.10")] \ No newline at end of file diff --git a/src/LexicalModel.Tests/packages.config b/src/LexicalModel.Tests/packages.config deleted file mode 100644 index 354586863..000000000 --- a/src/LexicalModel.Tests/packages.config +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/LexicalModel/Foundation/Options/DdpOptionDisplayAdaptor.cs b/src/LexicalModel/Foundation/Options/DdpOptionDisplayAdaptor.cs index 308042b60..5d6868815 100644 --- a/src/LexicalModel/Foundation/Options/DdpOptionDisplayAdaptor.cs +++ b/src/LexicalModel/Foundation/Options/DdpOptionDisplayAdaptor.cs @@ -3,7 +3,6 @@ namespace WeSay.LexicalModel.Foundation.Options { - [CLSCompliant(false)] public class DdpOptionDisplayAdaptor : OptionDisplayAdaptor { public DdpOptionDisplayAdaptor(OptionsList allOptions, string preferredWritingSystemId) diff --git a/src/LexicalModel/Foundation/Options/OptionDisplayAdaptor.cs b/src/LexicalModel/Foundation/Options/OptionDisplayAdaptor.cs index 3a7647745..0607ef1e1 100644 --- a/src/LexicalModel/Foundation/Options/OptionDisplayAdaptor.cs +++ b/src/LexicalModel/Foundation/Options/OptionDisplayAdaptor.cs @@ -7,7 +7,6 @@ namespace WeSay.LexicalModel.Foundation.Options { - [CLSCompliant(false)] public class OptionDisplayAdaptor : IChoiceSystemAdaptor { protected readonly OptionsList _allOptions; diff --git a/src/LexicalModel/Foundation/SpellCheckerIdToDisplayStringConverter.cs b/src/LexicalModel/Foundation/SpellCheckerIdToDisplayStringConverter.cs index fbfcf3304..4217078a3 100644 --- a/src/LexicalModel/Foundation/SpellCheckerIdToDisplayStringConverter.cs +++ b/src/LexicalModel/Foundation/SpellCheckerIdToDisplayStringConverter.cs @@ -77,9 +77,9 @@ public override object ConvertTo(ITypeDescriptorContext context, string id = valueAsString.Replace('_', '-'); CultureInfo cultureInfo = CultureInfo.GetCultureInfoByIetfLanguageTag(id); // Windows 10 doesn't throw an exception if id is unknown but instead makes - // the NativeName be of the form "Unknown Locale (id)" where id is in form xx-YY - // The "Unknown locale" message may be localised so look for the lower cased id - if (cultureInfo.NativeName.ToLower().Contains(id.ToLower())) + // the CultureType will have a custom culture flag, and the ThreeLetterWindowsLanguageName will be ZZZ + // this should work on older windows systems, but we don't have a way to confirm that. + if (cultureInfo.CultureTypes.HasFlag(CultureTypes.UserCustomCulture) && cultureInfo.ThreeLetterWindowsLanguageName == "ZZZ") { display = valueAsString; } diff --git a/src/LexicalModel/LexicalModel.csproj b/src/LexicalModel/LexicalModel.csproj index 319c290e8..9181072c5 100755 --- a/src/LexicalModel/LexicalModel.csproj +++ b/src/LexicalModel/LexicalModel.csproj @@ -1,236 +1,72 @@ - - + - Debug - AnyCPU - 9.0.21022 - 2.0 - {5F61C809-B6C0-4567-9603-B2198E1AD038} + net8.0-windows Library - Properties WeSay.LexicalModel - LexicalModel - - - - - 3.5 - v4.6.1 - - - + false + true + true - true - full - false ..\..\output\Debug\ - DEBUG;TRACE - prompt - 4 Library WeSay.LexicalModel - - - - - - pdbonly - true ..\..\output\Release\ - TRACE - prompt - 4 Library true WeSay.LexicalModel - true ..\..\output\Debug\ - DEBUG;TRACE - full - x86 - prompt - 4 - false true ..\..\output\Release\ - TRACE - true - pdbonly - x86 - prompt - 4 - - ..\packages\Autofac.4.1.1\lib\net45\Autofac.dll - - - False - ..\packages\SIL.Chorus.App.LibChorus.5.0.0-beta0017\lib\net461\Chorus.exe - - - ..\packages\RelaxNG.3.2.3\lib\net40\Commons.Xml.Relaxng.dll - - - - False - ..\packages\Enchant.Net.1.4.2\lib\net461\Enchant.Net.dll - - - ..\packages\icu.net.2.7.1\lib\net451\icu.net.dll - - - ..\packages\L10NSharp.5.0.0-beta0086\lib\net461\L10NSharp.dll - - - ..\packages\SIL.Chorus.LibChorus.5.0.0-beta0017\lib\net461\LibChorus.dll - - - ..\packages\Microsoft.Bcl.AsyncInterfaces.5.0.0\lib\net461\Microsoft.Bcl.AsyncInterfaces.dll - - - ..\packages\Microsoft.DotNet.PlatformAbstractions.2.0.4\lib\net45\Microsoft.DotNet.PlatformAbstractions.dll - - - ..\packages\Microsoft.Extensions.DependencyModel.2.0.4\lib\net451\Microsoft.Extensions.DependencyModel.dll - - - False - ..\packages\NDesk.DBus.0.15.0\lib\NDesk.DBus.dll - - - False - ../packages/NetReflector.1.1.2009/lib/net20/NetReflector.dll - - - False - ..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll - - - ..\packages\SIL.Core.9.0.0-beta0154\lib\net461\SIL.Core.dll - - - ..\packages\SIL.Core.Desktop.9.0.0-beta0154\lib\net461\SIL.Core.Desktop.dll - - - ..\packages\SIL.DictionaryServices.9.0.0-beta0154\lib\net461\SIL.DictionaryServices.dll - - - ..\packages\SIL.Lift.9.0.0-beta0154\lib\net461\SIL.Lift.dll - - - ..\packages\SIL.Windows.Forms.Keyboarding.9.0.0-beta0154\lib\net461\SIL.Windows.Forms.Keyboarding.dll - - - ..\packages\SIL.Windows.Forms.WritingSystems.9.0.0-beta0154\lib\net461\SIL.Windows.Forms.WritingSystems.dll - - - ..\packages\SIL.WritingSystems.9.0.0-beta0154\lib\net461\SIL.WritingSystems.dll - - - ..\packages\Spart.1.0.0\lib\net461\Spart.dll - - - - ..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll - - - - - - ..\packages\System.Diagnostics.DiagnosticSource.4.7.1\lib\net46\System.Diagnostics.DiagnosticSource.dll - - - - ..\packages\System.IO.FileSystem.AccessControl.4.7.0\lib\net461\System.IO.FileSystem.AccessControl.dll - - - - ..\packages\System.Memory.4.5.4\lib\net461\System.Memory.dll - - - - ..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll - - - ..\packages\System.Runtime.CompilerServices.Unsafe.4.5.3\lib\net461\System.Runtime.CompilerServices.Unsafe.dll - - - - ..\packages\System.Security.AccessControl.4.7.0\lib\net461\System.Security.AccessControl.dll - - - ..\packages\System.Security.Principal.Windows.4.7.0\lib\net461\System.Security.Principal.Windows.dll - - - - ..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll - - - ..\packages\System.ValueTuple.4.5.0\lib\net461\System.ValueTuple.dll - - - - - - False - ..\packages\SIL.Media.9.0.0-beta0154\build\lib\win-x86\irrKlang.NET4.dll - - - 3.5 - + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - {600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD} - WeSay.Data - + + + - - - {5F61C809-B6C0-4567-9603-B2198E1AD038} WeSay.LexicalModel - - - - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - - - - \ No newline at end of file diff --git a/src/LexicalModel/Properties/AssemblyInfo.cs b/src/LexicalModel/Properties/AssemblyInfo.cs deleted file mode 100644 index 96339a7bb..000000000 --- a/src/LexicalModel/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,44 +0,0 @@ -using System; -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Security.Permissions; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. - -[assembly: AssemblyTitle("LexicalModel")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("WeSay")] -[assembly: AssemblyProduct("WeSay")] -[assembly: AssemblyCopyright("")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. - -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM - -[assembly: Guid("ed11559b-b21b-4db2-8358-5b343da0db47")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Revision and Build Numbers -// by using the '*' as shown below: - -[assembly: AssemblyVersion("1.9.0.10")] -[assembly: AssemblyFileVersion("1.9.0.10")] -[assembly: CLSCompliant(true)] -[assembly: InternalsVisibleTo("LexicalModel.Tests")] -[assembly: SecurityPermission(SecurityAction.RequestMinimum, Execution = true)] \ No newline at end of file diff --git a/src/LexicalModel/packages.config b/src/LexicalModel/packages.config deleted file mode 100644 index a8089fbce..000000000 --- a/src/LexicalModel/packages.config +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/LexicalTools.Tests/DashBoardTests.cs b/src/LexicalTools.Tests/DashBoardTests.cs index 13fc0f8dc..ee717e835 100644 --- a/src/LexicalTools.Tests/DashBoardTests.cs +++ b/src/LexicalTools.Tests/DashBoardTests.cs @@ -19,8 +19,8 @@ public class DashBoardTests [SetUp] public void Setup() { - _tempFolder = new TemporaryFolder(); - _filePath = _tempFolder.GetTemporaryFile(); + _tempFolder = new TemporaryFolder("DashBoardTests"); + _filePath = _tempFolder.GetPathForNewTempFile(false); _lexEntryRepository = new LexEntryRepository(_filePath); Form window = new Form(); @@ -41,7 +41,7 @@ public void Setup() public void Teardown() { _lexEntryRepository.Dispose(); - _tempFolder.Delete(); + _tempFolder.Dispose(); } [Test] diff --git a/src/LexicalTools.Tests/DictionaryTaskTests.cs b/src/LexicalTools.Tests/DictionaryTaskTests.cs index da7bbc6d2..5927043d6 100644 --- a/src/LexicalTools.Tests/DictionaryTaskTests.cs +++ b/src/LexicalTools.Tests/DictionaryTaskTests.cs @@ -37,8 +37,8 @@ public void FixtureTeardown() [SetUp] public void Setup() { - _tempFolder = new TemporaryFolder(); - _filePath = _tempFolder.GetTemporaryFile(); + _tempFolder = new TemporaryFolder("DictionaryTaskTests"); + _filePath = _tempFolder.GetPathForNewTempFile(false); WeSayProjectTestHelper.InitializeForTests(); string[] vernacularWritingSystemIds = new string[] diff --git a/src/LexicalTools.Tests/EntryViewControlTests.cs b/src/LexicalTools.Tests/EntryViewControlTests.cs index fad9ca521..c12df5311 100644 --- a/src/LexicalTools.Tests/EntryViewControlTests.cs +++ b/src/LexicalTools.Tests/EntryViewControlTests.cs @@ -48,8 +48,8 @@ public void SetUp() { WeSayProjectTestHelper.InitializeForTests(); - _tempFolder = new TemporaryFolder(); - _filePath = _tempFolder.GetTemporaryFile(); + _tempFolder = new TemporaryFolder("EntryViewControlTests"); + _filePath = _tempFolder.GetPathForNewTempFile(false); _lexEntryRepository = new LexEntryRepository(_filePath); #if GlossMeaning @@ -100,7 +100,7 @@ public void TearDown() } if (_tempFolder != null) { - _tempFolder.Delete(); + _tempFolder.Dispose(); } WeSayProjectTestHelper.CleanupForTests(); } diff --git a/src/LexicalTools.Tests/GatherBySemanticDomainTaskTests.cs b/src/LexicalTools.Tests/GatherBySemanticDomainTaskTests.cs index c7abdc53a..1a15ddfc2 100644 --- a/src/LexicalTools.Tests/GatherBySemanticDomainTaskTests.cs +++ b/src/LexicalTools.Tests/GatherBySemanticDomainTaskTests.cs @@ -48,9 +48,9 @@ public void Setup() WeSayProjectTestHelper.InitializeForTests(); WeSayWordsProject.Project.RemoveCache(); - _tempFolder = new TemporaryFolder(); - _filePath = _tempFolder.GetTemporaryFile(); - _semanticDomainFilePath = _tempFolder.GetTemporaryFile(); + _tempFolder = new TemporaryFolder("GatherBySemanticDomainsTaskTests"); + _filePath = _tempFolder.GetPathForNewTempFile(false); + _semanticDomainFilePath = _tempFolder.GetPathForNewTempFile(false); _lexEntryRepository = new LexEntryRepository(_filePath); _viewTemplate = MakeViewTemplate("en"); @@ -121,7 +121,7 @@ public void TearDown() } if (_tempFolder != null) { - _tempFolder.Delete(); + _tempFolder.Dispose(); } WeSayProjectTestHelper.CleanupForTests(); } diff --git a/src/LexicalTools.Tests/GatherWordListTaskTests.cs b/src/LexicalTools.Tests/GatherWordListTaskTests.cs index 376da08e9..18d674981 100644 --- a/src/LexicalTools.Tests/GatherWordListTaskTests.cs +++ b/src/LexicalTools.Tests/GatherWordListTaskTests.cs @@ -48,10 +48,10 @@ public void Setup() _vernacularLanguageWSId = WritingSystemsIdsForTests.VernacularIdForTest; BasilProject.Project.WritingSystems.Set(new WritingSystemDefinition("fr")); - _tempFolder = new TemporaryFolder(); - _simpleWordListFilePath = _tempFolder.GetTemporaryFile(); + _tempFolder = new TemporaryFolder("GatherWordListTaskTests"); + _simpleWordListFilePath = _tempFolder.GetPathForNewTempFile(false); // _liftWordListFile = new TempLiftFile("wordlist.lift",_tempFolder, LiftXml, LiftIO.Validation.Validator.LiftVersion); - _filePath = _tempFolder.GetTemporaryFile(); + _filePath = _tempFolder.GetPathForNewTempFile(false); _lexEntryRepository = new LexEntryRepository(_filePath); // InMemoryRecordListManager(); File.WriteAllLines(_simpleWordListFilePath, _words); @@ -148,7 +148,7 @@ public void TearDown() } if (_tempFolder != null) { - _tempFolder.Delete(); + _tempFolder.Dispose(); } WeSayProjectTestHelper.CleanupForTests(); } diff --git a/src/LexicalTools.Tests/HtmlRendererTests.cs b/src/LexicalTools.Tests/HtmlRendererTests.cs index 6eed4d5bd..cfaffd456 100644 --- a/src/LexicalTools.Tests/HtmlRendererTests.cs +++ b/src/LexicalTools.Tests/HtmlRendererTests.cs @@ -55,7 +55,7 @@ public void TearDown() { _lexEntryRepository.Dispose(); } - _tempFolder.Delete(); + _tempFolder.Dispose(); Sldr.Cleanup(); } @@ -95,8 +95,8 @@ public void HomographEntryTest() private void SetupTestData() { ErrorReport.IsOkToInteractWithUser = false; - _tempFolder = new TemporaryFolder(); - _filePath = _tempFolder.GetTemporaryFile(); + _tempFolder = new TemporaryFolder("HtmlRendererTests"); + _filePath = _tempFolder.GetPathForNewTempFile(false); _currentItem = null; string lexicalForm = "test"; diff --git a/src/LexicalTools.Tests/LexicalTools.Tests.csproj b/src/LexicalTools.Tests/LexicalTools.Tests.csproj index 9ac5e56b2..40b1932c7 100755 --- a/src/LexicalTools.Tests/LexicalTools.Tests.csproj +++ b/src/LexicalTools.Tests/LexicalTools.Tests.csproj @@ -1,303 +1,105 @@ - - - + - Debug - AnyCPU - 9.0.21022 - 2.0 - {9936180C-90A7-467C-B761-EC184EFE1F9F} + net8.0-windows Library - Properties WeSay.LexicalTools.Tests - LexicalTools.Tests ..\AppForTestsSTA.config - - - - - 3.5 - v4.6.1 - - - + false + true + true - true - full - false ..\..\output\Debug\ - DEBUG;TRACE - prompt - 4 Library - LexicalTools.Tests WeSay.LexicalTools.Tests - false true - x86 - pdbonly - true ..\..\output\Release\ - TRACE - prompt - 4 Library - LexicalTools.Tests true WeSay.LexicalTools.Tests - false true - true ..\..\output\Debug\ - DEBUG;TRACE true - full - x86 - prompt true ..\..\output\Release\ - TRACE true - true - pdbonly - x86 - prompt true - - ..\packages\Autofac.4.1.1\lib\net45\Autofac.dll - - - False - .exe - ..\packages\SIL.Chorus.App.5.0.0-beta0017\lib\net461\Chorus.exe - - - ..\packages\RelaxNG.3.2.3\lib\net40\Commons.Xml.Relaxng.dll - - - ..\packages\DialogAdapters.Gtk2.0.1.9\lib\net461\DialogAdapters.dll - - - ..\packages\Enchant.Net.1.4.2\lib\net461\Enchant.Net.dll - - - ..\packages\ibusdotnet.2.0.3\lib\net461\ibusdotnet.dll - - - False - ..\packages\icu.net.2.7.1\lib\net451\icu.net.dll - - - ..\packages\JetBrains.Annotations.2021.2.0\lib\net20\JetBrains.Annotations.dll - - - ..\packages\L10NSharp.5.0.0-beta0086\lib\net461\L10NSharp.dll - - - ..\packages\SIL.Chorus.LibChorus.5.0.0-beta0017\lib\net461\LibChorus.dll - - - ..\packages\Markdig.Signed.0.22.0\lib\net452\Markdig.Signed.dll - - - ..\packages\Microsoft.Bcl.AsyncInterfaces.5.0.0\lib\net461\Microsoft.Bcl.AsyncInterfaces.dll - - - ..\packages\Microsoft.DotNet.PlatformAbstractions.2.0.4\lib\net45\Microsoft.DotNet.PlatformAbstractions.dll - - - ..\packages\Microsoft.Extensions.DependencyModel.2.0.4\lib\net451\Microsoft.Extensions.DependencyModel.dll - - - - ..\packages\NDesk.DBus.0.15.0\lib\NDesk.DBus.dll - - - False - ..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll - - - False - ..\packages\NUnit.3.13.1\lib\net45\nunit.framework.dll - - - ..\packages\SIL.Core.9.0.0-beta0154\lib\net461\SIL.Core.dll - - - ..\packages\SIL.Core.Desktop.9.0.0-beta0154\lib\net461\SIL.Core.Desktop.dll - - - ..\packages\SIL.DictionaryServices.9.0.0-beta0154\lib\net461\SIL.DictionaryServices.dll - - - ..\packages\SIL.Lift.9.0.0-beta0154\lib\net461\SIL.Lift.dll - - - ..\packages\SIL.TestUtilities.9.0.0-beta0154\lib\net461\SIL.TestUtilities.dll - - - ..\packages\SIL.Windows.Forms.9.0.0-beta0154\lib\net461\SIL.Windows.Forms.dll - - - ..\packages\SIL.Windows.Forms.Keyboarding.9.0.0-beta0154\lib\net461\SIL.Windows.Forms.Keyboarding.dll - - - ..\packages\SIL.WritingSystems.9.0.0-beta0154\lib\net461\SIL.WritingSystems.dll - - - ..\packages\Spart.1.0.0\lib\net461\Spart.dll - - - - ..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll - - - - - 3.5 - - - - - ..\packages\System.IO.FileSystem.AccessControl.4.7.0\lib\net461\System.IO.FileSystem.AccessControl.dll - - - - ..\packages\System.Memory.4.5.4\lib\net461\System.Memory.dll - - - - ..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll - - - ..\packages\System.Runtime.CompilerServices.Unsafe.4.5.3\lib\net461\System.Runtime.CompilerServices.Unsafe.dll - - - - ..\packages\System.Security.AccessControl.4.7.0\lib\net461\System.Security.AccessControl.dll - - - ..\packages\System.Security.Principal.Windows.4.7.0\lib\net461\System.Security.Principal.Windows.dll - - - - ..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll - - - ..\packages\System.ValueTuple.4.5.0\lib\net461\System.ValueTuple.dll - - - - - - ..\packages\TagLibSharp.2.2.0\lib\net45\TagLibSharp.dll - + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + + + + + + + + + + + + - - {123D695C-0D5D-46E5-893F-39EC4E0B01B8} - LexicalModel.Tests - - - {5F61C809-B6C0-4567-9603-B2198E1AD038} - LexicalModel - - - {87AF0B02-2983-486D-857F-D1859535C234} - LexicalTools - - - {600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD} - WeSay.Data - - - {F12EB680-0990-4900-B77E-0FBF2E28A815} - WeSay.Foundation - - - {5CFD0BB3-5B2A-4911-B220-9C2286151BF0} - WeSay.Project - - - {FEC3014D-0067-4D59-A838-3B046EC3C352} - WeSay.TestUtilities - - - {AC8F284C-7B34-4AC9-A7DE-FAF765456DFF} - WeSay.UI - + - + - + + + $(PkgSIL_Windows_Forms)\lib\net461\SIL.Windows.Forms.dll + + + + $(PkgSIL_Windows_Forms_Keyboarding)\lib\net461\SIL.Windows.Forms.Keyboarding.dll + - + + + + + + + + + + + + + + + + + - - - - - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/LexicalTools.Tests/MissingEntryRelationFieldFilterTests.cs b/src/LexicalTools.Tests/MissingEntryRelationFieldFilterTests.cs index 82809cc81..402a4de2f 100644 --- a/src/LexicalTools.Tests/MissingEntryRelationFieldFilterTests.cs +++ b/src/LexicalTools.Tests/MissingEntryRelationFieldFilterTests.cs @@ -18,8 +18,8 @@ public class MissingEntryRelationFieldFilterTests [SetUp] public void Setup() { - _tempFolder = new TemporaryFolder(); - _filePath = _tempFolder.GetTemporaryFile(); + _tempFolder = new TemporaryFolder("MissingEntryRelationFieldFilterTests"); + _filePath = _tempFolder.GetPathForNewTempFile(false); _lexEntryRepository = new LexEntryRepository(_filePath); _target = _lexEntryRepository.CreateItem(); diff --git a/src/LexicalTools.Tests/MissingInfoControlTests.cs b/src/LexicalTools.Tests/MissingInfoControlTests.cs index 379d9b9e8..67ecc67c8 100644 --- a/src/LexicalTools.Tests/MissingInfoControlTests.cs +++ b/src/LexicalTools.Tests/MissingInfoControlTests.cs @@ -131,7 +131,7 @@ private static void AddTranslationToEntry(LexEntry entry, string translation) public void TearDown() { _lexEntryRepository?.Dispose(); - _tempFolder?.Delete(); + _tempFolder?.Dispose(); _tempFile?.Dispose(); WeSayProjectTestHelper.CleanupForTests(); } @@ -429,8 +429,8 @@ public void SetCurrentRecordToNext_ChangedSoNoLongerMeetsFilter_RemovedFromTodoA AddTranslationToEntry(missingInfoControl.CurrentEntry, "a bogus translation of example"); missingInfoControl.SetCurrentRecordToNext(); - Assert.IsFalse(missingInfoControl._todoRecordsListBox.DataSource.Contains(recordToMove)); - Assert.IsTrue(missingInfoControl._completedRecordsListBox.DataSource.Contains(recordToMove)); + Assert.IsFalse(missingInfoControl.TodoRecordsListBoxDataSourceContains(recordToMove)); + Assert.IsTrue(missingInfoControl.CompletedRecordsListBoxDataSourceContains(recordToMove)); #if Visual DebugShowState(missingInfoControl, currentRecord); #endif @@ -452,8 +452,8 @@ public void SetCurrentRecordToPrevious_ChangedSoNoLongerMeetsFilter_RemovedFromT AddTranslationToEntry(missingInfoControl.CurrentEntry, "a bogus translation of example"); missingInfoControl.SetCurrentRecordToPrevious(); - Assert.IsFalse(missingInfoControl._todoRecordsListBox.DataSource.Contains(recordToMove)); - Assert.IsTrue(missingInfoControl._completedRecordsListBox.DataSource.Contains(recordToMove)); + Assert.IsFalse(missingInfoControl.TodoRecordsListBoxDataSourceContains(recordToMove)); + Assert.IsTrue(missingInfoControl.CompletedRecordsListBoxDataSourceContains(recordToMove)); #if Visual DebugShowState(missingInfoControl, currentRecord); #endif @@ -505,9 +505,9 @@ public void ChangeSoMeetsFilter_AfterChangedSoNoLongerMeetsFilter_StaysHighlight AddTranslationToEntry(missingInfoControl.CurrentEntry, "a bogus translation of example"); AddTranslationToEntry(missingInfoControl.CurrentEntry, string.Empty); - Assert.AreEqual(missingInfoControl._todoRecordsListBox.SelectedItem, currentRecord); + Assert.AreEqual(missingInfoControl.TodoRecordsListBoxSelectedItem, currentRecord); Assert.IsFalse( - missingInfoControl._completedRecordsListBox.DataSource.Contains( + missingInfoControl.CompletedRecordsListBoxDataSourceContains( currentRecord)); #if Visual DebugShowState(missingInfoControl, currentRecord); diff --git a/src/LexicalTools.Tests/MissingInfoTaskTests.cs b/src/LexicalTools.Tests/MissingInfoTaskTests.cs index 731d325a2..a23300aac 100644 --- a/src/LexicalTools.Tests/MissingInfoTaskTests.cs +++ b/src/LexicalTools.Tests/MissingInfoTaskTests.cs @@ -45,8 +45,8 @@ public void FixtureTearDown() [SetUp] public void Setup() { - _tempFolder = new TemporaryFolder(); - _filePath = _tempFolder.GetTemporaryFile(); + _tempFolder = new TemporaryFolder("MissingInfoTaskTests"); + _filePath = _tempFolder.GetPathForNewTempFile(false); _lexEntryRepository = new LexEntryRepository(_filePath); WeSayProjectTestHelper.InitializeForTests(); @@ -102,7 +102,7 @@ public void TearDown() } if (_tempFolder != null) { - _tempFolder.Delete(); + _tempFolder.Dispose(); } WeSayProjectTestHelper.CleanupForTests(); } diff --git a/src/LexicalTools.Tests/Properties/AssemblyInfo.cs b/src/LexicalTools.Tests/Properties/AssemblyInfo.cs deleted file mode 100644 index 6ce6b515d..000000000 --- a/src/LexicalTools.Tests/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,38 +0,0 @@ -using System.Reflection; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. - -[assembly: AssemblyTitle("LexicalTools.Tests")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("WeSay")] -[assembly: AssemblyProduct("WeSay.Tests")] -[assembly: AssemblyCopyright("Copyright © WeSay 2006")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. - -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM - -[assembly: Guid("188870c0-23e2-48a2-afda-51e69164d4ed")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Revision and Build Numbers -// by using the '*' as shown below: - -[assembly: AssemblyVersion("1.9.0.10")] -[assembly: AssemblyFileVersion("1.9.0.10")] \ No newline at end of file diff --git a/src/LexicalTools.Tests/RelationControllerTests.cs b/src/LexicalTools.Tests/RelationControllerTests.cs index 928a6ef48..4fefda39a 100644 --- a/src/LexicalTools.Tests/RelationControllerTests.cs +++ b/src/LexicalTools.Tests/RelationControllerTests.cs @@ -78,7 +78,7 @@ public void Setup() public void Teardown() { _lexEntryRepository?.Dispose(); - _tempFolder?.Delete(); + _tempFolder?.Dispose(); _tempFile?.Dispose(); WeSayProjectTestHelper.CleanupForTests(); } diff --git a/src/LexicalTools.Tests/packages.config b/src/LexicalTools.Tests/packages.config deleted file mode 100644 index 928c08f7d..000000000 --- a/src/LexicalTools.Tests/packages.config +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/LexicalTools/AddMissingInfo/MissingInfoControl.cs b/src/LexicalTools/AddMissingInfo/MissingInfoControl.cs index 5c858722f..09cae18cb 100644 --- a/src/LexicalTools/AddMissingInfo/MissingInfoControl.cs +++ b/src/LexicalTools/AddMissingInfo/MissingInfoControl.cs @@ -21,6 +21,12 @@ public partial class MissingInfoControl : UserControl { private readonly List> _completedRecords; private readonly List> _todoRecords; + public object TodoRecordsListBoxSelectedItem => _todoRecordsListBox.SelectedItem; + + public bool CompletedRecordsListBoxDataSourceContains(object o) => + _completedRecordsListBox.DataSource.Contains(o); + public bool TodoRecordsListBoxDataSourceContains(object o) => + _todoRecordsListBox.DataSource.Contains(o); private RecordToken _currentRecord; private RecordToken _previousRecord; private RecordToken _nextRecord; diff --git a/src/LexicalTools/Dashboard/Dash.cs b/src/LexicalTools/Dashboard/Dash.cs index d4b577bc7..5fec1e019 100644 --- a/src/LexicalTools/Dashboard/Dash.cs +++ b/src/LexicalTools/Dashboard/Dash.cs @@ -55,16 +55,22 @@ public Dash(LexEntryRepository RecordListManager, ICurrentWorkTask currentWorkTa private void InitializeContextMenu() { - ContextMenu = new ContextMenu(); - ContextMenu.MenuItems.Add("Configure this project...", OnRunConfigureTool); - ContextMenu.MenuItems.Add("Use projector-friendly colors", OnToggleColorScheme); - ContextMenu.MenuItems[1].Checked = DisplaySettings.Default.UsingProjectorScheme; + ContextMenuStrip = new ContextMenuStrip(); + ContextMenuStrip.Items.Add("Configure this project...", null, OnRunConfigureTool); + var toolStripMenuItem = new ToolStripMenuItem + { + Text = "Use projector-friendly colors", + }; + toolStripMenuItem.Click += OnToggleColorScheme; + ContextMenuStrip.Items.Add(toolStripMenuItem); + toolStripMenuItem.Checked = DisplaySettings.Default.UsingProjectorScheme; } private void OnToggleColorScheme(object sender, EventArgs e) { DisplaySettings.Default.ToggleColorScheme(); - ContextMenu.MenuItems[1].Checked = DisplaySettings.Default.UsingProjectorScheme; + var menuItem = (ToolStripMenuItem)sender; + menuItem.Checked = DisplaySettings.Default.UsingProjectorScheme; Invalidate(true); } @@ -313,7 +319,7 @@ private List SmallestPossibleButtonSizes } } - internal static List ComputeSmallestPossibleButtonSizes( + public static List ComputeSmallestPossibleButtonSizes( IEnumerable> possibleSizesOfButtons) { List result = new List(); @@ -456,7 +462,7 @@ private void SetBestButtonSize() availableSpaceForButtons.Width / (_bestButtonSize.Width + _buttonMargin.Horizontal)); } - internal static Size ComputeBestButtonSize(List smallestPossibleSizes, + public static Size ComputeBestButtonSize(List smallestPossibleSizes, Size availableSpaceForButtons, IEnumerable buttonsPerGroup) { diff --git a/src/LexicalTools/DictionaryBrowseAndEdit/DictionaryControl.cs b/src/LexicalTools/DictionaryBrowseAndEdit/DictionaryControl.cs index 88e61b551..b44e304f2 100644 --- a/src/LexicalTools/DictionaryBrowseAndEdit/DictionaryControl.cs +++ b/src/LexicalTools/DictionaryBrowseAndEdit/DictionaryControl.cs @@ -13,6 +13,7 @@ using System.ComponentModel; using System.Diagnostics; using System.Drawing; +using System.Linq; using System.Text.RegularExpressions; using System.Windows.Forms; using WeSay.LexicalModel; @@ -202,18 +203,18 @@ private void RegisterFieldWithPicker(string fieldName) private void AddWritingSystemToPicker(WritingSystemDefinition writingSystem, Field field) { - var item = new MenuItem( - writingSystem.Abbreviation + "\t" + StringCatalog.Get(field.DisplayName), - OnWritingSystemMenuItemClicked + var item = new ToolStripMenuItem( + writingSystem.Abbreviation + "\t" + StringCatalog.Get(field.DisplayName) ); - item.RadioCheck = true; + item.Click += OnWritingSystemMenuItemClicked; item.Tag = writingSystem; - SearchModeMenu.MenuItems.Add(item); + //todo radio button check removed + SearchModeMenu.Items.Add(item); } private bool WritingSystemExistsInPicker(WritingSystemDefinition writingSystem) { - foreach (MenuItem item in SearchModeMenu.MenuItems) + foreach (var item in SearchModeMenu.Items.OfType()) { if (writingSystem.LanguageTag == ((WritingSystemDefinition)item.Tag).LanguageTag) { @@ -223,7 +224,7 @@ private bool WritingSystemExistsInPicker(WritingSystemDefinition writingSystem) return false; } - protected ContextMenu SearchModeMenu + protected ContextMenuStrip SearchModeMenu { get { return _searchTextBoxControl.SearchModeMenu; } } @@ -365,7 +366,8 @@ private static IEnumerable FindClosestAndNextClosestAndPrefixedForms(string text private void OnWritingSystemMenuItemClicked(object sender, EventArgs e) { - var item = (MenuItem)sender; + // TODO MenuItem is no longer supported. Use ToolStripMenuItem instead. For more details see https://docs.microsoft.com/en-us/dotnet/core/compatibility/winforms#removed-controls + var item = (ToolStripItem)sender; if (_listWritingSystem != item.Tag) { SetListWritingSystem((WritingSystemDefinition)item.Tag); diff --git a/src/LexicalTools/DictionaryBrowseAndEdit/SearchBoxControl.cs b/src/LexicalTools/DictionaryBrowseAndEdit/SearchBoxControl.cs index 68b6aa503..80ce243ff 100644 --- a/src/LexicalTools/DictionaryBrowseAndEdit/SearchBoxControl.cs +++ b/src/LexicalTools/DictionaryBrowseAndEdit/SearchBoxControl.cs @@ -2,6 +2,7 @@ using System; using System.ComponentModel; using System.Drawing; +using System.Linq; using System.Windows.Forms; using WeSay.LexicalTools.Properties; using WeSay.UI; @@ -11,13 +12,13 @@ namespace WeSay.LexicalTools.DictionaryBrowseAndEdit { public partial class SearchBoxControl : UserControl { - private readonly ContextMenu _searchModeMenu; + private readonly ContextMenuStrip _searchModeMenu; public SearchBoxControl() { InitializeComponent(); BackColor = Color.White; - _searchModeMenu = new ContextMenu(); + _searchModeMenu = new ContextMenuStrip(); _selectedWritingSystemLabel.ForeColor = DisplaySettings.Default.WritingSystemLabelColor; _writingSystemChooser.Image = Resources.Expand.GetThumbnailImage(6, 6, @@ -41,7 +42,7 @@ public IWeSayAutoCompleteTextBox TextBox [Browsable(false)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] - public ContextMenu SearchModeMenu + public ContextMenuStrip SearchModeMenu { get { return _searchModeMenu; } } @@ -112,7 +113,7 @@ private Size GetAbbreviationSize() private void OnWritingSystemChooser_Click(object sender, EventArgs e) { - foreach (MenuItem menuItem in _searchModeMenu.MenuItems) + foreach (var menuItem in _searchModeMenu.Items.OfType()) { menuItem.Checked = (ListWritingSystem == menuItem.Tag); } diff --git a/src/LexicalTools/GatherBySemanticDomains/GatherBySemanticDomainTask.cs b/src/LexicalTools/GatherBySemanticDomains/GatherBySemanticDomainTask.cs index a14a2946c..a24abcc90 100644 --- a/src/LexicalTools/GatherBySemanticDomains/GatherBySemanticDomainTask.cs +++ b/src/LexicalTools/GatherBySemanticDomains/GatherBySemanticDomainTask.cs @@ -25,8 +25,8 @@ namespace WeSay.LexicalTools.GatherBySemanticDomains public class GatherBySemanticDomainTask : WordGatheringTaskBase { public ViewTemplate ViewTemplate { get; set; } - internal const string DomainIndexTaskMemoryKey = "DomainIndex"; - internal const string QuestionIndexTaskMemoryKey = "QuestionIndex"; + public const string DomainIndexTaskMemoryKey = "DomainIndex"; + public const string QuestionIndexTaskMemoryKey = "QuestionIndex"; private readonly string _semanticDomainQuestionsFileName; private GatherBySemanticDomainsControl _gatherControl; private Dictionary> _domainQuestions; diff --git a/src/LexicalTools/LexicalTools.csproj b/src/LexicalTools/LexicalTools.csproj index 96fa3e670..c6afd2e24 100755 --- a/src/LexicalTools/LexicalTools.csproj +++ b/src/LexicalTools/LexicalTools.csproj @@ -1,469 +1,133 @@ - - + - Debug - AnyCPU - 9.0.21022 - 2.0 - {87AF0B02-2983-486D-857F-D1859535C234} + net8.0-windows Library - Properties WeSay.LexicalTools - LexicalTools - - - - - 3.5 - v4.6.1 - - - + false + true + true - true - full - false ..\..\output\Debug\ - DEBUG;TRACE - prompt - 4 Library - LexicalTools WeSay.LexicalTools - false true - x86 - pdbonly - true ..\..\output\Release\ - TRACE - prompt - 4 Library - LexicalTools true WeSay.LexicalTools - false true - true ..\..\output\Debug\ - DEBUG;TRACE true - full - x86 - prompt true ..\..\output\Release\ - TRACE true - true - pdbonly - x86 - prompt - - ..\packages\Autofac.4.1.1\lib\net45\Autofac.dll - - - False - ..\packages\SIL.Chorus.App.5.0.0-beta0017\lib\net461\Chorus.exe - - - ..\packages\RelaxNG.3.2.3\lib\net40\Commons.Xml.Relaxng.dll - - - False - ..\packages\Enchant.Net.1.4.2\lib\net461\Enchant.Net.dll - - - ..\packages\icu.net.2.7.1\lib\net451\icu.net.dll - - - False - ..\packages\SIL.Chorus.LibChorus.5.0.0-beta0017\lib\net461\LibChorus.dll - - - ..\packages\Microsoft.Bcl.AsyncInterfaces.5.0.0\lib\net461\Microsoft.Bcl.AsyncInterfaces.dll - - - ..\packages\Microsoft.DotNet.PlatformAbstractions.2.0.4\lib\net45\Microsoft.DotNet.PlatformAbstractions.dll - - - ..\packages\Microsoft.Extensions.DependencyModel.2.0.4\lib\net451\Microsoft.Extensions.DependencyModel.dll - - - ..\packages\Mono.Addins.1.3.8\lib\net45\Mono.Addins.dll - - - ..\packages\Newtonsoft.Json.11.0.1\lib\net45\Newtonsoft.Json.dll - - - ..\packages\SIL.Core.9.0.0-beta0154\lib\net461\SIL.Core.dll - - - ..\packages\SIL.Core.Desktop.9.0.0-beta0154\lib\net461\SIL.Core.Desktop.dll - - - ..\packages\SIL.DictionaryServices.9.0.0-beta0154\lib\net461\SIL.DictionaryServices.dll - - - ..\packages\SIL.Lift.9.0.0-beta0154\lib\net461\SIL.Lift.dll - - - False - ..\packages\SIL.Windows.Forms.9.0.0-beta0154\lib\net461\SIL.Windows.Forms.dll - - - False - ..\packages\SIL.Windows.Forms.Keyboarding.9.0.0-beta0154\lib\net461\SIL.Windows.Forms.Keyboarding.dll - - - ..\packages\SIL.WritingSystems.9.0.0-beta0154\lib\net461\SIL.WritingSystems.dll - - - ..\packages\Spart.1.0.0\lib\net461\Spart.dll - - - - - - 3.5 - - - - - ..\packages\System.IO.FileSystem.AccessControl.4.7.0\lib\net461\System.IO.FileSystem.AccessControl.dll - - - - ..\packages\System.Runtime.CompilerServices.Unsafe.4.5.3\lib\net461\System.Runtime.CompilerServices.Unsafe.dll - - - - ..\packages\System.Security.AccessControl.4.7.0\lib\net461\System.Security.AccessControl.dll - - - ..\packages\System.Security.Principal.Windows.4.7.0\lib\net461\System.Security.Principal.Windows.dll - - - ..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll - - - ..\packages\System.ValueTuple.4.5.0\lib\net461\System.ValueTuple.dll - - - - - - - - - - - + UserControl - - AddPicturesControl.cs - - - + UserControl - - Dash.cs - - + UserControl - - DashboardButton.cs - - + UserControl - - + UserControl - - DictionaryStatusControl.cs - - + UserControl - - GroupHeader.cs - - + UserControl - - ItemsToDoIndicator.cs - - + Component - + UserControl - - TaskIndicator.cs - - + UserControl - - SearchBoxControl.cs - - + UserControl - - EntryHeaderView.cs - - - - - - - - - - - Form - - - ConfirmDelete.cs - - + UserControl - - CongratulationsControl.cs - - - - - - DictionaryControl.cs - - + UserControl - - GatherBySemanticDomainsControl.cs - - - + UserControl - - GatherWordListControl.cs - - - + UserControl - - MissingInfoControl.cs - - - - - - + UserControl - - - - + UserControl - - EntryViewControl.cs - - - - - True - True - Resources.resx - - - - - - - - - - {5F61C809-B6C0-4567-9603-B2198E1AD038} - LexicalModel - - - {E651E83C-94DD-4D6D-ABA2-C9FDA34FBA55} - WeSay.AddinLib - - - {600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD} - WeSay.Data - - - {F12EB680-0990-4900-B77E-0FBF2E28A815} - WeSay.Foundation - - - {5CFD0BB3-5B2A-4911-B220-9C2286151BF0} - WeSay.Project - - - {AC8F284C-7B34-4AC9-A7DE-FAF765456DFF} - WeSay.UI - - - - - AddPicturesControl.cs - Designer - - - Dash.cs - Designer - - - DashboardButton.cs - Designer - - - DashboardButtonWithIcon.cs - Designer - - - DictionaryStatusControl.cs - Designer - - - GroupHeader.cs - Designer - - - ItemsToDoIndicator.cs - Designer - - - TaskIndicator.cs - Designer - - - ConfirmDelete.cs - Designer - - - Designer - CongratulationsControl.cs - - - Designer - DictionaryControl.cs - - - SearchBoxControl.cs - Designer - - - EntryHeaderView.cs - Designer - - - Designer - GatherWordListControl.cs - - - Designer - MissingInfoControl.cs - - - EntryViewControl.cs - Designer - - - Designer - ResXFileCodeGenerator - Resources.Designer.cs - - - GatherBySemanticDomainsControl.cs - Designer - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + - - - - + - + + + $(PkgSIL_Windows_Forms)\lib\net461\SIL.Windows.Forms.dll + + + + $(PkgSIL_Windows_Forms_Keyboarding)\lib\net461\SIL.Windows.Forms.Keyboarding.dll + - + + + + + + + + + + + + + + + + + + + - + - - - - - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - \ No newline at end of file diff --git a/src/LexicalTools/Properties/AssemblyInfo.cs b/src/LexicalTools/Properties/AssemblyInfo.cs deleted file mode 100644 index 2c252d6e9..000000000 --- a/src/LexicalTools/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,44 +0,0 @@ -using System; -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Security.Permissions; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. - -[assembly: AssemblyTitle("LexicalTools")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("WeSay")] -[assembly: AssemblyProduct("WeSay")] -[assembly: AssemblyCopyright("Copyright © WeSay 2006")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. - -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM - -[assembly: Guid("d25df040-ef5a-4374-a324-3bb8984c0c70")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Revision and Build Numbers -// by using the '*' as shown below: - -[assembly: AssemblyVersion("1.9.0.10")] -[assembly: AssemblyFileVersion("1.9.0.10")] -[assembly: CLSCompliant(false)] -[assembly: SecurityPermission(SecurityAction.RequestMinimum, Execution = true)] -[assembly: InternalsVisibleTo("LexicalTools.Tests")] diff --git a/src/LexicalTools/TaskConfigurationBase.cs b/src/LexicalTools/TaskConfigurationBase.cs index cf0f0622a..7fc3a550e 100644 --- a/src/LexicalTools/TaskConfigurationBase.cs +++ b/src/LexicalTools/TaskConfigurationBase.cs @@ -19,7 +19,7 @@ public TaskConfigurationBase(string xml) } public string TaskName { - get { return XmlUtils.GetManditoryAttributeValue(_xmlDoc.FirstChild, "taskName"); } + get { return XmlUtils.GetMandatoryAttributeValue(_xmlDoc.FirstChild, "taskName"); } } public virtual bool IsOptional diff --git a/src/LexicalTools/packages.config b/src/LexicalTools/packages.config deleted file mode 100644 index a2a6a391b..000000000 --- a/src/LexicalTools/packages.config +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/Lift2WeSay/Properties/AssemblyInfo.cs b/src/Lift2WeSay/Properties/AssemblyInfo.cs deleted file mode 100644 index f87faaf47..000000000 --- a/src/Lift2WeSay/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,38 +0,0 @@ -using System; -using System.Reflection; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. - -[assembly: AssemblyTitle("WeSay.SampleDataProcessor")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("WeSay")] -[assembly: AssemblyProduct("WeSay.SampleDataProcessor")] -[assembly: AssemblyCopyright("Copyright © WeSay 2006")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. - -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM - -[assembly: Guid("6bae76d1-d7af-4ec0-a68d-1b2fa6c563f0")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// - -[assembly: AssemblyVersion("1.9.0.10")] -[assembly: AssemblyFileVersion("1.9.0.10")] -[assembly: CLSCompliant(true)] \ No newline at end of file diff --git a/src/Lift2WeSay/SampleDataProcessor.csproj b/src/Lift2WeSay/SampleDataProcessor.csproj index 24bc99dd3..d06499dbd 100755 --- a/src/Lift2WeSay/SampleDataProcessor.csproj +++ b/src/Lift2WeSay/SampleDataProcessor.csproj @@ -1,208 +1,65 @@ - - + - Debug - AnyCPU - 9.0.21022 - 2.0 - {4408C857-0371-42BF-A635-E23C8A99A803} + net8.0-windows Exe - Properties - SampleDataProcessor - SampleDataProcessor ..\AppCommon.config - - - - - 3.5 - v4.6.1 - - - + false + true + true - true - full - false ..\..\output\Debug\ - DEBUG;TRACE - prompt - 4 Exe - SampleDataProcessor - SampleDataProcessor - false true - pdbonly - true ..\..\output\Release\ - TRACE - prompt - 4 Exe - SampleDataProcessor true - SampleDataProcessor - false true - true ..\..\output\$(Configuration)\ - DEBUG;TRACE true - full - x86 - prompt true ..\..\output\Release\ - TRACE true - true - pdbonly - x86 - prompt - - ..\packages\DialogAdapters.Gtk2.0.1.9\lib\net461\DialogAdapters.dll - - - ..\packages\Enchant.Net.1.4.2\lib\net461\Enchant.Net.dll - - - ..\packages\icu.net.2.7.1\lib\net451\icu.net.dll - - - ..\packages\JetBrains.Annotations.2021.2.0\lib\net20\JetBrains.Annotations.dll - - - ..\packages\L10NSharp.5.0.0-beta0086\lib\net461\L10NSharp.dll - - - ..\packages\Markdig.Signed.0.22.0\lib\net452\Markdig.Signed.dll - - - ..\packages\Microsoft.DotNet.PlatformAbstractions.2.0.4\lib\net45\Microsoft.DotNet.PlatformAbstractions.dll - - - ..\packages\Microsoft.Extensions.DependencyModel.2.0.4\lib\net451\Microsoft.Extensions.DependencyModel.dll - - - ..\packages\NDesk.DBus.0.15.0\lib\NDesk.DBus.dll - - - ..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll - - - ..\packages\SIL.Core.9.0.0-beta0154\lib\net461\SIL.Core.dll - - - ..\packages\SIL.Core.Desktop.9.0.0-beta0154\lib\net461\SIL.Core.Desktop.dll - - - ..\packages\SIL.Windows.Forms.9.0.0-beta0154\lib\net461\SIL.Windows.Forms.dll - - - ..\packages\SIL.WritingSystems.9.0.0-beta0154\lib\net461\SIL.WritingSystems.dll - - - ..\packages\Spart.1.0.0\lib\net461\Spart.dll - - - - ..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll - - - - 3.5 - - - - ..\packages\System.IO.FileSystem.AccessControl.4.7.0\lib\net461\System.IO.FileSystem.AccessControl.dll - - - - ..\packages\System.Memory.4.5.4\lib\net461\System.Memory.dll - - - - ..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll - - - ..\packages\System.Runtime.CompilerServices.Unsafe.4.5.3\lib\net461\System.Runtime.CompilerServices.Unsafe.dll - - - - ..\packages\System.Security.AccessControl.4.7.0\lib\net461\System.Security.AccessControl.dll - - - ..\packages\System.Security.Principal.Windows.4.7.0\lib\net461\System.Security.Principal.Windows.dll - - - - ..\packages\System.ValueTuple.4.5.0\lib\net461\System.ValueTuple.dll - - - - - - ..\packages\TagLibSharp.2.2.0\lib\net45\TagLibSharp.dll - + + + + + + - - + + + + + + + + + + + + + - - {5F61C809-B6C0-4567-9603-B2198E1AD038} - LexicalModel - - - {EFB9D66D-AF0F-4E45-A1AC-DB32981711D2} - WeSay.App - - - {600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD} - WeSay.Data - - - {F12EB680-0990-4900-B77E-0FBF2E28A815} - WeSay.Foundation - - - {5CFD0BB3-5B2A-4911-B220-9C2286151BF0} - WeSay.Project - - - {54C943DB-7725-4F52-BCE4-86C3D3D5A66E} - WeSay.ConfigTool - + + + + + + + - + - - - - - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - - - \ No newline at end of file diff --git a/src/Lift2WeSay/packages.config b/src/Lift2WeSay/packages.config deleted file mode 100644 index dccc5908c..000000000 --- a/src/Lift2WeSay/packages.config +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/LiftWordList2Json/LiftWordList2Json.csproj b/src/LiftWordList2Json/LiftWordList2Json.csproj index f9013758b..08c25b816 100644 --- a/src/LiftWordList2Json/LiftWordList2Json.csproj +++ b/src/LiftWordList2Json/LiftWordList2Json.csproj @@ -1,19 +1,8 @@ - - - + - Debug - AnyCPU - {4498EAF7-1736-40C3-AD20-6B2CD8D935DB} + net8.0-windows Exe - Properties - LiftWordList2Json - LiftWordList2Json - v4.6.1 - ..\AppCommon.config - 512 - true publish\ true Disk @@ -29,196 +18,53 @@ false false true - - + false + true + true - x86 - true - full - false ..\..\output\Debug - DEBUG;TRACE - prompt - 4 - AnyCPU - pdbonly - true ..\..\output\Release - TRACE - prompt - 4 - - ..\packages\DialogAdapters.Gtk2.0.1.9\lib\net461\DialogAdapters.dll - - - ..\packages\Enchant.Net.1.4.2\lib\net461\Enchant.Net.dll - - - ..\packages\icu.net.2.7.1\lib\net451\icu.net.dll - - - ..\packages\JetBrains.Annotations.2021.2.0\lib\net20\JetBrains.Annotations.dll - - - ..\packages\L10NSharp.5.0.0-beta0086\lib\net461\L10NSharp.dll - - - ..\packages\Markdig.Signed.0.22.0\lib\net452\Markdig.Signed.dll - - - ..\packages\Microsoft.DotNet.PlatformAbstractions.2.0.4\lib\net45\Microsoft.DotNet.PlatformAbstractions.dll - - - ..\packages\Microsoft.Extensions.DependencyModel.2.0.4\lib\net451\Microsoft.Extensions.DependencyModel.dll - - - ..\packages\NDesk.DBus.0.15.0\lib\NDesk.DBus.dll - - - False - ..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll - - - ..\packages\SIL.Core.9.0.0-beta0154\lib\net461\SIL.Core.dll - - - ..\packages\SIL.Core.Desktop.9.0.0-beta0154\lib\net461\SIL.Core.Desktop.dll - - - ..\packages\SIL.DictionaryServices.9.0.0-beta0154\lib\net461\SIL.DictionaryServices.dll - - - ..\packages\SIL.Lift.9.0.0-beta0154\lib\net461\SIL.Lift.dll - - - ..\packages\SIL.Windows.Forms.9.0.0-beta0154\lib\net461\SIL.Windows.Forms.dll - - - ..\packages\SIL.WritingSystems.9.0.0-beta0154\lib\net461\SIL.WritingSystems.dll - - - ..\packages\Spart.1.0.0\lib\net461\Spart.dll - - - - ..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll - - - - - ..\packages\System.IO.FileSystem.AccessControl.4.7.0\lib\net461\System.IO.FileSystem.AccessControl.dll - - - - ..\packages\System.Memory.4.5.4\lib\net461\System.Memory.dll - - - - ..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll - - - ..\packages\System.Runtime.CompilerServices.Unsafe.4.5.3\lib\net461\System.Runtime.CompilerServices.Unsafe.dll - - - - ..\packages\System.Security.AccessControl.4.7.0\lib\net461\System.Security.AccessControl.dll - - - ..\packages\System.Security.Principal.Windows.4.7.0\lib\net461\System.Security.Principal.Windows.dll - - - - ..\packages\System.ValueTuple.4.5.0\lib\net461\System.ValueTuple.dll - - - - - - - - - - - ..\packages\CommandLineParser.1.9.71\lib\net40\CommandLine.dll - - - False - ..\packages\RelaxNG.3.2.3\lib\net40\Commons.Xml.Relaxng.dll - - - ..\packages\TagLibSharp.2.2.0\lib\net45\TagLibSharp.dll - + + + + + + + + + + + + + + + - - - + + + + + + + - + + + + + + + + + + + - - - {5F61C809-B6C0-4567-9603-B2198E1AD038} - LexicalModel - - - {87af0b02-2983-486d-857f-d1859535c234} - LexicalTools - - - {600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD} - WeSay.Data - - - {8491FEEE-C311-4B64-BB30-A1F1C1802F45} - WeSay.Data.Tests - - - {F12EB680-0990-4900-B77E-0FBF2E28A815} - WeSay.Foundation - - - {5CFD0BB3-5B2A-4911-B220-9C2286151BF0} - WeSay.Project - - - {F644C902-A952-4797-9E2D-19D6051DD032} - WeSay.Project.Tests - - - - - False - Microsoft .NET Framework 4.5.2 %28x86 and x64%29 - true - - - False - .NET Framework 3.5 SP1 - false - - - - - - - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - - - \ No newline at end of file diff --git a/src/LiftWordList2Json/Options.cs b/src/LiftWordList2Json/Options.cs index c3846e9f5..7441f721c 100644 --- a/src/LiftWordList2Json/Options.cs +++ b/src/LiftWordList2Json/Options.cs @@ -8,20 +8,24 @@ namespace Lift2Json { class Options { - [Option('i', "input", DefaultValue = "Wordlist.lift", HelpText = "Wordlist in lift format with id and glosses in different source languages.")] - public string InputFile { get; set; } + [Option('i', + "input", + HelpText = + "Wordlist in lift format with id and glosses in different source languages.")] + public string InputFile { get; set; } = "Wordlist.lift"; - [Option('o', "output", DefaultValue = "Wordlist.json", HelpText = "Output file to write.")] - public string OutputFile { get; set; } + [Option('o', + "output", + HelpText = "Output file to write.")] + public string OutputFile { get; set; } = "Wordlist.json"; - [Option('v', "verbose", DefaultValue = false, HelpText = "Verbose output.")] - public bool Verbose { get; set; } + [Option('v', "verbose", HelpText = "Verbose output.")] + public bool Verbose { get; set; } = false; [Option('h', null, HelpText = "Display this help screen.")] public bool ShowHelp { get; set; } - [HelpOption] public string GetUsage() { var help = new HelpText @@ -34,7 +38,7 @@ public string GetUsage() //help.AddPreOptionsLine("<>"); //help.AddPreOptionsLine("Usage: app -p Someone"); help.AddPreOptionsLine("Lift2Json will convert a lift format wordlist to json."); - help.AddOptions(this); + // help.AddOptions(this); //var usage = new StringBuilder(); //usage.AppendLine("LanguageData (c) 2016 SIL International"); //usage.AppendLine("LanguageData will process Ethnologue, IANA subtag and ISO693-3 data to a single language data index file."); diff --git a/src/LiftWordList2Json/Program.cs b/src/LiftWordList2Json/Program.cs index 0c58a549a..7ad8ed294 100644 --- a/src/LiftWordList2Json/Program.cs +++ b/src/LiftWordList2Json/Program.cs @@ -16,10 +16,9 @@ class Program { static int Main(string[] args) { - var options = new Options(); - var isValid = CommandLine.Parser.Default.ParseArgumentsStrict(args, options); - if (isValid) - { + var result = CommandLine.Parser.Default.ParseArguments(args); + var options = result.Value; + if (options.ShowHelp) { Console.WriteLine(options.GetUsage()); @@ -42,14 +41,6 @@ static int Main(string[] args) Console.WriteLine("Output file: {0}", options.OutputFile); } - } - else - { - // Display the default usage information - Console.WriteLine("command line parsing failed"); - Console.WriteLine(options.GetUsage()); - return 1; - } List _words; _words = new List(); diff --git a/src/LiftWordList2Json/Properties/AssemblyInfo.cs b/src/LiftWordList2Json/Properties/AssemblyInfo.cs deleted file mode 100644 index 78f54fbaa..000000000 --- a/src/LiftWordList2Json/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System.Reflection; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("LiftWordList2Json")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("LiftWordList2Json")] -[assembly: AssemblyCopyright("Copyright © SIL International 2018")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("4498eaf7-1736-40c3-ad20-6b2cd8d935db")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.9.0.10")] -[assembly: AssemblyVersion("1.9.0.10")] -[assembly: AssemblyFileVersion("1.9.0.10")] diff --git a/src/LiftWordList2Json/packages.config b/src/LiftWordList2Json/packages.config deleted file mode 100644 index 67e20cfa8..000000000 --- a/src/LiftWordList2Json/packages.config +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/TreeViewIList.Tests/TreeViewIList.Tests.csproj b/src/TreeViewIList.Tests/TreeViewIList.Tests.csproj index 98aac043b..c952df944 100644 --- a/src/TreeViewIList.Tests/TreeViewIList.Tests.csproj +++ b/src/TreeViewIList.Tests/TreeViewIList.Tests.csproj @@ -32,7 +32,7 @@ - ..\packages\NUnit.3.13.1\lib\net45\nunit.framework.dll + ..\..\packages\NUnit.3.13.1\lib\net45\nunit.framework.dll diff --git a/src/WeSay.AddinLib.Tests/Properties/AssemblyInfo.cs b/src/WeSay.AddinLib.Tests/Properties/AssemblyInfo.cs index fcd32b1fe..741d3264c 100644 --- a/src/WeSay.AddinLib.Tests/Properties/AssemblyInfo.cs +++ b/src/WeSay.AddinLib.Tests/Properties/AssemblyInfo.cs @@ -1,16 +1,5 @@ using System.Reflection; using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. - -[assembly: AssemblyTitle("WeSay.AddinLib.Tests")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("SIL")] -[assembly: AssemblyProduct("WeSay.AddinLib.Tests")] -[assembly: AssemblyCopyright("Copyright © SIL 2007")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -23,14 +12,3 @@ // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("7ab94996-9548-4a17-9c85-4c6634b89072")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// - -[assembly: AssemblyVersion("1.9.0.10")] -[assembly: AssemblyFileVersion("1.9.0.10")] \ No newline at end of file diff --git a/src/WeSay.AddinLib.Tests/WeSay.AddinLib.Tests.csproj b/src/WeSay.AddinLib.Tests/WeSay.AddinLib.Tests.csproj index 439a7feec..a2b41948a 100644 --- a/src/WeSay.AddinLib.Tests/WeSay.AddinLib.Tests.csproj +++ b/src/WeSay.AddinLib.Tests/WeSay.AddinLib.Tests.csproj @@ -1,112 +1,54 @@ - - + - Debug - AnyCPU - 9.0.21022 - 2.0 - {74DF4C01-660C-4CF4-9343-9330337BCBEA} + net8.0-windows Library - Properties - WeSay.AddinLib.Tests - WeSay.AddinLib.Tests ..\AppForTests.config - - - - - 3.5 - v4.6.1 - + false + true + true + WeSay.AddinLib.Tests + SIL + WeSay.AddinLib.Tests + Copyright © SIL 2007 + 1.9.0.10 + 1.9.0.10 - true - full - false ..\..\output\Debug\ - DEBUG;TRACE - prompt - 4 Library - WeSay.AddinLib.Tests - WeSay.AddinLib.Tests - false true - x86 - pdbonly - true ..\..\output\Release\ - TRACE - prompt - 4 Library - WeSay.AddinLib.Tests true - WeSay.AddinLib.Tests - false true - true ..\..\output\Debug\ - DEBUG;TRACE true - full - x86 - prompt true ..\..\output\Release\ - TRACE true - true - pdbonly - x86 - prompt - - ..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll - - - - 3.5 - - - - - - ..\packages\NUnit.3.13.1\lib\net45\nunit.framework.dll - - - - - + + - - {9D196637-2D50-4604-A310-378083CEA809} - Addin.Transform - - - {E651E83C-94DD-4D6D-ABA2-C9FDA34FBA55} - WeSay.AddinLib - + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + - - - + \ No newline at end of file diff --git a/src/WeSay.AddinLib.Tests/packages.config b/src/WeSay.AddinLib.Tests/packages.config deleted file mode 100644 index 65caa6755..000000000 --- a/src/WeSay.AddinLib.Tests/packages.config +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/WeSay.AddinLib/Properties/AssemblyInfo.cs b/src/WeSay.AddinLib/Properties/AssemblyInfo.cs deleted file mode 100644 index cde528137..000000000 --- a/src/WeSay.AddinLib/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,42 +0,0 @@ -using Mono.Addins; -using System; -using System.Reflection; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. - -[assembly: AssemblyTitle("WeSay.AddinLib")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("WeSay")] -[assembly: AssemblyProduct("WeSay Preview 3")] -[assembly: AssemblyCopyright("Copyright © WeSay 2006")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. - -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM - -[assembly: Guid("96fa6dc5-f691-4d65-b494-48212180128d")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Revision and Build Numbers -// by using the '*' as shown below: - -[assembly: AssemblyVersion("1.9.0.10")] -[assembly: AssemblyFileVersion("1.9.0.10")] -[assembly: AddinRoot("WeSay.AddinLib", "1.0")] -[assembly: CLSCompliant(true)] \ No newline at end of file diff --git a/src/WeSay.AddinLib/WeSay.AddinLib.csproj b/src/WeSay.AddinLib/WeSay.AddinLib.csproj index a4544070c..15de11d20 100755 --- a/src/WeSay.AddinLib/WeSay.AddinLib.csproj +++ b/src/WeSay.AddinLib/WeSay.AddinLib.csproj @@ -1,169 +1,49 @@ - - + - Debug - AnyCPU - 9.0.21022 - 2.0 - {E651E83C-94DD-4D6D-ABA2-C9FDA34FBA55} + net8.0-windows Library - Properties - WeSay.AddinLib - WeSay.AddinLib - - - - - 3.5 - v4.6.1 - + false + true + true - true - full - false ..\..\output\Debug\ - DEBUG;TRACE - prompt - 4 Library - WeSay.AddinLib - WeSay.AddinLib - false true - x86 - pdbonly - true ..\..\output\Release\ - TRACE - prompt - 4 Library - WeSay.AddinLib true - WeSay.AddinLib - false true - true ..\..\output\Debug\ - DEBUG;TRACE true - full - x86 - prompt true ..\..\output\Release\ - TRACE true - true - pdbonly - x86 - prompt true - - ..\packages\Mono.Addins.1.3.8\lib\net45\Mono.Addins.dll - - - False - ..\packages\SIL.Core.9.0.0-beta0154\lib\net461\SIL.Core.dll - - - False - ..\packages\SIL.Core.Desktop.9.0.0-beta0154\lib\net461\SIL.Core.Desktop.dll - - - False - ..\packages\SIL.Windows.Forms.9.0.0-beta0154\lib\net461\SIL.Windows.Forms.dll - - - False - ..\packages\SIL.WritingSystems.9.0.0-beta0154\lib\net461\SIL.WritingSystems.dll - PreserveNewest - - - 3.5 - - - - - - - + UserControl - - ActionItemControl.cs - - - Form - - - ActionSetupDialog.cs - - - - - - - - True - True - Resources.resx - - - - - ActionItemControl.cs - Designer - - - Designer - ActionSetupDialog.cs - - - Designer - ResXFileCodeGenerator - Resources.Designer.cs - - - - - - - {5F61C809-B6C0-4567-9603-B2198E1AD038} - LexicalModel - - - {F12EB680-0990-4900-B77E-0FBF2E28A815} - WeSay.Foundation - + + - + - - \ No newline at end of file diff --git a/src/WeSay.AddinLib/packages.config b/src/WeSay.AddinLib/packages.config deleted file mode 100644 index 6b2829a30..000000000 --- a/src/WeSay.AddinLib/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/WeSay.App.Tests/Properties/AssemblyInfo.cs b/src/WeSay.App.Tests/Properties/AssemblyInfo.cs deleted file mode 100644 index ca9e9a9d7..000000000 --- a/src/WeSay.App.Tests/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,38 +0,0 @@ -using System.Reflection; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. - -[assembly: AssemblyTitle("WeSay.App.Tests")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("WeSay")] -[assembly: AssemblyProduct("WeSay.Tests")] -[assembly: AssemblyCopyright("Copyright © WeSay 2006")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. - -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM - -[assembly: Guid("1af96c77-11d2-452f-b68c-99412c9e7b78")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Revision and Build Numbers -// by using the '*' as shown below: - -[assembly: AssemblyVersion("1.9.0.10")] -[assembly: AssemblyFileVersion("1.9.0.10")] \ No newline at end of file diff --git a/src/WeSay.App.Tests/TabbedFormNavigationTests.cs b/src/WeSay.App.Tests/TabbedFormNavigationTests.cs index 77593bcc1..b2e39006d 100644 --- a/src/WeSay.App.Tests/TabbedFormNavigationTests.cs +++ b/src/WeSay.App.Tests/TabbedFormNavigationTests.cs @@ -19,10 +19,14 @@ public class TabbedFormNavigationTests private MockTask _dashboardTask; private bool _didRaiseInitializedEvent; + [OneTimeSetUp] + public void FixtureSetup() + { + Sldr.Initialize(true); + } [SetUp] public void Setup() { - Sldr.Initialize(true); string entriesXml = @"
fooOne
fooTwo
@@ -45,6 +49,11 @@ public void TearDown() { _tabbedForm.Dispose(); _projectDirectory.Dispose(); + } + + [OneTimeTearDown] + public void FixtureTeardown() + { Sldr.Cleanup(); } diff --git a/src/WeSay.App.Tests/WeSay.App.Tests.csproj b/src/WeSay.App.Tests/WeSay.App.Tests.csproj index 91bda2cc9..6e24533b1 100644 --- a/src/WeSay.App.Tests/WeSay.App.Tests.csproj +++ b/src/WeSay.App.Tests/WeSay.App.Tests.csproj @@ -1,258 +1,91 @@ - - - + - Debug - AnyCPU - 9.0.21022 - 2.0 - {7DA57D98-255B-46DE-BF94-D163695A0568} + net8.0-windows Library - Properties - WeSay.App.Tests - WeSay.App.Tests ..\AppForTests.config - - - - - 3.5 - v4.6.1 - - - + false + true + true - true - full - false ..\..\output\Debug\ - DEBUG;TRACE - prompt - 4 Library - WeSay.App.Tests - WeSay.App.Tests - false true - x86 - pdbonly - true ..\..\output\Release\ - TRACE - prompt - 4 Library - WeSay.App.Tests true - WeSay.App.Tests - false true - true ..\..\output\Debug\ - DEBUG;TRACE true - full - x86 - prompt true ..\..\output\Release\ - TRACE true - true - pdbonly - x86 - prompt - - ..\packages\Autofac.4.1.1\lib\net45\Autofac.dll - - - ..\packages\RelaxNG.3.2.3\lib\net40\Commons.Xml.Relaxng.dll - - - ..\packages\DialogAdapters.Gtk2.0.1.9\lib\net461\DialogAdapters.dll - - - ..\packages\Enchant.Net.1.4.2\lib\net461\Enchant.Net.dll - - - ..\packages\icu.net.2.7.1\lib\net451\icu.net.dll - - - ..\packages\JetBrains.Annotations.2021.2.0\lib\net20\JetBrains.Annotations.dll - - - ..\packages\L10NSharp.5.0.0-beta0086\lib\net461\L10NSharp.dll - - - ..\packages\Markdig.Signed.0.22.0\lib\net452\Markdig.Signed.dll - - - ..\packages\Microsoft.Bcl.AsyncInterfaces.5.0.0\lib\net461\Microsoft.Bcl.AsyncInterfaces.dll - - - ..\packages\Microsoft.DotNet.PlatformAbstractions.2.0.4\lib\net45\Microsoft.DotNet.PlatformAbstractions.dll - - - ..\packages\Microsoft.Extensions.DependencyModel.2.0.4\lib\net451\Microsoft.Extensions.DependencyModel.dll - - - ..\packages\NDesk.DBus.0.15.0\lib\NDesk.DBus.dll - - - ..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll - - - ..\packages\NUnit.3.13.1\lib\net45\nunit.framework.dll - - - ..\packages\SIL.Core.9.0.0-beta0154\lib\net461\SIL.Core.dll - - - ..\packages\SIL.Core.Desktop.9.0.0-beta0154\lib\net461\SIL.Core.Desktop.dll - - - ..\packages\SIL.DictionaryServices.9.0.0-beta0154\lib\net461\SIL.DictionaryServices.dll - - - ..\packages\SIL.Lift.9.0.0-beta0154\lib\net461\SIL.Lift.dll - - - ..\packages\SIL.Windows.Forms.9.0.0-beta0154\lib\net461\SIL.Windows.Forms.dll - - - ..\packages\SIL.WritingSystems.9.0.0-beta0154\lib\net461\SIL.WritingSystems.dll - - - ..\packages\Spart.1.0.0\lib\net461\Spart.dll - - - - ..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll - - - - - 3.5 - - - - - ..\packages\System.IO.FileSystem.AccessControl.4.7.0\lib\net461\System.IO.FileSystem.AccessControl.dll - - - - ..\packages\System.Memory.4.5.4\lib\net461\System.Memory.dll - - - - ..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll - - - ..\packages\System.Runtime.CompilerServices.Unsafe.4.5.3\lib\net461\System.Runtime.CompilerServices.Unsafe.dll - - - - ..\packages\System.Security.AccessControl.4.7.0\lib\net461\System.Security.AccessControl.dll - - - ..\packages\System.Security.Principal.Windows.4.7.0\lib\net461\System.Security.Principal.Windows.dll - - - - ..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll - - - ..\packages\System.ValueTuple.4.5.0\lib\net461\System.ValueTuple.dll - - - - - - ..\packages\TagLibSharp.2.2.0\lib\net45\TagLibSharp.dll - + + + + + + + + + + - - - - + - - {123D695C-0D5D-46E5-893F-39EC4E0B01B8} - LexicalModel.Tests - - - {5F61C809-B6C0-4567-9603-B2198E1AD038} - LexicalModel - - - {87AF0B02-2983-486D-857F-D1859535C234} - LexicalTools - - - {EFB9D66D-AF0F-4E45-A1AC-DB32981711D2} - WeSay.App - - - {600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD} - WeSay.Data - - - {F12EB680-0990-4900-B77E-0FBF2E28A815} - WeSay.Foundation - - - {F644C902-A952-4797-9E2D-19D6051DD032} - WeSay.Project.Tests - - - {5CFD0BB3-5B2A-4911-B220-9C2286151BF0} - WeSay.Project - - - {FEC3014D-0067-4D59-A838-3B046EC3C352} - WeSay.TestUtilities - - - {AC8F284C-7B34-4AC9-A7DE-FAF765456DFF} - WeSay.UI - + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + $(PkgSIL_Windows_Forms)\lib\net461\SIL.Windows.Forms.dll + - + + + + + + + + + + + + + + + - - - + - + + + + + + + + + + + + + - - - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - - - - \ No newline at end of file diff --git a/src/WeSay.App.Tests/packages.config b/src/WeSay.App.Tests/packages.config deleted file mode 100644 index b741cb59a..000000000 --- a/src/WeSay.App.Tests/packages.config +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/WeSay.App/Properties/AssemblyInfo.cs b/src/WeSay.App/Properties/AssemblyInfo.cs deleted file mode 100644 index 6be4227fc..000000000 --- a/src/WeSay.App/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,42 +0,0 @@ -using System; -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Security.Permissions; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. - -[assembly: AssemblyTitle("WeSay.App")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("WeSay")] -[assembly: AssemblyProduct("WeSay")]//NB: this name is used eventually in chorus display -[assembly: AssemblyCopyright("")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. - -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM - -[assembly: Guid("d98ced23-3d7e-4631-8005-f2c7cbc57c29")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// - -[assembly: AssemblyVersion("1.9.0.10")] -[assembly: AssemblyFileVersion("1.9.0.10")] -[assembly: CLSCompliant(true)] -[assembly: SecurityPermission(SecurityAction.RequestMinimum, Execution = true)] -[assembly: InternalsVisibleTo("WeSay.App.Tests")] \ No newline at end of file diff --git a/src/WeSay.App/TabbedForm.cs b/src/WeSay.App/TabbedForm.cs index 42b34f65b..3b32c3c7b 100644 --- a/src/WeSay.App/TabbedForm.cs +++ b/src/WeSay.App/TabbedForm.cs @@ -145,8 +145,8 @@ public void GoToUrl(string url) if (page.Tag is ITaskForExternalNavigateToEntry) { tabControl1.SelectedTab = page; -#if __MonoCS__ //For some reason .net fires this event if TabPages.Clear has been used. Mono does not. - if(!tabControl1.IsHandleCreated) +#if (__MonoCS__ || NET5_0_OR_GREATER) //For some reason .net fires this event if TabPages.Clear has been used. Mono does not. + if (!tabControl1.IsHandleCreated) { OnTabSelected(tabControl1, new TabControlEventArgs (tabControl1.SelectedTab, tabControl1.SelectedIndex, TabControlAction.Selected)); } diff --git a/src/WeSay.App/WeSay.App.csproj b/src/WeSay.App/WeSay.App.csproj index 519c3f595..cb8698797 100755 --- a/src/WeSay.App/WeSay.App.csproj +++ b/src/WeSay.App/WeSay.App.csproj @@ -1,23 +1,8 @@ - - + - Debug - AnyCPU - 9.0.21022 - 2.0 - {EFB9D66D-AF0F-4E45-A1AC-DB32981711D2} + net8.0-windows WinExe - Properties - WeSay.App - WeSay.App ..\..\artwork\WeSay.ico - - - - - 3.5 - v4.6.1 - LocalIntranet false publish\ @@ -35,302 +20,100 @@ false false true - - + false + true + true - true - full - false ..\..\output\Debug\ - DEBUG;TRACE - prompt - 4 - WinExe - WeSay.App - WeSay.App - false true ..\..\artwork\WeSay.ico true - AnyCPU - pdbonly - true ..\..\output\Release\ - TRACE - prompt - 4 - WinExe - WeSay.App true - WeSay.App - false true ..\..\artwork\WeSay.ico - true ..\..\output\Debug\ - DEBUG;TRACE true - full - x86 - prompt true ..\..\output\Release\ - TRACE true - true - pdbonly - x86 - prompt - - - true - - ..\packages\Autofac.4.1.1\lib\net45\Autofac.dll - - - False - ..\packages\SIL.Chorus.App.5.0.0-beta0017\lib\net461\Chorus.exe - - - False - ..\packages\Enchant.Net.1.4.2\lib\net461\Enchant.Net.dll - - - False - ..\packages\Geckofx60.32.60.0.54\lib\net45\Geckofx-Core.dll - - - False - ..\packages\Geckofx60.32.60.0.54\lib\net45\Geckofx-Winforms.dll - - - False - ..\packages\icu.net.2.7.1\lib\net451\icu.net.dll - - - False - ..\packages\SIL.Chorus.LibChorus.5.0.0-beta0017\lib\net461\LibChorus.dll - - - False - ..\packages\Microsoft.Bcl.AsyncInterfaces.5.0.0\lib\net461\Microsoft.Bcl.AsyncInterfaces.dll - - - ..\packages\Microsoft.DotNet.PlatformAbstractions.2.0.4\lib\net45\Microsoft.DotNet.PlatformAbstractions.dll - - - ..\packages\Microsoft.Extensions.DependencyModel.2.0.4\lib\net451\Microsoft.Extensions.DependencyModel.dll - - - ..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll - - - False - ..\packages\SIL.Core.9.0.0-beta0154\lib\net461\SIL.Core.dll - - - False - ..\packages\SIL.Core.Desktop.9.0.0-beta0154\lib\net461\SIL.Core.Desktop.dll - - - False - ..\packages\SIL.Lift.9.0.0-beta0154\lib\net461\SIL.Lift.dll - - - False - ..\packages\SIL.Windows.Forms.9.0.0-beta0154\lib\net461\SIL.Windows.Forms.dll - - - False - ..\packages\SIL.Windows.Forms.Keyboarding.9.0.0-beta0154\lib\net461\SIL.Windows.Forms.Keyboarding.dll - - - False - ..\packages\SIL.Media.9.0.0-beta0154\build\lib\win-x86\irrKlang.NET4.dll - - PreserveNewest - - False - ..\packages\SIL.WritingSystems.9.0.0-beta0154\lib\net461\SIL.WritingSystems.dll - - - - - - 3.5 - - - - - ..\packages\System.Runtime.CompilerServices.Unsafe.4.5.3\lib\net461\System.Runtime.CompilerServices.Unsafe.dll - - - ..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll - - - ..\packages\System.ValueTuple.4.5.0\lib\net461\System.ValueTuple.dll - - - - - False - ..\packages\Vulcan.Uczniowie.HelpProvider.1.0.16\lib\net461\Vulcan.Uczniowie.HelpProvider.dll - - - - Form - - - SimpleProgressDialog.cs - - - Form - - - LongStartupNotification.cs - - - True - True - Resources.resx - - - - - - Form - - - TabbedForm.cs - - - - - - SettingsSingleFileGenerator - Settings.Designer.cs - - - - True - Settings.settings - True - - - {5F61C809-B6C0-4567-9603-B2198E1AD038} - LexicalModel - - - {87af0b02-2983-486d-857f-d1859535c234} - LexicalTools - - - {600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD} - WeSay.Data - - - {F12EB680-0990-4900-B77E-0FBF2E28A815} - WeSay.Foundation - - - {5CFD0BB3-5B2A-4911-B220-9C2286151BF0} - WeSay.Project - - - {AC8F284C-7B34-4AC9-A7DE-FAF765456DFF} - WeSay.UI - + + + + + + - - SimpleProgressDialog.cs - Designer - - - Designer - ResXFileCodeGenerator - Resources.Designer.cs - - - Designer - TabbedForm.cs + + plift2html.xsl + Always - - Designer - LongStartupNotification.cs - + - - plift2html.xsl - Always - + + + False + $(PkgGeckofx60_64)\lib\net45\Geckofx-Core.dll + + + False + $(PkgGeckofx60_64)\lib\net45\Geckofx-Winforms.dll + - - False - .NET Framework 3.5 SP1 Client Profile - false - - - False - .NET Framework 3.5 SP1 - true - - - False - Windows Installer 3.1 - true - + + + $(PkgSIL_Windows_Forms)\lib\net461\SIL.Windows.Forms.dll + + + + $(PkgSIL_Windows_Forms_Keyboarding)\lib\net461\SIL.Windows.Forms.Keyboarding.dll + - + + + + + + + + + + + - + + + - - - - - - - - - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - - - + - - + + diff --git a/src/WeSay.App/WeSayApp.cs b/src/WeSay.App/WeSayApp.cs index 1aa134133..8774ef810 100755 --- a/src/WeSay.App/WeSayApp.cs +++ b/src/WeSay.App/WeSayApp.cs @@ -12,6 +12,7 @@ using System; using System.Diagnostics; using System.IO; +using System.Reflection; using System.Runtime.InteropServices; using System.Threading; using System.Windows.Forms; @@ -38,25 +39,22 @@ public class WeSayApp [STAThread] private static void Main(string[] args) { - using (new SIL.CoreSetup()) + try { - try - { - // initialize Palaso keyboarding and ICU - Sldr.Initialize(); - SIL.Windows.Forms.Keyboarding.KeyboardController.Initialize(); - Icu.Wrapper.Init(); - var app = new WeSayApp(args); - app.Run(); - } - finally - { - Keyboard.Controller.ActivateDefaultKeyboard(); - SIL.Windows.Forms.Keyboarding.KeyboardController.Shutdown(); - Sldr.Cleanup(); - Icu.Wrapper.Cleanup(); - ReleaseMutexForThisProject(); - } + // initialize Palaso keyboarding and ICU + Sldr.Initialize(); + Icu.Wrapper.Init(); + SIL.Windows.Forms.Keyboarding.KeyboardController.Initialize(); + var app = new WeSayApp(args); + app.Run(); + } + finally + { + Keyboard.Controller.ActivateDefaultKeyboard(); + SIL.Windows.Forms.Keyboarding.KeyboardController.Shutdown(); + Sldr.Cleanup(); + Icu.Wrapper.Cleanup(); + ReleaseMutexForThisProject(); } } @@ -101,8 +99,6 @@ public WeSayApp(string[] args) public static void SetUpXulRunner() { - try - { string geckoBrowserOption = Environment.GetEnvironmentVariable("WESAY_USE_GECKO") ?? String.Empty; WeSayWordsProject.GeckoOption = !(geckoBrowserOption == String.Empty || geckoBrowserOption.Equals("0", StringComparison.OrdinalIgnoreCase)); #if __MonoCS__ @@ -120,7 +116,7 @@ public static void SetUpXulRunner() // For windows, only initialize xulrunner if we are using the gecko browser control option if (WeSayWordsProject.GeckoOption) { - string xulRunnerLocation = Path.Combine(FileLocator.DirectoryOfTheApplicationExecutable, "Firefox"); + string xulRunnerLocation = Path.Combine(FileLocationUtilities.DirectoryOfTheApplicationExecutable, "Firefox"); if (!Directory.Exists(xulRunnerLocation)) { throw new ApplicationException("XULRunner needs to be installed to " + xulRunnerLocation); @@ -133,15 +129,7 @@ public static void SetUpXulRunner() GeckoPreferences.User["gfx.font_rendering.graphite.enabled"] = true; } #endif - } - catch (ApplicationException e) - { - ErrorReport.NotifyUserOfProblem(e.Message); - } - catch (Exception e) - { - ErrorReport.NotifyUserOfProblem(e.Message); - } + } private static void SetUpReporting() @@ -540,7 +528,7 @@ private static void SetupErrorHandling() ErrorReport.AddProperty("ProjectPath", BasilProject.Project.ProjectDirectoryPath); } ErrorReport.AddStandardProperties(); - ExceptionHandler.Init(); + // ExceptionHandler.Init(); } private class CommandLineArguments @@ -587,7 +575,7 @@ private static void ShowCommandLineError(string e) public static void ShowHelpTopic(string topicLink) { - string helpFilePath = FileLocator.GetFileDistributedWithApplication("WeSay_Helps.chm"); + string helpFilePath = FileLocationUtilities.GetFileDistributedWithApplication("WeSay_Helps.chm"); if (File.Exists(helpFilePath)) { //var uri = new Uri(helpFilePath); diff --git a/src/WeSay.App/packages.config b/src/WeSay.App/packages.config deleted file mode 100644 index 55b4c6749..000000000 --- a/src/WeSay.App/packages.config +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/WeSay.ConfigTool.Tests/AdminWindowTests.cs b/src/WeSay.ConfigTool.Tests/AdminWindowTests.cs index fa14048fa..f0f34e43b 100644 --- a/src/WeSay.ConfigTool.Tests/AdminWindowTests.cs +++ b/src/WeSay.ConfigTool.Tests/AdminWindowTests.cs @@ -12,7 +12,7 @@ namespace WeSay.ConfigTool.Tests { - [Category("SkipOnTeamCity")] + [Category("SkipOnCI")] [TestFixture, Apartment(ApartmentState.STA)] public class AdminWindowTests { @@ -136,7 +136,7 @@ public void CreateAndOpenProject_EnglishAsVernacular_DoesNotCrash() } /* these are more modern, without use of static, "pretend" project, or the big setup/teardown of the old style */ - [Category("SkipOnTeamCity")] + [Category("SkipOnCI")] [TestFixture] public class MoreAdminWindowTests { diff --git a/src/WeSay.ConfigTool.Tests/FieldDetailControlTests.cs b/src/WeSay.ConfigTool.Tests/FieldDetailControlTests.cs index dc32551e0..2d9e964e4 100644 --- a/src/WeSay.ConfigTool.Tests/FieldDetailControlTests.cs +++ b/src/WeSay.ConfigTool.Tests/FieldDetailControlTests.cs @@ -46,7 +46,7 @@ public void DescriptionChangedEvent_FieldDescriptionSetBeforeEvent() _field.Description = "original description"; _control.DescriptionOfFieldChanged += delegate { descriptionOfFieldInEvent = _field.Description; }; - _control._description.Text = "new description"; + _control.TestingSetDescriptionText("new description"); Assert.AreEqual("new description", descriptionOfFieldInEvent); } @@ -54,7 +54,7 @@ public void DescriptionChangedEvent_FieldDescriptionSetBeforeEvent() public void IsSpellingEnabled_FieldPersistedOnChange() { bool newIsSpellCheckingEnabled = !_field.IsSpellCheckingEnabled; - _control._enableSpelling.Checked = newIsSpellCheckingEnabled; + _control.TestingSetEnableSpelling(newIsSpellCheckingEnabled); Assert.AreEqual(newIsSpellCheckingEnabled, _field.IsSpellCheckingEnabled); } } diff --git a/src/WeSay.ConfigTool.Tests/Properties/AssemblyInfo.cs b/src/WeSay.ConfigTool.Tests/Properties/AssemblyInfo.cs deleted file mode 100644 index e8f6b193f..000000000 --- a/src/WeSay.ConfigTool.Tests/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,38 +0,0 @@ -using System.Reflection; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. - -[assembly: AssemblyTitle("Admin.Tests")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("SIL")] -[assembly: AssemblyProduct("Admin.Tests")] -[assembly: AssemblyCopyright("Copyright © SIL 2006")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. - -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM - -[assembly: Guid("2808a00f-8896-488d-b2f6-6627870c96d2")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Revision and Build Numbers -// by using the '*' as shown below: - -[assembly: AssemblyVersion("1.9.0.10")] -[assembly: AssemblyFileVersion("1.9.0.10")] \ No newline at end of file diff --git a/src/WeSay.ConfigTool.Tests/WeSay.ConfigTool.Tests.csproj b/src/WeSay.ConfigTool.Tests/WeSay.ConfigTool.Tests.csproj index 504c481ad..d38b7e91c 100644 --- a/src/WeSay.ConfigTool.Tests/WeSay.ConfigTool.Tests.csproj +++ b/src/WeSay.ConfigTool.Tests/WeSay.ConfigTool.Tests.csproj @@ -1,230 +1,102 @@ - - - + - Debug - AnyCPU - 9.0.21022 - 2.0 - {FB7CFBB8-D7D0-4E9D-96CF-7D3D0D947EB5} + net8.0-windows Library - Properties - WeSay.ConfigTool.Tests - WeSay.ConfigTool.Tests ..\AppForTestsSTA.config - - - - - 3.5 - v4.6.1 - - - + false + true + true - true - full - false ..\..\output\Debug\ - DEBUG;TRACE - prompt - 4 Library - WeSay.ConfigTool.Tests - WeSay.ConfigTool.Tests - false true - x86 - pdbonly - true ..\..\output\Release\ - TRACE - prompt - 4 Library - WeSay.ConfigTool.Tests true - WeSay.ConfigTool.Tests - false true - true ..\..\output\Debug\ - DEBUG;TRACE true - full - x86 - prompt true ..\..\output\Release\ - TRACE true - true - pdbonly - x86 - prompt true - - ..\packages\RelaxNG.3.2.3\lib\net40\Commons.Xml.Relaxng.dll - - - ..\packages\icu.net.2.7.1\lib\net451\icu.net.dll - - - ..\packages\L10NSharp.4.1.0\lib\net461\L10NSharp.dll - True - - - ..\packages\Microsoft.DotNet.PlatformAbstractions.2.0.4\lib\net45\Microsoft.DotNet.PlatformAbstractions.dll - - - ..\packages\Microsoft.Extensions.DependencyModel.2.0.4\lib\net451\Microsoft.Extensions.DependencyModel.dll + + + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + + + + + + + + + $(PkgSIL_Windows_Forms)\lib\net461\SIL.Windows.Forms.dll - - ..\packages\NDesk.DBus.0.15.0\lib\NDesk.DBus.dll + + + $(PkgSIL_Windows_Forms_Keyboarding)\lib\net461\SIL.Windows.Forms.Keyboarding.dll - + False - ..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll - - - ..\packages\NUnit.3.13.1\lib\net45\nunit.framework.dll - - - ..\packages\SIL.Core.9.0.0-beta0154\lib\net461\SIL.Core.dll - - - ..\packages\SIL.Core.Desktop.9.0.0-beta0154\lib\net461\SIL.Core.Desktop.dll - - - ..\packages\SIL.DictionaryServices.9.0.0-beta0154\lib\net461\SIL.DictionaryServices.dll + True + $(PkgSIL_Windows_Forms_Keyboarding)\build\Keyman10Interop.dll - - ..\packages\SIL.Lift.9.0.0-beta0154\lib\net461\SIL.Lift.dll - - + False - ..\packages\SIL.TestUtilities.9.0.0-beta0154\lib\net461\SIL.TestUtilities.dll + True + $(PkgSIL_Windows_Forms_Keyboarding)\build\Keyman7Interop.dll - + False - ..\packages\SIL.Windows.Forms.9.0.0-beta0154\lib\net461\SIL.Windows.Forms.dll - - - ..\packages\SIL.Windows.Forms.Keyboarding.9.0.0-beta0154\lib\net461\SIL.Windows.Forms.Keyboarding.dll - - - ..\packages\SIL.WritingSystems.9.0.0-beta0154\lib\net461\SIL.WritingSystems.dll - - - ..\packages\Spart.1.0.0\lib\net461\Spart.dll - - - - - 3.5 - - - - ..\packages\System.IO.FileSystem.AccessControl.4.7.0\lib\net461\System.IO.FileSystem.AccessControl.dll - - - - - ..\packages\System.Security.AccessControl.4.7.0\lib\net461\System.Security.AccessControl.dll - - - ..\packages\System.Security.Principal.Windows.4.7.0\lib\net461\System.Security.Principal.Windows.dll + $(PkgSIL_Windows_Forms_Keyboarding)\KeymanLink.dll - - ..\packages\System.ValueTuple.4.5.0\lib\net461\System.ValueTuple.dll + + + + $(PkgSIL_Windows_Forms_WritingSystems)\lib\net461\SIL.Windows.Forms.WritingSystems.dll - - - + + - - - - - - - - - - True - True - TestResources.resx - - - - - {5F61C809-B6C0-4567-9603-B2198E1AD038} - LexicalModel - - - {600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD} - WeSay.Data - - - {F12EB680-0990-4900-B77E-0FBF2E28A815} - WeSay.Foundation - - - {F644C902-A952-4797-9E2D-19D6051DD032} - WeSay.Project.Tests - - - {5CFD0BB3-5B2A-4911-B220-9C2286151BF0} - WeSay.Project - - - {54C943DB-7725-4F52-BCE4-86C3D3D5A66E} - WeSay.ConfigTool - - - {FEC3014D-0067-4D59-A838-3B046EC3C352} - WeSay.TestUtilities - - - - - Designer - ResXFileCodeGenerator - TestResources.Designer.cs - - - - - - - + + + + + + + + + + + - - - - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - - - \ No newline at end of file diff --git a/src/WeSay.ConfigTool.Tests/packages.config b/src/WeSay.ConfigTool.Tests/packages.config deleted file mode 100644 index aebb4ddb0..000000000 --- a/src/WeSay.ConfigTool.Tests/packages.config +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/WeSay.ConfigTool/FieldDetailControl.cs b/src/WeSay.ConfigTool/FieldDetailControl.cs index 19342b76c..53b1f4b4c 100644 --- a/src/WeSay.ConfigTool/FieldDetailControl.cs +++ b/src/WeSay.ConfigTool/FieldDetailControl.cs @@ -55,6 +55,9 @@ private static bool IsEnchantInstalled() return enchantInstalled; } + public void TestingSetDescriptionText(string text) => _description.Text = text; + public void TestingSetEnableSpelling(bool value) => _enableSpelling.Checked = value; + public Field CurrentField { set diff --git a/src/WeSay.ConfigTool/InterfaceLanguageControl.cs b/src/WeSay.ConfigTool/InterfaceLanguageControl.cs index 8c16206a8..102ce8bb8 100644 --- a/src/WeSay.ConfigTool/InterfaceLanguageControl.cs +++ b/src/WeSay.ConfigTool/InterfaceLanguageControl.cs @@ -60,7 +60,7 @@ private void LoadPoFilesIntoCombo(string directory) } } - internal class PoProxy + public class PoProxy { public string LanguageCode { get; protected set; } protected string LanguageName { private get; set; } diff --git a/src/WeSay.ConfigTool/Program.cs b/src/WeSay.ConfigTool/Program.cs index 7035317c1..f9e1862ff 100644 --- a/src/WeSay.ConfigTool/Program.cs +++ b/src/WeSay.ConfigTool/Program.cs @@ -4,6 +4,7 @@ using System; using System.Diagnostics; using System.IO; +using System.Reflection; using System.Windows.Forms; using WeSay.ConfigTool.Properties; @@ -39,6 +40,8 @@ private static void Main(string[] args) try { + Assembly.LoadFrom("Keyman10Interop.dll"); + Assembly.LoadFrom("Keyman7Interop.dll"); // initialize Palaso keyboarding SIL.Windows.Forms.Keyboarding.KeyboardController.Initialize(); SIL.WritingSystems.Sldr.Initialize(); diff --git a/src/WeSay.ConfigTool/Properties/AssemblyInfo.cs b/src/WeSay.ConfigTool/Properties/AssemblyInfo.cs deleted file mode 100644 index 58ff2dbcf..000000000 --- a/src/WeSay.ConfigTool/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,38 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. - -[assembly: AssemblyTitle("WeSay Configuration Tool")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("SIL")] -[assembly: AssemblyProduct("WeSay Configuration Tool")] //NB: this name is used eventually in chorus display -[assembly: AssemblyCopyright("")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. - -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM - -[assembly: Guid("21df0ad9-5160-4ff2-8ac0-08cd909fcf87")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// - -[assembly: AssemblyVersion("1.9.0.10")] -[assembly: AssemblyFileVersion("1.9.0.10")] -[assembly: InternalsVisibleTo("WeSay.ConfigTool.Tests")] \ No newline at end of file diff --git a/src/WeSay.ConfigTool/WeSay.ConfigTool.csproj b/src/WeSay.ConfigTool/WeSay.ConfigTool.csproj index 00524f4ca..1b6b85302 100755 --- a/src/WeSay.ConfigTool/WeSay.ConfigTool.csproj +++ b/src/WeSay.ConfigTool/WeSay.ConfigTool.csproj @@ -1,24 +1,9 @@ - - + - Debug - AnyCPU - 9.0.21022 - 2.0 - {54C943DB-7725-4F52-BCE4-86C3D3D5A66E} + net8.0-windows WinExe - Properties - WeSay.ConfigTool - WeSay.ConfigTool ..\..\artwork\WeSay.Setup.ico - - - - - 3.5 false - v4.6.1 - LocalIntranet false publish\ @@ -35,639 +20,108 @@ 1.0.0.%2a false true - - + false + true + true - true - full - false ..\..\output\Debug\ - DEBUG;TRACE - prompt - 4 WinExe - WeSay.ConfigTool - WeSay.ConfigTool - false true ..\..\artwork\WeSay.Setup.ico - x86 - pdbonly - true ..\..\output\Release\ - TRACE - prompt - 4 WinExe - WeSay.ConfigTool true - WeSay.ConfigTool - false true ..\..\artwork\WeSay.Setup.ico - true ..\..\output\Debug\ - DEBUG;TRACE true - full - x86 - prompt true ..\..\output\Release\ - TRACE true - true - pdbonly - x86 - prompt - - - true - - ..\packages\Autofac.4.1.1\lib\net45\Autofac.dll - - - False - ..\packages\SIL.Chorus.App.5.0.0-beta0017\lib\net461\Chorus.exe - - - ..\packages\RelaxNG.3.2.3\lib\net40\Commons.Xml.Relaxng.dll - - - ..\packages\DialogAdapters.Gtk2.0.1.9\lib\net461\DialogAdapters.dll - - - False - ..\packages\Enchant.Net.1.4.2\lib\net461\Enchant.Net.dll - - - False - ..\packages\Geckofx60.32.60.0.54\lib\net45\Geckofx-Core.dll - - - False - ..\packages\Geckofx60.32.60.0.54\lib\net45\Geckofx-Winforms.dll - - - ..\packages\ibusdotnet.2.0.3\lib\net461\ibusdotnet.dll - - - ..\packages\SharpZipLib.0.86.0\lib\20\ICSharpCode.SharpZipLib.dll - - - False - ..\packages\icu.net.2.7.1\lib\net451\icu.net.dll - - - ..\packages\JetBrains.Annotations.2021.2.0\lib\net20\JetBrains.Annotations.dll - - - False - True - ..\packages\SIL.Windows.Forms.Keyboarding.9.0.0-beta0154\build\Keyman10Interop.dll - - - False - True - ..\packages\SIL.Windows.Forms.Keyboarding.9.0.0-beta0154\build\Keyman7Interop.dll - - - False - ..\..\lib\$(Configuration)\KeymanLink.dll - - - ..\packages\L10NSharp.5.0.0-beta0086\lib\net461\L10NSharp.dll - - - False - ..\packages\SIL.Chorus.LibChorus.5.0.0-beta0017\lib\net461\LibChorus.dll - - - ..\packages\Markdig.Signed.0.22.0\lib\net452\Markdig.Signed.dll - - - ..\packages\Microsoft.Bcl.AsyncInterfaces.5.0.0\lib\net461\Microsoft.Bcl.AsyncInterfaces.dll - - - ..\packages\Microsoft.DotNet.PlatformAbstractions.2.0.4\lib\net45\Microsoft.DotNet.PlatformAbstractions.dll - True - - - ..\packages\Microsoft.Extensions.DependencyModel.2.0.4\lib\net451\Microsoft.Extensions.DependencyModel.dll - True - - - ..\packages\CommonServiceLocator.1.0\lib\NET35\Microsoft.Practices.ServiceLocation.dll - - - - - ..\packages\Mono.Addins.1.3.8\lib\net45\Mono.Addins.dll - - - ..\packages\NAudio.1.10.0\lib\net35\NAudio.dll - - - False - ..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll - - - ..\packages\NHunspell.Patched.1.2.5554\lib\net\NHunspell.dll - - - ..\packages\protobuf-net.2.0.0.668\lib\net40\protobuf-net.dll - - - ..\packages\SIL.Core.9.0.0-beta0154\lib\net461\SIL.Core.dll - - - ..\packages\SIL.Core.Desktop.9.0.0-beta0154\lib\net461\SIL.Core.Desktop.dll - - - ..\packages\SIL.DictionaryServices.9.0.0-beta0154\lib\net461\SIL.DictionaryServices.dll - - - ..\packages\SIL.Lexicon.9.0.0-beta0154\lib\net461\SIL.Lexicon.dll - - - ..\packages\SIL.Lift.9.0.0-beta0154\lib\net461\SIL.Lift.dll - - - ..\packages\SIL.Windows.Forms.9.0.0-beta0154\lib\net461\SIL.Windows.Forms.dll - - - ..\packages\SIL.Windows.Forms.Keyboarding.9.0.0-beta0154\lib\net461\SIL.Windows.Forms.Keyboarding.dll - - - ..\packages\SIL.Windows.Forms.WritingSystems.9.0.0-beta0154\lib\net461\SIL.Windows.Forms.WritingSystems.dll - - - ..\packages\SIL.WritingSystems.9.0.0-beta0154\lib\net461\SIL.WritingSystems.dll - - - ..\packages\Spart.1.0.0\lib\net461\Spart.dll - True - - - ..\packages\structuremap.patched.2.5.4\lib\net461\StructureMap.dll - - - - ..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll - - - - - 3.5 - - - - - ..\packages\System.IO.FileSystem.AccessControl.4.7.0\lib\net461\System.IO.FileSystem.AccessControl.dll - True - - - - ..\packages\System.Memory.4.5.4\lib\net461\System.Memory.dll - - - - ..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll - - - ..\packages\System.Runtime.CompilerServices.Unsafe.4.5.3\lib\net461\System.Runtime.CompilerServices.Unsafe.dll - - - ..\packages\System.Runtime.InteropServices.RuntimeInformation.4.3.0\lib\net45\System.Runtime.InteropServices.RuntimeInformation.dll - - - - ..\packages\System.Security.AccessControl.4.7.0\lib\net461\System.Security.AccessControl.dll - True - - - ..\packages\System.Security.Principal.Windows.4.7.0\lib\net461\System.Security.Principal.Windows.dll - True - - - - - ..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll - - - ..\packages\System.ValueTuple.4.5.0\lib\net461\System.ValueTuple.dll - True - - - - - - ..\packages\TagLibSharp.2.2.0\lib\net45\TagLibSharp.dll - - - False - ..\packages\Vulcan.Uczniowie.HelpProvider.1.0.16\lib\net461\Vulcan.Uczniowie.HelpProvider.dll - - + UserControl - - ActionsControl.cs - - + UserControl - - ChorusControl.cs - - - Form - - - NewProjectDialog.cs - - - - Form - - - ConfigurationWindow.cs - - + UserControl - + UserControl - - BackupPlanControl.cs - - + UserControl - - FieldsControl.cs - - + UserControl - - FieldDetailControl.cs - - - Form - - - NewProjectFromRawLiftDialog.cs - - - Form - - - NewProjectInformationDialog.cs - - - + UserControl - - OptionListControl.cs - - + UserControl - - InterfaceLanguageControl.cs - - - - - Designer - ActionsControl.cs - - - Designer - ConfigurationWindow.cs - - - BackupPlanControl.cs - Designer - - - ChorusControl.cs - Designer - - - NewProjectDialog.cs - Designer - - - Designer - FieldsControl.cs - - - Designer - FieldDetailControl.cs - - - NewProjectFromRawLiftDialog.cs - - - NewProjectInformationDialog.cs - Designer - - - Designer - OptionListControl.cs - - - Designer - InterfaceLanguageControl.cs - - - ResXFileCodeGenerator - Designer - Resources.Designer.cs - - - DictionaryBrowseEditTaskConfigControl.cs - Designer - - - GatherBySemDomTaskConfigControl.cs - Designer - - - DefaultTaskConfigurationControl.cs - Designer - - - MissingInfoTaskConfigControl.cs - Designer - - - Designer - TaskListView.cs - - - WritingSystemFilterControl.cs - Designer - - - UserSpecificSettingIndicator.cs - Designer - - - Designer - WelcomeControl.cs - - - Designer - SettingsControl.cs - - - Designer - WritingSystemForFieldControl.cs - - - WritingSystemSetup.cs - Designer - - - - SettingsSingleFileGenerator - Settings.Designer.cs - - - True - True - Resources.resx - - - True - Settings.settings - True - - - + UserControl - - DictionaryBrowseEditTaskConfigControl.cs - - + UserControl - - GatherBySemDomTaskConfigControl.cs - - + UserControl - - DefaultTaskConfigurationControl.cs - - - + UserControl - - MissingInfoTaskConfigControl.cs - - + UserControl - - TaskListView.cs - - - + UserControl - - WritingSystemFilterControl.cs - - + UserControl - - UserSpecificSettingIndicator.cs - - + UserControl - - WelcomeControl.cs - - + UserControl - - SettingsControl.cs - - + UserControl - - WritingSystemForFieldControl.cs - - + UserControl - - {42FB4CC3-F2D1-4509-87DD-6BBD430CD4AB} - Addin.Backup - - - {5F61C809-B6C0-4567-9603-B2198E1AD038} - LexicalModel - - - {87AF0B02-2983-486D-857F-D1859535C234} - LexicalTools - - - {E651E83C-94DD-4D6D-ABA2-C9FDA34FBA55} - WeSay.AddinLib - - - {EFB9D66D-AF0F-4E45-A1AC-DB32981711D2} - WeSay.App - - - {600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD} - WeSay.Data - - - {F12EB680-0990-4900-B77E-0FBF2E28A815} - WeSay.Foundation - - - {5CFD0BB3-5B2A-4911-B220-9C2286151BF0} - WeSay.Project - - - {AC8F284C-7B34-4AC9-A7DE-FAF765456DFF} - WeSay.UI - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - False - .NET Framework 3.5 SP1 Client Profile - false - - - False - .NET Framework 2.0 %28x86%29 - true - - - False - .NET Framework 3.0 %28x86%29 - false - - - False - .NET Framework 3.5 - false - - - False - .NET Framework 3.5 SP1 - false - - - - + + + + + + + + + - @@ -675,35 +129,82 @@ - - - - - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - - - - - - - - - - - - - - - - - + + + + $(PkgSIL_Windows_Forms)\lib\net461\SIL.Windows.Forms.dll + + + + $(PkgSIL_Windows_Forms_Keyboarding)\lib\net461\SIL.Windows.Forms.Keyboarding.dll + + + False + True + $(PkgSIL_Windows_Forms_Keyboarding)\build\Keyman10Interop.dll + + + False + True + $(PkgSIL_Windows_Forms_Keyboarding)\build\Keyman7Interop.dll + + + False + $(PkgSIL_Windows_Forms_Keyboarding)\KeymanLink.dll + + + + + $(PkgSIL_Windows_Forms_WritingSystems)\lib\net461\SIL.Windows.Forms.WritingSystems.dll + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/WeSay.ConfigTool/packages.config b/src/WeSay.ConfigTool/packages.config deleted file mode 100644 index 9d825bde4..000000000 --- a/src/WeSay.ConfigTool/packages.config +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/WeSay.Data.Tests/Properties/AssemblyInfo.cs b/src/WeSay.Data.Tests/Properties/AssemblyInfo.cs index cd30e79f7..63551548d 100644 --- a/src/WeSay.Data.Tests/Properties/AssemblyInfo.cs +++ b/src/WeSay.Data.Tests/Properties/AssemblyInfo.cs @@ -1,16 +1,5 @@ using System.Reflection; using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. - -[assembly: AssemblyTitle("WeSay.Data.Tests")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("WeSay")] -[assembly: AssemblyProduct("WeSay.Tests")] -[assembly: AssemblyCopyright("Copyright © WeSay 2006")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -23,16 +12,3 @@ // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("95a0fa19-812f-4608-a9d9-5d6b61ad7828")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Revision and Build Numbers -// by using the '*' as shown below: - -[assembly: AssemblyVersion("1.9.0.10")] -[assembly: AssemblyFileVersion("1.9.0.10")] \ No newline at end of file diff --git a/src/WeSay.Data.Tests/WeSay.Data.Tests.csproj b/src/WeSay.Data.Tests/WeSay.Data.Tests.csproj index 317da54f9..4e55202e0 100644 --- a/src/WeSay.Data.Tests/WeSay.Data.Tests.csproj +++ b/src/WeSay.Data.Tests/WeSay.Data.Tests.csproj @@ -1,183 +1,65 @@ - - - + - Debug - AnyCPU - 9.0.21022 - 2.0 - {8491FEEE-C311-4B64-BB30-A1F1C1802F45} + net8.0-windows Library - Properties - WeSay.Data.Tests - WeSay.Data.Tests ..\AppForTests.config - - - - - 3.5 - v4.6.1 - - - - + WeSay.Data.Tests + WeSay + WeSay.Tests + Copyright © WeSay 2006 + 1.9.0.10 + 1.9.0.10 + false - true - full - false ..\..\output\Debug\ - DEBUG;TRACE - prompt - 4 - Library - WeSay.Data.Tests - WeSay.Data.Tests - false true - x86 - false - pdbonly - true ..\..\output\Release\ - TRACE - prompt - 4 - Library - WeSay.Data.Tests true - WeSay.Data.Tests - false true - false - true ..\..\output\Debug\ - DEBUG;TRACE true - full - x86 - prompt - false true ..\..\output\Release\ - TRACE true - true - pdbonly - x86 - prompt - false - - - - - - - - - - + + - - ..\packages\icu.net.2.7.1\lib\net451\icu.net.dll - - - ..\packages\Microsoft.DotNet.PlatformAbstractions.2.0.4\lib\net45\Microsoft.DotNet.PlatformAbstractions.dll - - - ..\packages\Microsoft.Extensions.DependencyModel.2.0.4\lib\net451\Microsoft.Extensions.DependencyModel.dll - - - ..\packages\Mono.Posix.7.0.0-alpha2.21278.1\lib\net45\Mono.Posix.dll - - - ..\packages\Mono.Unix.7.0.0-alpha2.21278.1\lib\net45\Mono.Unix.dll - - - ..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll - - - ..\packages\NUnit.3.13.1\lib\net45\nunit.framework.dll - - - ..\packages\SIL.Core.9.0.0-beta0154\lib\net461\SIL.Core.dll - - - False - ..\packages\SIL.Core.Desktop.9.0.0-beta0154\lib\net461\SIL.Core.Desktop.dll - - - ..\packages\SIL.Core.Tests.9.0.0-beta0154\lib\net461\SIL.Core.Tests.dll - - - ..\packages\SIL.TestUtilities.9.0.0-beta0154\lib\net461\SIL.TestUtilities.dll - - - ..\packages\SIL.WritingSystems.9.0.0-beta0154\lib\net461\SIL.WritingSystems.dll - - - ..\packages\Spart.1.0.0\lib\net461\Spart.dll - - - - 3.5 - - - - ..\packages\System.IO.FileSystem.AccessControl.4.7.0\lib\net461\System.IO.FileSystem.AccessControl.dll - - - ..\packages\System.Security.AccessControl.4.7.0\lib\net461\System.Security.AccessControl.dll - - - ..\packages\System.Security.Principal.Windows.4.7.0\lib\net461\System.Security.Principal.Windows.dll - - - ..\packages\System.ValueTuple.4.5.0\lib\net461\System.ValueTuple.dll - - - - - - - {600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD} - WeSay.Data - - - {F12EB680-0990-4900-B77E-0FBF2E28A815} - WeSay.Foundation - + - - - + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + $(PkgSIL_Core_Tests)\lib\net461\SIL.Core.Tests.dll + - + + + + + + + + + + + + + - - - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - - \ No newline at end of file diff --git a/src/WeSay.Data.Tests/packages.config b/src/WeSay.Data.Tests/packages.config deleted file mode 100644 index ed6c01dfb..000000000 --- a/src/WeSay.Data.Tests/packages.config +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/WeSay.Data/Properties/AssemblyInfo.cs b/src/WeSay.Data/Properties/AssemblyInfo.cs index f57af925d..000bb90db 100644 --- a/src/WeSay.Data/Properties/AssemblyInfo.cs +++ b/src/WeSay.Data/Properties/AssemblyInfo.cs @@ -2,17 +2,6 @@ using System.Reflection; using System.Runtime.InteropServices; using System.Security.Permissions; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. - -[assembly: AssemblyTitle("WeSay.Data")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("WeSay")] -[assembly: AssemblyProduct("WeSay")] -[assembly: AssemblyCopyright("Copyright © WeSay 2006")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -25,18 +14,5 @@ // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("331d99db-dead-481c-b42f-cbba11076646")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Revision and Build Numbers -// by using the '*' as shown below: - -[assembly: AssemblyVersion("1.9.0.10")] -[assembly: AssemblyFileVersion("1.9.0.10")] [assembly: CLSCompliant(true)] [assembly: SecurityPermission(SecurityAction.RequestMinimum, Execution = true)] diff --git a/src/WeSay.Data/Query.cs b/src/WeSay.Data/Query.cs index 002993edb..8e7fef482 100644 --- a/src/WeSay.Data/Query.cs +++ b/src/WeSay.Data/Query.cs @@ -524,20 +524,18 @@ private static Type GetIEnumerableReturnType(MethodInfo methodInfo) { return null; } - Type type = null; - Type[] interfaces = returnType.GetInterfaces(); - foreach (Type interfaceType in interfaces) + + //get T from IEnumerable + foreach (Type interfaceType in returnType.GetInterfaces()) { - if (interfaceType.IsGenericType) + if (interfaceType.IsGenericType && + interfaceType.GetGenericTypeDefinition() == typeof(IEnumerable<>)) { - Type[] arguments = interfaceType.GetGenericArguments(); - if (interfaceType == typeof(IEnumerable<>).MakeGenericType(arguments)) - { - type = arguments[0]; - } + return interfaceType.GetGenericArguments()[0]; } } - return type; + + return null; } } diff --git a/src/WeSay.Data/WeSay.Data.csproj b/src/WeSay.Data/WeSay.Data.csproj index b52996a49..50878c149 100755 --- a/src/WeSay.Data/WeSay.Data.csproj +++ b/src/WeSay.Data/WeSay.Data.csproj @@ -1,23 +1,7 @@ - - + - Debug - AnyCPU - 9.0.21022 - 2.0 - {600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD} + net8.0-windows Library - Properties - WeSay.Data - WeSay.Data - - - - - 3.5 - v4.6.1 - - publish\ true Disk @@ -33,112 +17,40 @@ false false true + false + WeSay.Data + WeSay + WeSay + Copyright © WeSay 2006 + 1.9.0.10 + 1.9.0.10 - true - full - false ..\..\output\Debug\ - DEBUG;TRACE - prompt - 4 - Library - WeSay.Data - WeSay.Data - false true - x86 - false - pdbonly - true ..\..\output\Release\ - TRACE - prompt - 4 - Library - WeSay.Data true - WeSay.Data - false true - false - true ..\..\output\Debug\ - DEBUG;TRACE true - full - x86 - prompt - false true ..\..\output\Release\ - TRACE true - true - pdbonly - x86 - prompt - false true - - False - ..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll - - - False - ..\packages\SIL.Core.9.0.0-beta0154\lib\net461\SIL.Core.dll - + + - ..\packages\SIL.Core.Desktop.9.0.0-beta0154\lib\net461\SIL.Core.Desktop.dll + $(PkgSIL_Core_Desktop)\lib\net461\SIL.Core.Desktop.dll - - - - - - - - - - - - - - - False - .NET Framework 3.5 SP1 Client Profile - false - - - False - .NET Framework 3.5 SP1 - true - - - False - Windows Installer 3.1 - true - - - - - - \ No newline at end of file diff --git a/src/WeSay.Data/packages.config b/src/WeSay.Data/packages.config deleted file mode 100644 index 8ab13a902..000000000 --- a/src/WeSay.Data/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/WeSay.Foundation.Tests/WeSay.Foundation.Tests.csproj b/src/WeSay.Foundation.Tests/WeSay.Foundation.Tests.csproj index 9b0853e42..0c5815fae 100644 --- a/src/WeSay.Foundation.Tests/WeSay.Foundation.Tests.csproj +++ b/src/WeSay.Foundation.Tests/WeSay.Foundation.Tests.csproj @@ -1,5 +1,5 @@  - + Debug AnyCPU @@ -51,26 +51,26 @@ - ..\packages\SharpZipLib.0.86.0\lib\20\ICSharpCode.SharpZipLib.dll + ..\..\packages\SharpZipLib.0.86.0\lib\20\ICSharpCode.SharpZipLib.dll False - >../packages/NetReflector.1.1.2009/lib/net20/NetReflector.dll + >../../packages/NetReflector.1.1.2009/lib/net20/NetReflector.dll - ..\packages\NUnit.3.13.1\lib\net45\nunit.framework.dll + ..\..\packages\NUnit.3.13.1\lib\net45\nunit.framework.dll False - ..\packages\SIL.Core.9.0.0-beta0154\lib\net461\SIL.Core.dll + ..\..\packages\SIL.Core.9.0.0-beta0154\lib\net461\SIL.Core.dll False - ..\packages\SIL.TestUtilities.9.0.0-beta0154\lib\net461\SIL.TestUtilities.dll + ..\..\packages\SIL.TestUtilities.9.0.0-beta0154\lib\net461\SIL.TestUtilities.dll False - ..\packages\SIL.Windows.Forms.9.0.0-beta0154\lib\net461\SIL.Windows.Forms.dll + ..\..\packages\SIL.Windows.Forms.9.0.0-beta0154\lib\net461\SIL.Windows.Forms.dll diff --git a/src/WeSay.Foundation/Properties/AssemblyInfo.cs b/src/WeSay.Foundation/Properties/AssemblyInfo.cs deleted file mode 100644 index 0a6cb1bf3..000000000 --- a/src/WeSay.Foundation/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,42 +0,0 @@ -using System; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Security.Permissions; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. - -[assembly: AssemblyTitle("WeSay.Foundation")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("WeSay")] -[assembly: AssemblyProduct("WeSay.Foundation")] -[assembly: AssemblyCopyright("Copyright © WeSay 2006")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. - -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM - -[assembly: Guid("c6c2b2a7-e72d-44fc-ae51-9fa12a85d8f7")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Revision and Build Numbers -// by using the '*' as shown below: - -[assembly: AssemblyVersion("1.9.0.10")] -[assembly: AssemblyFileVersion("1.9.0.10")] -[assembly: CLSCompliant(true)] -[assembly: SecurityPermission(SecurityAction.RequestMinimum, Execution = true)] \ No newline at end of file diff --git a/src/WeSay.Foundation/WeSay.Foundation.csproj b/src/WeSay.Foundation/WeSay.Foundation.csproj index 5efab1fa4..44a4375bb 100755 --- a/src/WeSay.Foundation/WeSay.Foundation.csproj +++ b/src/WeSay.Foundation/WeSay.Foundation.csproj @@ -1,102 +1,31 @@ - - + - Debug - AnyCPU - 9.0.21022 - 2.0 - {F12EB680-0990-4900-B77E-0FBF2E28A815} + net8.0-windows Library - Properties - WeSay.Foundation - WeSay.Foundation - - - - - 3.5 - v4.6.1 - - + false - true - full - false ..\..\output\Debug\ - DEBUG;TRACE - prompt - 4 Library - WeSay.Foundation - WeSay.Foundation - false true - x86 - false - pdbonly - true ..\..\output\Release\ - TRACE - prompt - 4 Library - WeSay.Foundation true - WeSay.Foundation - false true - false - true ..\..\output\Debug\ - DEBUG;TRACE true - full - x86 - prompt - false true ..\..\output\Release\ - TRACE true - true - pdbonly - x86 - prompt - false + - - - 3.5 - - - - - - - - - + - - - - - - {F12EB680-0990-4900-B77E-0FBF2E28A815} - WeSay.Foundation - \ No newline at end of file diff --git a/src/WeSay.Project.Tests/LocalizedListParserTests.cs b/src/WeSay.Project.Tests/LocalizedListParserTests.cs index 76f0cf933..ee6fec612 100644 --- a/src/WeSay.Project.Tests/LocalizedListParserTests.cs +++ b/src/WeSay.Project.Tests/LocalizedListParserTests.cs @@ -27,7 +27,7 @@ public void TearDown() [Test] public void ParseSemDomXMLFile() { - using (var projectDirectory = new TemporaryFolder()) + using (var projectDirectory = new TemporaryFolder("ParseSemDomXMLFile")) { //setting up a minimal WeSay project with a config file that contains an id for a nonexistent writing system var project = new WeSayWordsProject(); @@ -46,7 +46,7 @@ public void ParseSemDomXMLFile() [Test] public void ParseLocalizedListXMLFile() { - using (var projectDirectory = new TemporaryFolder()) + using (var projectDirectory = new TemporaryFolder("ParseLocalizedListXMLFile")) { //setting up a minimal WeSay project with a config file that contains an id for a nonexistent writing system var project = new WeSayWordsProject(); @@ -65,7 +65,7 @@ public void ParseLocalizedListXMLFile() [Test] public void ReadListFile_NonExistantSemanticDomainFile_Throws() { - using (var projectDirectory = new TemporaryFolder()) + using (var projectDirectory = new TemporaryFolder("ReadListFile_NonExistantSemanticDomainFile_Throws")) { if (File.Exists(Path.Combine(BasilProject.GetPretendProjectDirectory(), "SemDom.xml"))) { diff --git a/src/WeSay.Project.Tests/ProjectDirectorySetupForTesting.cs b/src/WeSay.Project.Tests/ProjectDirectorySetupForTesting.cs index 660b9385b..0ea58a636 100644 --- a/src/WeSay.Project.Tests/ProjectDirectorySetupForTesting.cs +++ b/src/WeSay.Project.Tests/ProjectDirectorySetupForTesting.cs @@ -82,11 +82,7 @@ public string PathToUserConfigFile ~ProjectDirectorySetupForTesting() { - if (!_disposed) - { - throw new InvalidOperationException("Disposed not explicitly called on " + - GetType().FullName + "."); - } + Dispose(false); } public bool IsDisposed @@ -101,9 +97,7 @@ public string ProjectDirectoryName public void Dispose() { - _testFolder.Dispose(); Dispose(true); - GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) @@ -111,6 +105,8 @@ protected virtual void Dispose(bool disposing) if (!IsDisposed) { // shared (dispose and finalizable) cleanup logic + _testFolder.Dispose(); + GC.SuppressFinalize(this); _disposed = true; } } @@ -125,7 +121,8 @@ protected void VerifyNotDisposed() #endregion - public WeSayWordsProject CreateLoadedProject(IProgressNotificationProvider progressProvider = null) + public WeSayWordsProject CreateLoadedProject() => CreateLoadedProject(null); + public WeSayWordsProject CreateLoadedProject(IProgressNotificationProvider progressProvider) { var p = new WeSayWordsProject(); diff --git a/src/WeSay.Project.Tests/Properties/AssemblyInfo.cs b/src/WeSay.Project.Tests/Properties/AssemblyInfo.cs deleted file mode 100644 index becebe532..000000000 --- a/src/WeSay.Project.Tests/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,38 +0,0 @@ -using System.Reflection; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. - -[assembly: AssemblyTitle("WeSay.Project.Tests")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("SIL")] -[assembly: AssemblyProduct("WeSay.Project.Tests")] -[assembly: AssemblyCopyright("Copyright © SIL 2006")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. - -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM - -[assembly: Guid("13290d23-22f5-49f3-a78f-50d1dcd024c8")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Revision and Build Numbers -// by using the '*' as shown below: - -[assembly: AssemblyVersion("1.9.0.10")] -[assembly: AssemblyFileVersion("1.9.0.10")] \ No newline at end of file diff --git a/src/WeSay.Project.Tests/WeSay.Project.Tests.csproj b/src/WeSay.Project.Tests/WeSay.Project.Tests.csproj index d8dc633aa..1f6e51693 100755 --- a/src/WeSay.Project.Tests/WeSay.Project.Tests.csproj +++ b/src/WeSay.Project.Tests/WeSay.Project.Tests.csproj @@ -1,310 +1,107 @@ - - - + - Debug - AnyCPU - 9.0.21022 - 2.0 - {F644C902-A952-4797-9E2D-19D6051DD032} + net8.0-windows Library - Properties - WeSay.Project.Tests - WeSay.Project.Tests ..\AppForTests.config - - - - - 3.5 - v4.6.1 - - - + false + true + true - true - full - false ..\..\output\Debug\ - DEBUG;TRACE - prompt - 4 Library - WeSay.Project.Tests - WeSay.Project.Tests - false true - x86 - pdbonly - true ..\..\output\Release\ - TRACE - prompt - 4 Library - WeSay.Project.Tests true - WeSay.Project.Tests - false true - true ..\..\output\$(Configuration)\ - DEBUG;TRACE true - full - x86 - prompt true ..\..\output\Release\ - TRACE true - true - pdbonly - x86 - prompt true - - ..\packages\Autofac.4.1.1\lib\net45\Autofac.dll - - - ..\packages\SIL.Chorus.App.5.0.0-beta0017\lib\net461\Chorus.exe - - - ..\packages\RelaxNG.3.2.3\lib\net40\Commons.Xml.Relaxng.dll - - - ..\packages\DialogAdapters.Gtk2.0.1.9\lib\net461\DialogAdapters.dll - - - PreserveNewest - - - ..\packages\Enchant.Net.1.4.2\lib\net461\Enchant.Net.dll - - - False - ..\packages\icu.net.2.7.1\lib\net451\icu.net.dll - - - ..\packages\JetBrains.Annotations.2021.2.0\lib\net20\JetBrains.Annotations.dll - - - ..\packages\L10NSharp.5.0.0-beta0086\lib\net461\L10NSharp.dll - - - ..\packages\SIL.Chorus.LibChorus.5.0.0-beta0017\lib\net461\LibChorus.dll - - - ..\packages\Markdig.Signed.0.22.0\lib\net452\Markdig.Signed.dll - - - ..\packages\Microsoft.DotNet.PlatformAbstractions.2.0.4\lib\net45\Microsoft.DotNet.PlatformAbstractions.dll - - - ..\packages\Microsoft.Extensions.DependencyModel.2.0.4\lib\net451\Microsoft.Extensions.DependencyModel.dll - - - ..\packages\NDesk.DBus.0.15.0\lib\NDesk.DBus.dll - - - False - ..\packages\NetReflector.1.1.2009\lib\net20\NetReflector.dll - - - - False - ..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll - - - False - ..\packages\NUnit.3.13.1\lib\net45\nunit.framework.dll - - - ..\packages\SIL.Core.9.0.0-beta0154\lib\net461\SIL.Core.dll - - - ..\packages\SIL.Core.Desktop.9.0.0-beta0154\lib\net461\SIL.Core.Desktop.dll - - - ..\packages\SIL.DictionaryServices.9.0.0-beta0154\lib\net461\SIL.DictionaryServices.dll - - - ..\packages\SIL.Lexicon.9.0.0-beta0154\lib\net461\SIL.Lexicon.dll - - - ..\packages\SIL.Lift.9.0.0-beta0154\lib\net461\SIL.Lift.dll - - - ..\packages\SIL.TestUtilities.9.0.0-beta0154\lib\net461\SIL.TestUtilities.dll - - - ..\packages\SIL.Windows.Forms.9.0.0-beta0154\lib\net461\SIL.Windows.Forms.dll - - - ..\packages\SIL.WritingSystems.9.0.0-beta0154\lib\net461\SIL.WritingSystems.dll - - - ..\packages\SIL.WritingSystems.Tests.9.0.0-beta0154\lib\net461\SIL.WritingSystems.Tests.dll - - - ..\packages\Spart.1.0.0\lib\net461\Spart.dll - - - - ..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll - - - - - 3.5 - - - - ..\packages\System.Diagnostics.DiagnosticSource.4.7.1\lib\net46\System.Diagnostics.DiagnosticSource.dll - - - - ..\packages\System.IO.FileSystem.AccessControl.4.7.0\lib\net461\System.IO.FileSystem.AccessControl.dll - - - - ..\packages\System.Memory.4.5.4\lib\net461\System.Memory.dll - - - - ..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll - - - ..\packages\System.Runtime.CompilerServices.Unsafe.4.5.3\lib\net461\System.Runtime.CompilerServices.Unsafe.dll - - - - ..\packages\System.Security.AccessControl.4.7.0\lib\net461\System.Security.AccessControl.dll - - - ..\packages\System.Security.Principal.Windows.4.7.0\lib\net461\System.Security.Principal.Windows.dll - - - - ..\packages\System.ValueTuple.4.5.0\lib\net461\System.ValueTuple.dll - - - - - - - - ..\packages\TagLibSharp.2.2.0\lib\net45\TagLibSharp.dll - - - ..\packages\Vulcan.Uczniowie.HelpProvider.1.0.16\lib\net461\Vulcan.Uczniowie.HelpProvider.dll - + + + + + + + - - - - - - - - - - - - - - - - - - True - True - TestResources.resx - - - - - + + - - {5F61C809-B6C0-4567-9603-B2198E1AD038} - LexicalModel - - - {87af0b02-2983-486d-857f-d1859535c234} - LexicalTools - - - {600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD} - WeSay.Data - - - {8491FEEE-C311-4B64-BB30-A1F1C1802F45} - WeSay.Data.Tests - - - {F12EB680-0990-4900-B77E-0FBF2E28A815} - WeSay.Foundation - - - {5CFD0BB3-5B2A-4911-B220-9C2286151BF0} - WeSay.Project - - - {FEC3014D-0067-4D59-A838-3B046EC3C352} - WeSay.TestUtilities - + - - - + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + $(PkgSIL_WritingSystems_Tests)\lib\net461\SIL.WritingSystems.Tests.dll + + + + + $(PkgSIL_Windows_Forms)\lib\net461\SIL.Windows.Forms.dll + + + - - ResXFileCodeGenerator - Designer - TestResources.Designer.cs - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/WeSay.Project.Tests/WeSayWordsProjectTests.cs b/src/WeSay.Project.Tests/WeSayWordsProjectTests.cs index b2c26ed45..a1ae34f20 100644 --- a/src/WeSay.Project.Tests/WeSayWordsProjectTests.cs +++ b/src/WeSay.Project.Tests/WeSayWordsProjectTests.cs @@ -844,7 +844,7 @@ public void NewProject_ContainsNoWritingsystemFiles_DefaultsAreLoadedButWeDontWr [Test] public void OpenProject_ConfigFileContainsWritingSystemIdForWhichThereIsNoLdml_LdmlIsCreated() { - using (var projectDirectory = new TemporaryFolder()) + using (var projectDirectory = new TemporaryFolder("OpenProject_ConfigFileContainsWritingSystemIdForWhichThereIsNoLdml_LdmlIsCreated")) { //setting up a minimal WeSay project with a config file that contains an id for a nonexistent writing system var project = new WeSayWordsProject(); @@ -870,7 +870,7 @@ public void OpenProject_ConfigFileContainsWritingSystemIdForWhichThereIsNoLdml_L [Test] public void OpenProject_ConfigFileContainsWritingSystemIdForWhichThereIsNoLdml_ProjectHasWritingSystem() { - using (var projectDirectory = new TemporaryFolder()) + using (var projectDirectory = new TemporaryFolder("OpenProject_ConfigFileContainsWritingSystemIdForWhichThereIsNoLdml_ProjectHasWritingSystem")) { //setting up a minimal WeSay project with a config file that contains an id for a nonexistent writing system var project = new WeSayWordsProject(); @@ -897,7 +897,7 @@ public void OpenProject_ConfigFileContainsWritingSystemIdForWhichThereIsNoLdml_P public void LoadFromLiftLexiconPath_WritingsystemsAreInOldWsPrefsFormat_WritingSystemsAreMigrated() { var language = "english"; - using (var projectDirectory = new TemporaryFolder()) + using (var projectDirectory = new TemporaryFolder("LoadFromLiftLexiconPath_WritingsystemsAreInOldWsPrefsFormat_WritingSystemsAreMigrated")) { //setting up a minimal WeSay project with an old writingsystemprefs.xml file var project = new WeSayWordsProject(); diff --git a/src/WeSay.Project.Tests/packages.config b/src/WeSay.Project.Tests/packages.config deleted file mode 100644 index b53cfdf2d..000000000 --- a/src/WeSay.Project.Tests/packages.config +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/WeSay.Project/BasilProject.cs b/src/WeSay.Project/BasilProject.cs index c9328317e..b23e2544b 100644 --- a/src/WeSay.Project/BasilProject.cs +++ b/src/WeSay.Project/BasilProject.cs @@ -10,6 +10,7 @@ using System.Linq; using System.Reflection; using System.Windows.Forms; +using SIL.Reflection; namespace WeSay.Project { @@ -279,22 +280,7 @@ public static string DirectoryOfTheApplicationExecutable { get { - string path; - bool unitTesting = Assembly.GetEntryAssembly() == null; - if (unitTesting) - { - path = new Uri(Assembly.GetExecutingAssembly().CodeBase).AbsolutePath; - path = Uri.UnescapeDataString(path); - } - else - { - //was suspect in WS1156, where it seemed to start looking in the, - //outlook express program folder after sending an email from wesay... - //so maybe it doesn't always mean *this* executing assembly? - // path = Assembly.GetExecutingAssembly().Location; - path = Application.ExecutablePath; - } - return Directory.GetParent(path).FullName; + return ReflectionHelper.DirectoryOfTheApplicationExecutable; } } diff --git a/src/WeSay.Project/ConfigMigration/UserConfig/WeSayUserConfigV2MigrationStrategy.cs b/src/WeSay.Project/ConfigMigration/UserConfig/WeSayUserConfigV2MigrationStrategy.cs index 4c43ed0f7..524b02f64 100644 --- a/src/WeSay.Project/ConfigMigration/UserConfig/WeSayUserConfigV2MigrationStrategy.cs +++ b/src/WeSay.Project/ConfigMigration/UserConfig/WeSayUserConfigV2MigrationStrategy.cs @@ -5,6 +5,7 @@ using System.Linq; using System.Xml; using System.Xml.Linq; +using Microsoft.AspNetCore.Mvc; namespace WeSay.Project.ConfigMigration.UserConfig { diff --git a/src/WeSay.Project/ConfigMigration/WeSayConfig/ConfigurationMigrator.cs b/src/WeSay.Project/ConfigMigration/WeSayConfig/ConfigurationMigrator.cs index a33aea2a2..d767871c0 100644 --- a/src/WeSay.Project/ConfigMigration/WeSayConfig/ConfigurationMigrator.cs +++ b/src/WeSay.Project/ConfigMigration/WeSayConfig/ConfigurationMigrator.cs @@ -159,12 +159,6 @@ public static void MigrateUsingXSLT(IXPathNavigable configurationDoc, using (var writer = XmlWriter.Create(tempPath, CanonicalXmlSettings.CreateXmlWriterSettings())) { transform.Transform(configurationDoc, writer); - var tempfiles = transform.TemporaryFiles; - if (tempfiles != null) - // tempfiles will be null when debugging is not enabled - { - tempfiles.Delete(); - } writer.Close(); } SafelyMoveTempFileTofinalDestination(tempPath, targetPath); diff --git a/src/WeSay.Project/ConfigMigration/WritingSystem/WritingSystem_V1.cs b/src/WeSay.Project/ConfigMigration/WritingSystem/WritingSystem_V1.cs index 300a8fd26..e0a88c700 100644 --- a/src/WeSay.Project/ConfigMigration/WritingSystem/WritingSystem_V1.cs +++ b/src/WeSay.Project/ConfigMigration/WritingSystem/WritingSystem_V1.cs @@ -8,6 +8,7 @@ using System.Drawing; using System.Globalization; using WeSay.LexicalModel.Foundation; +using Microsoft.AspNetCore.Mvc; namespace WeSay.Project.ConfigMigration.WritingSystem { diff --git a/src/WeSay.Project/ProjectFromLiftFolderCreator.cs b/src/WeSay.Project/ProjectFromLiftFolderCreator.cs index 14b350fd6..7f5cc013a 100644 --- a/src/WeSay.Project/ProjectFromLiftFolderCreator.cs +++ b/src/WeSay.Project/ProjectFromLiftFolderCreator.cs @@ -56,7 +56,7 @@ public static void PrepareLiftFolderForWeSay(WeSayWordsProject project) creator.SetWritingSystemsForFields(); } - internal void SetWritingSystemsForFields() + public void SetWritingSystemsForFields() { var liftDom = new XmlDocument(); liftDom.Load(_path); //will throw if the file is ill-formed diff --git a/src/WeSay.Project/Properties/AssemblyInfo.cs b/src/WeSay.Project/Properties/AssemblyInfo.cs deleted file mode 100644 index b068553cd..000000000 --- a/src/WeSay.Project/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,47 +0,0 @@ -using Mono.Addins; -using System; -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Security.Permissions; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. - -[assembly: AssemblyTitle("WeSay.Project")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("WeSay")] -[assembly: AssemblyProduct("WeSay.Project")] -[assembly: AssemblyCopyright("Copyright © WeSay 2006")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. - -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM - -[assembly: Guid("daca78bb-5926-408f-8cbb-7f8e579c5ca4")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Revision and Build Numbers -// by using the '*' as shown below: - -[assembly: AssemblyVersion("1.9.0.10")] -[assembly: AssemblyFileVersion("1.9.0.10")] -[assembly: CLSCompliant(true)] -[assembly: SecurityPermission(SecurityAction.RequestMinimum, Execution = true)] -[assembly: Addin] -[assembly: AddinDependency("WeSay.AddinLib", "1.0")] -[assembly: InternalsVisibleTo("WeSay.Project.Tests")] diff --git a/src/WeSay.Project/WeSay.Project.csproj b/src/WeSay.Project/WeSay.Project.csproj index efb2b6c36..d342adef5 100755 --- a/src/WeSay.Project/WeSay.Project.csproj +++ b/src/WeSay.Project/WeSay.Project.csproj @@ -1,279 +1,40 @@ - - + - Debug - AnyCPU - 9.0.21022 - 2.0 - {5CFD0BB3-5B2A-4911-B220-9C2286151BF0} + net8.0-windows Library - Properties - WeSay.Project - WeSay.Project - - - - - 3.5 - v4.6.1 - - - + false + true + true - true - full - false - ..\..\output\Debug\ DEBUG;TRACE;$(Constants) - prompt - 4 Library - WeSay.Project - WeSay.Project - false true - x86 - pdbonly - true - ..\..\output\Release\ TRACE;$(Constants) - prompt - 4 Library - WeSay.Project true - WeSay.Project - false true - true - ..\..\output\Debug\ TRACE;DEBUG;$(Release);$(Constants) true - full - x86 - prompt true - ..\..\output\Release\ TRACE;$(Release);$(Constants) true - true - pdbonly - x86 - prompt true - - ..\packages\Autofac.4.1.1\lib\net45\Autofac.dll - - - ..\packages\SIL.Chorus.App.5.0.0-beta0017\lib\net461\Chorus.exe - - - ..\packages\DialogAdapters.Gtk2.0.1.9\lib\net461\DialogAdapters.dll - - - False - ..\packages\RelaxNG.3.2.3\lib\net40\Commons.Xml.Relaxng.dll - - - ..\packages\Enchant.Net.1.4.2\lib\net461\Enchant.Net.dll - - - ..\packages\icu.net.2.7.1\lib\net451\icu.net.dll - - - ..\packages\JetBrains.Annotations.2021.2.0\lib\net20\JetBrains.Annotations.dll - - - ..\packages\L10NSharp.5.0.0-beta0086\lib\net461\L10NSharp.dll - - - ..\packages\SIL.Chorus.LibChorus.5.0.0-beta0017\lib\net461\LibChorus.dll - - - ..\packages\Markdig.Signed.0.22.0\lib\net452\Markdig.Signed.dll - - - False - ..\packages\Microsoft.Bcl.AsyncInterfaces.5.0.0\lib\net461\Microsoft.Bcl.AsyncInterfaces.dll - - - ..\packages\Microsoft.DotNet.PlatformAbstractions.2.0.4\lib\net45\Microsoft.DotNet.PlatformAbstractions.dll - - - ..\packages\Microsoft.Extensions.DependencyModel.2.0.4\lib\net451\Microsoft.Extensions.DependencyModel.dll - - - False - ..\packages\Mono.Addins.1.3.8\lib\net45\Mono.Addins.dll - - - ..\packages\NDesk.DBus.0.15.0\lib\NDesk.DBus.dll - - - False - ..\packages\NetReflector.1.1.2009\lib\net20\NetReflector.dll - - - False - ..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll - - - ..\packages\SIL.Core.9.0.0-beta0154\lib\net461\SIL.Core.dll - - - ..\packages\SIL.Core.Desktop.9.0.0-beta0154\lib\net461\SIL.Core.Desktop.dll - - - ..\packages\SIL.DictionaryServices.9.0.0-beta0154\lib\net461\SIL.DictionaryServices.dll - - - ..\packages\SIL.Lexicon.9.0.0-beta0154\lib\net461\SIL.Lexicon.dll - - - ..\packages\SIL.Lift.9.0.0-beta0154\lib\net461\SIL.Lift.dll - - - ..\packages\SIL.Windows.Forms.9.0.0-beta0154\lib\net461\SIL.Windows.Forms.dll - - - ..\packages\SIL.Windows.Forms.GeckoBrowserAdapter.9.0.0-beta0154\lib\net461\SIL.Windows.Forms.GeckoBrowserAdapter.dll - - - ..\packages\SIL.Windows.Forms.Keyboarding.9.0.0-beta0154\lib\net461\SIL.Windows.Forms.Keyboarding.dll - - - PreserveNewest - - - ..\packages\SIL.WritingSystems.9.0.0-beta0154\lib\net461\SIL.WritingSystems.dll - - - ..\packages\Spart.1.0.0\lib\net461\Spart.dll - - - - ..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll - - - - - 3.5 - - - - - ..\packages\System.IO.FileSystem.AccessControl.4.7.0\lib\net461\System.IO.FileSystem.AccessControl.dll - - - - ..\packages\System.Memory.4.5.4\lib\net461\System.Memory.dll - - - - ..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll - - - ..\packages\System.Runtime.CompilerServices.Unsafe.4.5.3\lib\net461\System.Runtime.CompilerServices.Unsafe.dll - - - - ..\packages\System.Security.AccessControl.4.7.0\lib\net461\System.Security.AccessControl.dll - - - ..\packages\System.Security.Principal.Windows.4.7.0\lib\net461\System.Security.Principal.Windows.dll - - - - ..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll - - - ..\packages\System.ValueTuple.4.5.0\lib\net461\System.ValueTuple.dll - - - - - - - ..\packages\TagLibSharp.2.2.0\lib\net45\TagLibSharp.dll - - - ..\packages\Vulcan.Uczniowie.HelpProvider.1.0.16\lib\net461\Vulcan.Uczniowie.HelpProvider.dll - - - - - - - - - - - - - - - - - - - - - True - True - Resources.resx - - - - - - - - - - - - - - - - - - - - - - - - {5F61C809-B6C0-4567-9603-B2198E1AD038} - LexicalModel - - - {E651E83C-94DD-4D6D-ABA2-C9FDA34FBA55} - WeSay.AddinLib - - - {600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD} - WeSay.Data - - - {F12EB680-0990-4900-B77E-0FBF2E28A815} - WeSay.Foundation - - - {AC8F284C-7B34-4AC9-A7DE-FAF765456DFF} - WeSay.UI - + + + + + @@ -295,16 +56,9 @@ - - ResXFileCodeGenerator - Resources.Designer.cs - Designer - - - @@ -315,25 +69,53 @@ - - - - - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - - - - - - - + + + + $(PkgSIL_Chorus_App)\lib\net461\Chorus.exe + + + + False + $(PkgSIL_Windows_Forms)\lib\net461\SIL.Windows.Forms.dll + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/WeSay.Project/WeSayWordsProject.cs b/src/WeSay.Project/WeSayWordsProject.cs index 4498523bc..0ec2fe9bd 100644 --- a/src/WeSay.Project/WeSayWordsProject.cs +++ b/src/WeSay.Project/WeSayWordsProject.cs @@ -191,8 +191,12 @@ public void HandleProbableCacheProblem(Exception error) #endif } - public bool LoadFromLiftLexiconPath(string liftPath, - IProgressNotificationProvider progressProvider = null) + public bool LoadFromLiftLexiconPath(string liftPath) + { + return LoadFromLiftLexiconPath(liftPath, null); + } + + public bool LoadFromLiftLexiconPath(string liftPath, IProgressNotificationProvider progressProvider) { try { @@ -1917,7 +1921,7 @@ public bool IsWritingSystemUsedInLiftFile(string id) return false; } string regex = string.Format("lang\\s*=\\s*[\"']{0}[\"']", Regex.Escape(id)); - return FileUtils.GrepFile(PathToLiftFile, regex); + return FileHelper.Grep(PathToLiftFile, regex); } /// diff --git a/src/WeSay.Project/packages.config b/src/WeSay.Project/packages.config deleted file mode 100644 index 8ea7b8287..000000000 --- a/src/WeSay.Project/packages.config +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/WeSay.TestUtilities/Properties/AssemblyInfo.cs b/src/WeSay.TestUtilities/Properties/AssemblyInfo.cs deleted file mode 100644 index ba911c683..000000000 --- a/src/WeSay.TestUtilities/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System.Reflection; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("WeSay.TestUtilities")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Microsoft")] -[assembly: AssemblyProduct("WeSay.TestUtilities")] -[assembly: AssemblyCopyright("Copyright © Microsoft 2011")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("1d542add-55ff-4076-bf2a-78a382f4d0ff")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.9.0.10")] -[assembly: AssemblyVersion("1.9.0.10")] -[assembly: AssemblyFileVersion("1.9.0.10")] diff --git a/src/WeSay.TestUtilities/WeSay.TestUtilities.csproj b/src/WeSay.TestUtilities/WeSay.TestUtilities.csproj index 3f9f687ce..4e62f8991 100755 --- a/src/WeSay.TestUtilities/WeSay.TestUtilities.csproj +++ b/src/WeSay.TestUtilities/WeSay.TestUtilities.csproj @@ -1,210 +1,64 @@ - - + - Debug - AnyCPU - 9.0.21022 - 2.0 - {FEC3014D-0067-4D59-A838-3B046EC3C352} + net8.0-windows Library - Properties - WeSay.TestUtilities - WeSay.TestUtilities - v4.6.1 - ..\AppForTests.config - 512 - - - 3.5 - - - + false + true + true - true - full - false ..\..\output\Debug\ - DEBUG;TRACE - prompt - 4 AllRules.ruleset - pdbonly - true ..\..\output\Release\ - TRACE - prompt - 4 AllRules.ruleset - true ..\..\output\Debug\ - DEBUG;TRACE - full - x86 - prompt AllRules.ruleset ..\..\output\Release\ - TRACE - true - pdbonly - x86 - prompt AllRules.ruleset true - - ..\packages\SIL.Chorus.App.5.0.0-beta0017\lib\net461\Chorus.exe - - - ..\packages\RelaxNG.3.2.3\lib\net40\Commons.Xml.Relaxng.dll - - - ..\packages\DialogAdapters.Gtk2.0.1.9\lib\net461\DialogAdapters.dll - - - ..\packages\Enchant.Net.1.4.2\lib\net461\Enchant.Net.dll - - - ..\packages\icu.net.2.7.1\lib\net451\icu.net.dll - - - ..\packages\JetBrains.Annotations.2021.2.0\lib\net20\JetBrains.Annotations.dll - - - ..\packages\L10NSharp.5.0.0-beta0086\lib\net461\L10NSharp.dll - - - False - ..\packages\SIL.Chorus.LibChorus.5.0.0-beta0017\lib\net461\LibChorus.dll - - - ..\packages\Markdig.Signed.0.22.0\lib\net452\Markdig.Signed.dll - - - ..\packages\Microsoft.DotNet.PlatformAbstractions.2.0.4\lib\net45\Microsoft.DotNet.PlatformAbstractions.dll - - - ..\packages\Microsoft.Extensions.DependencyModel.2.0.4\lib\net451\Microsoft.Extensions.DependencyModel.dll - - - ..\packages\NDesk.DBus.0.15.0\lib\NDesk.DBus.dll - - - ..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll - - - ..\packages\SIL.Core.9.0.0-beta0154\lib\net461\SIL.Core.dll - - - ..\packages\SIL.Core.Desktop.9.0.0-beta0154\lib\net461\SIL.Core.Desktop.dll - - - False - ..\packages\SIL.Lexicon.9.0.0-beta0154\lib\net461\SIL.Lexicon.dll - - - False - ..\packages\SIL.Lift.9.0.0-beta0154\lib\net461\SIL.Lift.dll - - - ..\packages\SIL.Windows.Forms.9.0.0-beta0154\lib\net461\SIL.Windows.Forms.dll - - - ..\packages\SIL.WritingSystems.9.0.0-beta0154\lib\net461\SIL.WritingSystems.dll - - - ..\packages\Spart.1.0.0\lib\net461\Spart.dll - - - - ..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll - - - - 3.5 - - - ..\packages\System.IO.FileSystem.AccessControl.4.7.0\lib\net461\System.IO.FileSystem.AccessControl.dll - - - - ..\packages\System.Memory.4.5.4\lib\net461\System.Memory.dll - - - - ..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll - - - ..\packages\System.Runtime.CompilerServices.Unsafe.4.5.3\lib\net461\System.Runtime.CompilerServices.Unsafe.dll - - - - ..\packages\System.Security.AccessControl.4.7.0\lib\net461\System.Security.AccessControl.dll - - - ..\packages\System.Security.Principal.Windows.4.7.0\lib\net461\System.Security.Principal.Windows.dll - - - - ..\packages\System.ValueTuple.4.5.0\lib\net461\System.ValueTuple.dll - - - - - 3.5 - - - 3.5 - - - - - ..\packages\TagLibSharp.2.2.0\lib\net45\TagLibSharp.dll - True - + - - - - - - + + + $(PkgSIL_Windows_Forms)\lib\net461\SIL.Windows.Forms.dll + + - - {5CFD0BB3-5B2A-4911-B220-9C2286151BF0} - WeSay.Project - + + + + + + + + + + + + + + - + + + + + + + - - - - - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - - - \ No newline at end of file diff --git a/src/WeSay.TestUtilities/packages.config b/src/WeSay.TestUtilities/packages.config deleted file mode 100644 index dccc5908c..000000000 --- a/src/WeSay.TestUtilities/packages.config +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/WeSay.UI.Tests/AutoCompleteWithCreationBoxTests.cs b/src/WeSay.UI.Tests/AutoCompleteWithCreationBoxTests.cs index 125444607..c26e986d4 100644 --- a/src/WeSay.UI.Tests/AutoCompleteWithCreationBoxTests.cs +++ b/src/WeSay.UI.Tests/AutoCompleteWithCreationBoxTests.cs @@ -11,7 +11,7 @@ namespace WeSay.UI.Tests { - [Category("SkipOnTeamCity")] + [Category("SkipOnCI")] [TestFixture] public class AutoCompleteWithCreationBoxTests { @@ -115,7 +115,7 @@ public void DoesNotShowAddNewButtonWithClosedList() SetKeyAndShow("29"); _control.Focus(); Assert.IsTrue(_control.ContainsFocus); - Assert.IsFalse(_control.AddNewButton.Visible); + Assert.IsFalse(_control.AddNewButtonVisible); } [Test] @@ -125,7 +125,7 @@ public void DoesShowAddNewButtonWithOpenList() SetKeyAndShow("29"); _control.Focus(); Assert.IsTrue(_control.ContainsFocus); - Assert.IsTrue(_control.AddNewButton.Visible); + Assert.IsTrue(_control.AddNewButtonVisible); } [Test] diff --git a/src/WeSay.UI.Tests/BindingTests.cs b/src/WeSay.UI.Tests/BindingTests.cs index de591370b..870e3ee69 100644 --- a/src/WeSay.UI.Tests/BindingTests.cs +++ b/src/WeSay.UI.Tests/BindingTests.cs @@ -24,6 +24,7 @@ public void TearDown() } [Test] + [Category("SkipOnCI")] public void TargetToWidget() { MultiText text = new MultiText(); @@ -42,6 +43,7 @@ public void TargetToWidget() } [Test] + [Category("SkipOnCI")] public void WidgetToTarget() { MultiText text = new MultiText(); diff --git a/src/WeSay.UI.Tests/DetailListTests.cs b/src/WeSay.UI.Tests/DetailListTests.cs index 5da3593a8..6eb57ac35 100644 --- a/src/WeSay.UI.Tests/DetailListTests.cs +++ b/src/WeSay.UI.Tests/DetailListTests.cs @@ -7,7 +7,7 @@ namespace WeSay.UI.Tests { - [Category("SkipOnTeamCity")] + [Category("SkipOnCI")] [TestFixture, Apartment(ApartmentState.STA)] public class DetailListTests { diff --git a/src/WeSay.UI.Tests/GeckoListBoxTests.cs b/src/WeSay.UI.Tests/GeckoListBoxTests.cs index cbe8e58cc..6afd5bb5a 100644 --- a/src/WeSay.UI.Tests/GeckoListBoxTests.cs +++ b/src/WeSay.UI.Tests/GeckoListBoxTests.cs @@ -141,7 +141,7 @@ public void TestDrawItem() } [Test] - [Category("SkipOnTeamCity")] + [Category("SkipOnCI")] [Ignore("FLAKY - sometimes fails in run all in VS.")] public void TestGetRectangle() { diff --git a/src/WeSay.UI.Tests/GhostBindingTests.cs b/src/WeSay.UI.Tests/GhostBindingTests.cs index 72cb038e7..b3abea90f 100644 --- a/src/WeSay.UI.Tests/GhostBindingTests.cs +++ b/src/WeSay.UI.Tests/GhostBindingTests.cs @@ -8,6 +8,7 @@ using WeSay.Project; using WeSay.TestUtilities; using WeSay.UI.TextBoxes; +using CategoryAttribute = NUnit.Framework.CategoryAttribute; namespace WeSay.UI.Tests { @@ -126,6 +127,7 @@ public void TearDown() } [Test] + [Category("SkipOnCI")] public void EmptyListGrows() { Assert.AreEqual(0, _papa.Children.Count); @@ -135,6 +137,7 @@ public void EmptyListGrows() } [Test] + [Category("SkipOnCI")] public void NewItemGetsValue() { _ghostFirstNameWidget.Text = "Samuel"; @@ -143,6 +146,7 @@ public void NewItemGetsValue() } [Test] + [Category("SkipOnCI")] public void NewItemTriggersEvent() { _binding.ReferenceControl = (Control)_papaNameWidget; diff --git a/src/WeSay.UI.Tests/Properties/AssemblyInfo.cs b/src/WeSay.UI.Tests/Properties/AssemblyInfo.cs deleted file mode 100644 index f59123931..000000000 --- a/src/WeSay.UI.Tests/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,38 +0,0 @@ -using System.Reflection; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. - -[assembly: AssemblyTitle("WeSay.UI.Tests")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("WeSay")] -[assembly: AssemblyProduct("WeSay.Tests")] -[assembly: AssemblyCopyright("Copyright © WeSay 2006")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. - -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM - -[assembly: Guid("72ad24f6-b473-4b19-9487-b0ffc7fd15bf")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Revision and Build Numbers -// by using the '*' as shown below: - -[assembly: AssemblyVersion("1.9.0.10")] -[assembly: AssemblyFileVersion("1.9.0.10")] \ No newline at end of file diff --git a/src/WeSay.UI.Tests/ReferenceCollectionEditorTests.cs b/src/WeSay.UI.Tests/ReferenceCollectionEditorTests.cs index 86ebe285c..98b5f48a9 100644 --- a/src/WeSay.UI.Tests/ReferenceCollectionEditorTests.cs +++ b/src/WeSay.UI.Tests/ReferenceCollectionEditorTests.cs @@ -11,7 +11,7 @@ namespace WeSay.UI.Tests { - [Category("SkipOnTeamCity")] + [Category("SkipOnCI")] [TestFixture] public class ReferenceCollectionEditorTests : IReceivePropertyChangeNotifications { @@ -132,7 +132,7 @@ public void DoesNotShowAddNewButtonWithClosedList() ActuallyShowOnScreen(); GetTextBox().Focus(); Assert.IsTrue(GetTextBox().Focused); - Assert.IsFalse(Boxes[0].AddNewButton.Visible); + Assert.IsFalse(Boxes[0].AddNewButtonVisible); } [Test] @@ -143,7 +143,7 @@ public void DoesShowAddNewButtonWithClosedOpen() ActuallyShowOnScreen(); GetTextBox().Focus(); Assert.IsTrue(GetTextBox().Focused); - Assert.IsTrue(Boxes[0].AddNewButton.Visible); + Assert.IsTrue(Boxes[0].AddNewButtonVisible); } private static void OnCreateNewTargetItem(object sender, CreateNewArgs e) diff --git a/src/WeSay.UI.Tests/WeSay.UI.Tests.csproj b/src/WeSay.UI.Tests/WeSay.UI.Tests.csproj index 9b5a5096a..a083cad9e 100755 --- a/src/WeSay.UI.Tests/WeSay.UI.Tests.csproj +++ b/src/WeSay.UI.Tests/WeSay.UI.Tests.csproj @@ -1,169 +1,44 @@ - - - + - Debug - AnyCPU - 9.0.21022 - 2.0 - {6AED6785-CC6F-4A6A-BDB1-1895C6DA1090} + net8.0-windows Library - Properties - WeSay.UI.Tests - WeSay.UI.Tests ..\AppForTests.config - - - - - 3.5 - v4.6.1 - - - + false + true + true - true - full - false ..\..\output\Debug\ - DEBUG;TRACE - prompt - 4 Library - WeSay.UI.Tests - WeSay.UI.Tests - false true - x86 - pdbonly - true ..\..\output\Release\ - TRACE - prompt - 4 Library - WeSay.UI.Tests true - WeSay.UI.Tests - false true - true ..\..\output\Debug\ - DEBUG;TRACE true - full - x86 - prompt true ..\..\output\Release\ - TRACE true - true - pdbonly - x86 - prompt true - - ..\packages\NUnit.3.13.1\lib\net45\nunit.framework.dll - - - False - ..\packages\SIL.Core.9.0.0-beta0154\lib\net461\SIL.Core.dll - - - False - ..\packages\SIL.Core.Desktop.9.0.0-beta0154\lib\net461\SIL.Core.Desktop.dll - - - False - ..\packages\SIL.Lift.9.0.0-beta0154\lib\net461\SIL.Lift.dll - - - False - ..\packages\SIL.Windows.Forms.9.0.0-beta0154\lib\net461\SIL.Windows.Forms.dll - - - False - ..\packages\SIL.WritingSystems.9.0.0-beta0154\lib\net461\SIL.WritingSystems.dll - - - - 3.5 - - - - - - - ..\packages\Geckofx60.32.60.0.54\lib\net45\Geckofx-Core.dll - - - ..\packages\Geckofx60.32.60.0.54\lib\net45\Geckofx-Winforms.dll - - - - - - - - - - - - - - - - True - True - TestResources.resx - - - - - {5F61C809-B6C0-4567-9603-B2198E1AD038} - LexicalModel - - - {600D0FD4-D189-41A0-9BC5-FC79AD2CF1CD} - WeSay.Data - - - {F12EB680-0990-4900-B77E-0FBF2E28A815} - WeSay.Foundation - - - {5CFD0BB3-5B2A-4911-B220-9C2286151BF0} - WeSay.Project - - - {FEC3014D-0067-4D59-A838-3B046EC3C352} - WeSay.TestUtilities - - - {AC8F284C-7B34-4AC9-A7DE-FAF765456DFF} - WeSay.UI - - - - - ResXFileCodeGenerator - Designer - TestResources.Designer.cs - + + + + + + @@ -171,18 +46,13 @@ - - - - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + \ No newline at end of file diff --git a/src/WeSay.UI.Tests/packages.config b/src/WeSay.UI.Tests/packages.config deleted file mode 100644 index da4467a69..000000000 --- a/src/WeSay.UI.Tests/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/WeSay.UI/AutoCompleteTextBox/AutoCompleteWithCreationBox.cs b/src/WeSay.UI/AutoCompleteTextBox/AutoCompleteWithCreationBox.cs index 3cef9f22d..a93b21674 100644 --- a/src/WeSay.UI/AutoCompleteTextBox/AutoCompleteWithCreationBox.cs +++ b/src/WeSay.UI/AutoCompleteTextBox/AutoCompleteWithCreationBox.cs @@ -130,6 +130,11 @@ internal Button AddNewButton get { return _addNewButton; } } + public bool AddNewButtonVisible + { + get { return _addNewButton.Visible; } + } + private static ValueT CastKeyValueToValue(KV t) { return (ValueT)((object)t); @@ -169,7 +174,7 @@ protected override void OnPaint(PaintEventArgs e) } } - internal bool HasProblems + public bool HasProblems { get { diff --git a/src/WeSay.UI/PictureControl.cs b/src/WeSay.UI/PictureControl.cs index 21678e89d..f3b1f790f 100644 --- a/src/WeSay.UI/PictureControl.cs +++ b/src/WeSay.UI/PictureControl.cs @@ -123,8 +123,10 @@ public string Value // from Windows to / characters for the benefit of Linux and Mac. (Windows can // read / characters as well, so keep the code simple and always do this.) // This block fixes https://jira.sil.org/browse/WS-87. - if (!String.IsNullOrEmpty(value)) - value = FileUtils.NormalizePath(value); + + //todo restore this code path + // if (!String.IsNullOrEmpty(value)) + // value = FileUtils.NormalizePath(value); _relativePathToImage = value; } } diff --git a/src/WeSay.UI/Properties/AssemblyInfo.cs b/src/WeSay.UI/Properties/AssemblyInfo.cs deleted file mode 100644 index 029988066..000000000 --- a/src/WeSay.UI/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,44 +0,0 @@ -using System; -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Security.Permissions; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. - -[assembly: AssemblyTitle("WeSay.UI")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("WeSay")] -[assembly: AssemblyProduct("WeSay")] -[assembly: AssemblyCopyright("Copyright © WeSay 2006")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. - -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM - -[assembly: Guid("e8c91aad-b433-436f-87ac-30d56e5c8ae5")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Revision and Build Numbers -// by using the '*' as shown below: - -[assembly: AssemblyVersion("1.9.0.10")] -[assembly: AssemblyFileVersion("1.9.0.10")] -[assembly: CLSCompliant(true)] -[assembly: InternalsVisibleTo("WeSay.UI.Tests")] -[assembly: SecurityPermission(SecurityAction.RequestMinimum, Execution = true)] \ No newline at end of file diff --git a/src/WeSay.UI/TextBoxes/MultiTextControl.cs b/src/WeSay.UI/TextBoxes/MultiTextControl.cs index df54c4382..83f3a516e 100644 --- a/src/WeSay.UI/TextBoxes/MultiTextControl.cs +++ b/src/WeSay.UI/TextBoxes/MultiTextControl.cs @@ -361,7 +361,7 @@ private Control AddTextBox(WritingSystemDefinition writingSystem, MultiTextBase box.IsSpellCheckingEnabled = IsSpellCheckingEnabled; //box.Enabled = !box.ReadOnly; if (!box.ReadOnly && box is WeSayTextBox) - KeyboardController.RegisterControl((Control)box); + SIL.Windows.Forms.Keyboarding.KeyboardController.RegisterControl((Control)box); } _inputBoxes.Add(control); diff --git a/src/WeSay.UI/TextBoxes/WeSayTextBox.cs b/src/WeSay.UI/TextBoxes/WeSayTextBox.cs index 6f36bf6b7..148ef6b6c 100644 --- a/src/WeSay.UI/TextBoxes/WeSayTextBox.cs +++ b/src/WeSay.UI/TextBoxes/WeSayTextBox.cs @@ -11,6 +11,7 @@ using System.Reflection; using System.Windows.Forms; using WeSay.LexicalModel.Foundation; +using Microsoft.AspNetCore.Mvc; namespace WeSay.UI.TextBoxes { diff --git a/src/WeSay.UI/WeSay.UI.csproj b/src/WeSay.UI/WeSay.UI.csproj index 1a5dc931e..9fd4ae889 100755 --- a/src/WeSay.UI/WeSay.UI.csproj +++ b/src/WeSay.UI/WeSay.UI.csproj @@ -1,437 +1,168 @@ - - + - Debug - AnyCPU - 9.0.21022 - 2.0 - {AC8F284C-7B34-4AC9-A7DE-FAF765456DFF} + net8.0-windows Library - Properties - WeSay.UI - WeSay.UI - - - - - 3.5 - v4.6.1 - - - + false + true + true - true - full - false ..\..\output\Debug\ - DEBUG;TRACE - prompt - 4 Library - WeSay.UI - WeSay.UI - false true - x86 - pdbonly - true ..\..\output\Release\ - TRACE - prompt - 4 Library - WeSay.UI true - WeSay.UI - false true - true ..\..\output\Debug\ - DEBUG;TRACE true - full - x86 - prompt true ..\..\output\Release\ - TRACE true - true - pdbonly - x86 - prompt - - ..\packages\RelaxNG.3.2.3\lib\net40\Commons.Xml.Relaxng.dll - - - False - ..\packages\Enchant.Net.1.4.2\lib\net461\Enchant.Net.dll - - - ..\packages\icu.net.2.7.1\lib\net451\icu.net.dll - - - ..\packages\Microsoft.DotNet.PlatformAbstractions.2.0.4\lib\net45\Microsoft.DotNet.PlatformAbstractions.dll - - - ..\packages\Microsoft.Extensions.DependencyModel.2.0.4\lib\net451\Microsoft.Extensions.DependencyModel.dll - - - ..\packages\NAudio.1.10.0\lib\net35\NAudio.dll - - - ..\packages\NDesk.DBus.0.15.0\lib\NDesk.DBus.dll - - - False - ..\packages\NetReflector.1.1.2009\lib\net20\NetReflector.dll - - - ..\packages\Newtonsoft.Json.11.0.1\lib\net45\Newtonsoft.Json.dll - - - ..\packages\SIL.Core.9.0.0-beta0154\lib\net461\SIL.Core.dll - - - ..\packages\SIL.Core.Desktop.9.0.0-beta0154\lib\net461\SIL.Core.Desktop.dll - - - ..\packages\SIL.DictionaryServices.9.0.0-beta0154\lib\net461\SIL.DictionaryServices.dll - - - ..\packages\SIL.Lift.9.0.0-beta0154\lib\net461\SIL.Lift.dll - - - ..\packages\SIL.Media.9.0.0-beta0154\lib\net461\SIL.Media.dll - - - False - ..\packages\SIL.Windows.Forms.9.0.0-beta0154\lib\net461\SIL.Windows.Forms.dll - - - False - ..\packages\SIL.Windows.Forms.Keyboarding.9.0.0-beta0154\lib\net461\SIL.Windows.Forms.Keyboarding.dll - - - PreserveNewest - - - ..\packages\Geckofx60.32.60.0.54\lib\net45\Geckofx-Core.dll - - - ..\packages\Geckofx60.32.60.0.54\lib\net45\Geckofx-Winforms.dll - - - ..\packages\SIL.WritingSystems.9.0.0-beta0154\lib\net461\SIL.WritingSystems.dll - - - ..\packages\Spart.1.0.0\lib\net461\Spart.dll - - - - - 3.5 - - - - - ..\packages\System.IO.FileSystem.AccessControl.4.7.0\lib\net461\System.IO.FileSystem.AccessControl.dll - - - - - ..\packages\System.Security.AccessControl.4.7.0\lib\net461\System.Security.AccessControl.dll - - - ..\packages\System.Security.Principal.Windows.4.7.0\lib\net461\System.Security.Principal.Windows.dll - - - ..\packages\System.ValueTuple.4.5.0\lib\net461\System.ValueTuple.dll - - - - - - - - - - + Component - - - + UserControl - - AutoCompleteWithCreationBox.cs - - + UserControl - - - - + Component - - BetterLabel.cs - - + Component - + Component - + Component - + UserControl - - CheckBoxControl.cs - - + Component - + UserControl - - WeSayAudioFieldBox.cs - - + UserControl - - DeleteButton.cs - - - - - - + UserControl - - ScrollableContainer.cs - - - Component - - + UserControl - - GeckoBox.cs - - + UserControl - - GeckoComboBox.cs - - + UserControl - - GeckoListBox.cs - - + UserControl - - GeckoListView.cs - - - + Component - + Component - - WeSayListView.cs - - + UserControl - - PictureControl.cs - - + Component - - ReferenceCollectionEditor.cs - - + UserControl - - OptionCollectionControl.cs - - + UserControl - - CirclesProgressIndicator.cs - - - True - True - Resources.resx - - - - - + Component - - DetailList.cs - - - - - - + UserControl - - SingleOptionControl.cs - - + Component - - MultiTextControl.cs - - + Component - - WeSayListBox.cs - - + Component - - WeSayTextBox.cs - - - {5F61C809-B6C0-4567-9603-B2198E1AD038} - LexicalModel - - - {F12EB680-0990-4900-B77E-0FBF2E28A815} - WeSay.Foundation - + + - - AutoCompleteWithCreationBox.cs - Designer - - - BetterLabel.cs - Designer - - - Designer - CheckBoxControl.cs - - - DeleteButton.cs - - - PictureControl.cs - Designer - - - ReferenceCollectionEditor.cs - Designer - - - Designer - DetailList.cs - - - GeckoComboBox.cs - - - GeckoListBox.cs - - - GeckoListView.cs - - - MultiTextControl.cs - Designer - - - Designer - OptionCollectionControl.cs - - - Designer - ResXFileCodeGenerator - Resources.Designer.cs - - - WeSayAudioFieldBox.cs - Designer - - - Designer - WeSayTextBox.cs - - - GeckoBox.cs - + - - + - + + + False + $(PkgGeckofx60_64)\lib\net45\Geckofx-Core.dll + + + False + $(PkgGeckofx60_64)\lib\net45\Geckofx-Winforms.dll + + + + + + $(PkgSIL_Windows_Forms)\lib\net461\SIL.Windows.Forms.dll + + + + $(PkgSIL_Windows_Forms_Keyboarding)\lib\net461\SIL.Windows.Forms.Keyboarding.dll + + + + $(PkgSIL_Media)\lib\net461\SIL.Media.dll + - + + + + + + + + + + + + + + + + - + - - - - - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - - - \ No newline at end of file diff --git a/src/WeSay.UI/packages.config b/src/WeSay.UI/packages.config deleted file mode 100644 index 63c295d81..000000000 --- a/src/WeSay.UI/packages.config +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file