commit 27a1b61c3c30091274ed55f7fb37b0fce4eae358 parent 1180ae60a6d654e37672f73720e97861b4f5db75 Author: JohnMcPMS <johnmcp@microsoft.com> Date: Tue, 26 Jul 2022 17:44:54 -0700 Remove tests that no longer serve a purpose (#2379) Diffstat:
41 files changed, 27 insertions(+), 1464 deletions(-)
diff --git a/azure-pipelines.yml b/azure-pipelines.yml @@ -79,11 +79,6 @@ jobs: inputs: restoreSolution: 'src\AppInstallerTestMsixInstaller\AppInstallerTestMsixInstaller.wapproj' - - task: NuGetCommand@2 - displayName: Restore PackagedTests - inputs: - restoreSolution: 'src\PackagedTests\PackagedTests.csproj' - # Restores only .NET core projects, but is still necessary, as without this the IndexCreationTool and LocalhostWebServer projects fail to build - task: DotNetCoreCLI@2 displayName: DotNet Restore @@ -269,16 +264,6 @@ jobs: TargetFolder: '$(artifactsDir)\E2ETestsPackagedLog' condition: succeededOrFailed() - - task: VSTest@2 - displayName: Run Com Interface Tests - inputs: - testRunTitle: 'Com Interface Tests' - platform: '$(buildPlatform)' - testSelector: 'testAssemblies' - testAssemblyVer2: | - $(buildOutDir)\PackagedTests\PackagedTests.build.appxrecipe - runSettingsFile: '$(buildOutDir)\PackagedTests\Test.runsettings' - - task: CopyFiles@2 displayName: 'Copy Files: WinGetUtilInterop.UnitTests' inputs: diff --git a/src/AppInstallerCLI.sln b/src/AppInstallerCLI.sln @@ -1,10 +1,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.29409.12 +# Visual Studio Version 17 +VisualStudioVersion = 17.2.32630.192 MinimumVisualStudioVersion = 10.0.40219.1 Project("{C7167F0D-BC9F-4E6E-AFE1-012C56B48DB5}") = "AppInstallerCLIPackage", "AppInstallerCLIPackage\AppInstallerCLIPackage.wapproj", "{6AA3791A-0713-4548-A357-87A323E7AC3A}" ProjectSection(ProjectDependencies) = postProject - {4BC1F40B-36C2-4BBB-8306-76E490B13BBD} = {4BC1F40B-36C2-4BBB-8306-76E490B13BBD} {2B00D362-AC92-41F3-A8D2-5B1599BDCA01} = {2B00D362-AC92-41F3-A8D2-5B1599BDCA01} {1CC41A9A-AE66-459D-9210-1E572DD7BE69} = {1CC41A9A-AE66-459D-9210-1E572DD7BE69} {5B6F90DF-FD19-4BAE-83D9-24DAD128E777} = {5B6F90DF-FD19-4BAE-83D9-24DAD128E777} @@ -114,18 +113,6 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "WinGetServer", "WinGetServe {1CC41A9A-AE66-459D-9210-1E572DD7BE69} = {1CC41A9A-AE66-459D-9210-1E572DD7BE69} EndProjectSection EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Microsoft.Management.Deployment.Client", "Microsoft.Management.Deployment.Client\Microsoft.Management.Deployment.Client.vcxproj", "{4BC1F40B-36C2-4BBB-8306-76E490B13BBD}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Microsoft.Management.Deployment.Server.Test", "Microsoft.Management.Deployment.Server.Test\Microsoft.Management.Deployment.Server.Test.vcxproj", "{7DE2CFC7-5AAE-4F89-BF42-8D231E389687}" - ProjectSection(ProjectDependencies) = postProject - {1C6E0108-2860-4B17-9F7E-FA5C6C1F3D3D} = {1C6E0108-2860-4B17-9F7E-FA5C6C1F3D3D} - EndProjectSection -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PackagedTests", "PackagedTests\PackagedTests.csproj", "{8A4A39C8-E0EF-42B4-B8D9-A73E1209A568}" - ProjectSection(ProjectDependencies) = postProject - {7DE2CFC7-5AAE-4F89-BF42-8D231E389687} = {7DE2CFC7-5AAE-4F89-BF42-8D231E389687} - EndProjectSection -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WinGetUtilInterop", "WinGetUtilInterop\WinGetUtilInterop.csproj", "{846FB88B-BF1B-4F33-9883-E589CEC99739}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WinGetUtilInterop.UnitTests", "WinGetUtilInterop.UnitTests\WinGetUtilInterop.UnitTests.csproj", "{68808357-902B-406C-8C19-E8E26A69DE8A}" @@ -147,31 +134,6 @@ EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Detours", "UndockedRegFreeWinRT\detours\detours.vcxproj", "{787EC629-C0FB-4BA9-9746-4A82CD06B73E}" EndProject Global - GlobalSection(SharedMSBuildProjectFiles) = preSolution - ManifestSchema\ManifestSchema.vcxitems*{1622da16-914f-4f57-a259-d5169003cc8c}*SharedItemsImports = 4 - Valijson\Valijson.vcxitems*{1c6e0108-2860-4b17-9f7e-fa5c6c1f3d3d}*SharedItemsImports = 4 - WinGetSchemas\WinGetSchemas.vcxitems*{1c6e0108-2860-4b17-9f7e-fa5c6c1f3d3d}*SharedItemsImports = 4 - COMServer\COMServer.vcxitems*{1cc41a9a-ae66-459d-9210-1e572dd7be69}*SharedItemsImports = 4 - binver\binver.vcxitems*{2046b5af-666d-4ce8-8d3e-c32c57908a56}*SharedItemsImports = 4 - COMServer\COMServer.vcxitems*{2046b5af-666d-4ce8-8d3e-c32c57908a56}*SharedItemsImports = 4 - ManifestSchema\ManifestSchema.vcxitems*{2046b5af-666d-4ce8-8d3e-c32c57908a56}*SharedItemsImports = 4 - WinGetSchemas\WinGetSchemas.vcxitems*{2046b5af-666d-4ce8-8d3e-c32c57908a56}*SharedItemsImports = 4 - Valijson\Valijson.vcxitems*{358bc478-0624-4ad1-a933-0422b5292af8}*SharedItemsImports = 9 - COMServer\COMServer.vcxitems*{409cd681-22a4-469d-88ae-cb5e4836e07a}*SharedItemsImports = 9 - catch2\catch2.vcxitems*{5295e21e-9868-4de2-a177-fbb97b36579b}*SharedItemsImports = 9 - COMServer\COMServer.vcxitems*{5890d6ed-7c3b-40f3-b436-b54f640d9e65}*SharedItemsImports = 4 - ManifestSchema\ManifestSchema.vcxitems*{5890d6ed-7c3b-40f3-b436-b54f640d9e65}*SharedItemsImports = 4 - Valijson\Valijson.vcxitems*{5890d6ed-7c3b-40f3-b436-b54f640d9e65}*SharedItemsImports = 4 - binver\binver.vcxitems*{5b6f90df-fd19-4bae-83d9-24dad128e777}*SharedItemsImports = 4 - binver\binver.vcxitems*{6e36ddd7-1602-474e-b1d7-d0a7e1d5ad86}*SharedItemsImports = 9 - ManifestSchema\ManifestSchema.vcxitems*{7d05f64d-ce5a-42aa-a2c1-e91458f061cf}*SharedItemsImports = 9 - catch2\catch2.vcxitems*{89b1aab4-2bbc-4b65-9ed7-a01d5cf88230}*SharedItemsImports = 4 - ManifestSchema\ManifestSchema.vcxitems*{89b1aab4-2bbc-4b65-9ed7-a01d5cf88230}*SharedItemsImports = 4 - WinGetSchemas\WinGetSchemas.vcxitems*{89b1aab4-2bbc-4b65-9ed7-a01d5cf88230}*SharedItemsImports = 4 - WinGetSchemas\WinGetSchemas.vcxitems*{952b513f-8a00-4d74-9271-925afb3c6252}*SharedItemsImports = 9 - binver\binver.vcxitems*{fb313532-38b0-4676-9303-ab200aa13576}*SharedItemsImports = 4 - ManifestSchema\ManifestSchema.vcxitems*{fb313532-38b0-4676-9303-ab200aa13576}*SharedItemsImports = 4 - EndGlobalSection GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Debug|ARM = Debug|ARM @@ -792,98 +754,6 @@ Global {2B00D362-AC92-41F3-A8D2-5B1599BDCA01}.TestRelease|ARM64.ActiveCfg = Release|ARM64 {2B00D362-AC92-41F3-A8D2-5B1599BDCA01}.TestRelease|x64.ActiveCfg = Release|x64 {2B00D362-AC92-41F3-A8D2-5B1599BDCA01}.TestRelease|x86.ActiveCfg = Release|Win32 - {4BC1F40B-36C2-4BBB-8306-76E490B13BBD}.Debug|Any CPU.ActiveCfg = Debug|Win32 - {4BC1F40B-36C2-4BBB-8306-76E490B13BBD}.Debug|ARM.ActiveCfg = Debug|ARM - {4BC1F40B-36C2-4BBB-8306-76E490B13BBD}.Debug|ARM.Build.0 = Debug|ARM - {4BC1F40B-36C2-4BBB-8306-76E490B13BBD}.Debug|ARM64.ActiveCfg = Debug|ARM64 - {4BC1F40B-36C2-4BBB-8306-76E490B13BBD}.Debug|ARM64.Build.0 = Debug|ARM64 - {4BC1F40B-36C2-4BBB-8306-76E490B13BBD}.Debug|x64.ActiveCfg = Debug|x64 - {4BC1F40B-36C2-4BBB-8306-76E490B13BBD}.Debug|x64.Build.0 = Debug|x64 - {4BC1F40B-36C2-4BBB-8306-76E490B13BBD}.Debug|x86.ActiveCfg = Debug|Win32 - {4BC1F40B-36C2-4BBB-8306-76E490B13BBD}.Debug|x86.Build.0 = Debug|Win32 - {4BC1F40B-36C2-4BBB-8306-76E490B13BBD}.Fuzzing|Any CPU.ActiveCfg = Release|Win32 - {4BC1F40B-36C2-4BBB-8306-76E490B13BBD}.Fuzzing|Any CPU.Build.0 = Release|Win32 - {4BC1F40B-36C2-4BBB-8306-76E490B13BBD}.Fuzzing|ARM.ActiveCfg = Debug|ARM - {4BC1F40B-36C2-4BBB-8306-76E490B13BBD}.Fuzzing|ARM64.ActiveCfg = Debug|ARM64 - {4BC1F40B-36C2-4BBB-8306-76E490B13BBD}.Fuzzing|x64.ActiveCfg = Debug|x64 - {4BC1F40B-36C2-4BBB-8306-76E490B13BBD}.Fuzzing|x86.ActiveCfg = Debug|Win32 - {4BC1F40B-36C2-4BBB-8306-76E490B13BBD}.Release|Any CPU.ActiveCfg = Release|Win32 - {4BC1F40B-36C2-4BBB-8306-76E490B13BBD}.Release|ARM.ActiveCfg = Release|ARM - {4BC1F40B-36C2-4BBB-8306-76E490B13BBD}.Release|ARM.Build.0 = Release|ARM - {4BC1F40B-36C2-4BBB-8306-76E490B13BBD}.Release|ARM64.ActiveCfg = Release|ARM64 - {4BC1F40B-36C2-4BBB-8306-76E490B13BBD}.Release|ARM64.Build.0 = Release|ARM64 - {4BC1F40B-36C2-4BBB-8306-76E490B13BBD}.Release|x64.ActiveCfg = Release|x64 - {4BC1F40B-36C2-4BBB-8306-76E490B13BBD}.Release|x64.Build.0 = Release|x64 - {4BC1F40B-36C2-4BBB-8306-76E490B13BBD}.Release|x86.ActiveCfg = Release|Win32 - {4BC1F40B-36C2-4BBB-8306-76E490B13BBD}.Release|x86.Build.0 = Release|Win32 - {4BC1F40B-36C2-4BBB-8306-76E490B13BBD}.TestRelease|Any CPU.ActiveCfg = Release|Win32 - {4BC1F40B-36C2-4BBB-8306-76E490B13BBD}.TestRelease|Any CPU.Build.0 = Release|Win32 - {4BC1F40B-36C2-4BBB-8306-76E490B13BBD}.TestRelease|ARM.ActiveCfg = Release|ARM - {4BC1F40B-36C2-4BBB-8306-76E490B13BBD}.TestRelease|ARM.Build.0 = Release|ARM - {4BC1F40B-36C2-4BBB-8306-76E490B13BBD}.TestRelease|ARM64.ActiveCfg = Release|ARM64 - {4BC1F40B-36C2-4BBB-8306-76E490B13BBD}.TestRelease|ARM64.Build.0 = Release|ARM64 - {4BC1F40B-36C2-4BBB-8306-76E490B13BBD}.TestRelease|x64.ActiveCfg = Release|x64 - {4BC1F40B-36C2-4BBB-8306-76E490B13BBD}.TestRelease|x64.Build.0 = Release|x64 - {4BC1F40B-36C2-4BBB-8306-76E490B13BBD}.TestRelease|x86.ActiveCfg = Release|Win32 - {4BC1F40B-36C2-4BBB-8306-76E490B13BBD}.TestRelease|x86.Build.0 = Release|Win32 - {7DE2CFC7-5AAE-4F89-BF42-8D231E389687}.Debug|Any CPU.ActiveCfg = Debug|Win32 - {7DE2CFC7-5AAE-4F89-BF42-8D231E389687}.Debug|ARM.ActiveCfg = Debug|ARM - {7DE2CFC7-5AAE-4F89-BF42-8D231E389687}.Debug|ARM64.ActiveCfg = Debug|ARM64 - {7DE2CFC7-5AAE-4F89-BF42-8D231E389687}.Debug|x64.ActiveCfg = Debug|x64 - {7DE2CFC7-5AAE-4F89-BF42-8D231E389687}.Debug|x86.ActiveCfg = Debug|Win32 - {7DE2CFC7-5AAE-4F89-BF42-8D231E389687}.Fuzzing|Any CPU.ActiveCfg = Release|Win32 - {7DE2CFC7-5AAE-4F89-BF42-8D231E389687}.Fuzzing|Any CPU.Build.0 = Release|Win32 - {7DE2CFC7-5AAE-4F89-BF42-8D231E389687}.Fuzzing|ARM.ActiveCfg = Debug|ARM - {7DE2CFC7-5AAE-4F89-BF42-8D231E389687}.Fuzzing|ARM64.ActiveCfg = Debug|ARM64 - {7DE2CFC7-5AAE-4F89-BF42-8D231E389687}.Fuzzing|x64.ActiveCfg = Debug|x64 - {7DE2CFC7-5AAE-4F89-BF42-8D231E389687}.Fuzzing|x86.ActiveCfg = Debug|Win32 - {7DE2CFC7-5AAE-4F89-BF42-8D231E389687}.Release|Any CPU.ActiveCfg = Release|Win32 - {7DE2CFC7-5AAE-4F89-BF42-8D231E389687}.Release|ARM.ActiveCfg = Release|ARM - {7DE2CFC7-5AAE-4F89-BF42-8D231E389687}.Release|ARM64.ActiveCfg = Release|ARM64 - {7DE2CFC7-5AAE-4F89-BF42-8D231E389687}.Release|x64.ActiveCfg = Release|x64 - {7DE2CFC7-5AAE-4F89-BF42-8D231E389687}.Release|x86.ActiveCfg = Release|Win32 - {7DE2CFC7-5AAE-4F89-BF42-8D231E389687}.TestRelease|Any CPU.ActiveCfg = Release|Win32 - {7DE2CFC7-5AAE-4F89-BF42-8D231E389687}.TestRelease|Any CPU.Build.0 = Release|Win32 - {7DE2CFC7-5AAE-4F89-BF42-8D231E389687}.TestRelease|ARM.ActiveCfg = Release|ARM - {7DE2CFC7-5AAE-4F89-BF42-8D231E389687}.TestRelease|ARM.Build.0 = Release|ARM - {7DE2CFC7-5AAE-4F89-BF42-8D231E389687}.TestRelease|ARM64.ActiveCfg = Release|ARM64 - {7DE2CFC7-5AAE-4F89-BF42-8D231E389687}.TestRelease|ARM64.Build.0 = Release|ARM64 - {7DE2CFC7-5AAE-4F89-BF42-8D231E389687}.TestRelease|x64.ActiveCfg = Release|x64 - {7DE2CFC7-5AAE-4F89-BF42-8D231E389687}.TestRelease|x64.Build.0 = Release|x64 - {7DE2CFC7-5AAE-4F89-BF42-8D231E389687}.TestRelease|x86.ActiveCfg = Release|Win32 - {7DE2CFC7-5AAE-4F89-BF42-8D231E389687}.TestRelease|x86.Build.0 = Release|Win32 - {8A4A39C8-E0EF-42B4-B8D9-A73E1209A568}.Debug|Any CPU.ActiveCfg = Debug|x86 - {8A4A39C8-E0EF-42B4-B8D9-A73E1209A568}.Debug|ARM.ActiveCfg = Debug|ARM - {8A4A39C8-E0EF-42B4-B8D9-A73E1209A568}.Debug|ARM64.ActiveCfg = Debug|ARM64 - {8A4A39C8-E0EF-42B4-B8D9-A73E1209A568}.Debug|x64.ActiveCfg = Debug|x64 - {8A4A39C8-E0EF-42B4-B8D9-A73E1209A568}.Debug|x86.ActiveCfg = Debug|x86 - {8A4A39C8-E0EF-42B4-B8D9-A73E1209A568}.Fuzzing|Any CPU.ActiveCfg = Release|x86 - {8A4A39C8-E0EF-42B4-B8D9-A73E1209A568}.Fuzzing|Any CPU.Build.0 = Release|x86 - {8A4A39C8-E0EF-42B4-B8D9-A73E1209A568}.Fuzzing|Any CPU.Deploy.0 = Release|x86 - {8A4A39C8-E0EF-42B4-B8D9-A73E1209A568}.Fuzzing|ARM.ActiveCfg = Debug|ARM - {8A4A39C8-E0EF-42B4-B8D9-A73E1209A568}.Fuzzing|ARM64.ActiveCfg = Debug|ARM64 - {8A4A39C8-E0EF-42B4-B8D9-A73E1209A568}.Fuzzing|x64.ActiveCfg = Debug|x64 - {8A4A39C8-E0EF-42B4-B8D9-A73E1209A568}.Fuzzing|x86.ActiveCfg = Debug|x86 - {8A4A39C8-E0EF-42B4-B8D9-A73E1209A568}.Release|Any CPU.ActiveCfg = Release|x86 - {8A4A39C8-E0EF-42B4-B8D9-A73E1209A568}.Release|ARM.ActiveCfg = Release|ARM - {8A4A39C8-E0EF-42B4-B8D9-A73E1209A568}.Release|ARM64.ActiveCfg = Release|ARM64 - {8A4A39C8-E0EF-42B4-B8D9-A73E1209A568}.Release|x64.ActiveCfg = Release|x64 - {8A4A39C8-E0EF-42B4-B8D9-A73E1209A568}.Release|x86.ActiveCfg = Release|x86 - {8A4A39C8-E0EF-42B4-B8D9-A73E1209A568}.TestRelease|Any CPU.ActiveCfg = Release|x86 - {8A4A39C8-E0EF-42B4-B8D9-A73E1209A568}.TestRelease|Any CPU.Build.0 = Release|x86 - {8A4A39C8-E0EF-42B4-B8D9-A73E1209A568}.TestRelease|Any CPU.Deploy.0 = Release|x86 - {8A4A39C8-E0EF-42B4-B8D9-A73E1209A568}.TestRelease|ARM.ActiveCfg = Release|ARM - {8A4A39C8-E0EF-42B4-B8D9-A73E1209A568}.TestRelease|ARM.Build.0 = Release|ARM - {8A4A39C8-E0EF-42B4-B8D9-A73E1209A568}.TestRelease|ARM.Deploy.0 = Release|ARM - {8A4A39C8-E0EF-42B4-B8D9-A73E1209A568}.TestRelease|ARM64.ActiveCfg = Release|ARM64 - {8A4A39C8-E0EF-42B4-B8D9-A73E1209A568}.TestRelease|ARM64.Build.0 = Release|ARM64 - {8A4A39C8-E0EF-42B4-B8D9-A73E1209A568}.TestRelease|ARM64.Deploy.0 = Release|ARM64 - {8A4A39C8-E0EF-42B4-B8D9-A73E1209A568}.TestRelease|x64.ActiveCfg = Release|x64 - {8A4A39C8-E0EF-42B4-B8D9-A73E1209A568}.TestRelease|x64.Build.0 = Release|x64 - {8A4A39C8-E0EF-42B4-B8D9-A73E1209A568}.TestRelease|x64.Deploy.0 = Release|x64 - {8A4A39C8-E0EF-42B4-B8D9-A73E1209A568}.TestRelease|x86.ActiveCfg = Release|x86 - {8A4A39C8-E0EF-42B4-B8D9-A73E1209A568}.TestRelease|x86.Build.0 = Release|x86 - {8A4A39C8-E0EF-42B4-B8D9-A73E1209A568}.TestRelease|x86.Deploy.0 = Release|x86 {846FB88B-BF1B-4F33-9883-E589CEC99739}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {846FB88B-BF1B-4F33-9883-E589CEC99739}.Debug|Any CPU.Build.0 = Debug|Any CPU {846FB88B-BF1B-4F33-9883-E589CEC99739}.Debug|ARM.ActiveCfg = Debug|Any CPU @@ -1175,4 +1045,29 @@ Global GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {B6FDB70C-A751-422C-ACD1-E35419495857} EndGlobalSection + GlobalSection(SharedMSBuildProjectFiles) = preSolution + ManifestSchema\ManifestSchema.vcxitems*{1622da16-914f-4f57-a259-d5169003cc8c}*SharedItemsImports = 4 + Valijson\Valijson.vcxitems*{1c6e0108-2860-4b17-9f7e-fa5c6c1f3d3d}*SharedItemsImports = 4 + WinGetSchemas\WinGetSchemas.vcxitems*{1c6e0108-2860-4b17-9f7e-fa5c6c1f3d3d}*SharedItemsImports = 4 + COMServer\COMServer.vcxitems*{1cc41a9a-ae66-459d-9210-1e572dd7be69}*SharedItemsImports = 4 + binver\binver.vcxitems*{2046b5af-666d-4ce8-8d3e-c32c57908a56}*SharedItemsImports = 4 + COMServer\COMServer.vcxitems*{2046b5af-666d-4ce8-8d3e-c32c57908a56}*SharedItemsImports = 4 + ManifestSchema\ManifestSchema.vcxitems*{2046b5af-666d-4ce8-8d3e-c32c57908a56}*SharedItemsImports = 4 + WinGetSchemas\WinGetSchemas.vcxitems*{2046b5af-666d-4ce8-8d3e-c32c57908a56}*SharedItemsImports = 4 + Valijson\Valijson.vcxitems*{358bc478-0624-4ad1-a933-0422b5292af8}*SharedItemsImports = 9 + COMServer\COMServer.vcxitems*{409cd681-22a4-469d-88ae-cb5e4836e07a}*SharedItemsImports = 9 + catch2\catch2.vcxitems*{5295e21e-9868-4de2-a177-fbb97b36579b}*SharedItemsImports = 9 + COMServer\COMServer.vcxitems*{5890d6ed-7c3b-40f3-b436-b54f640d9e65}*SharedItemsImports = 4 + ManifestSchema\ManifestSchema.vcxitems*{5890d6ed-7c3b-40f3-b436-b54f640d9e65}*SharedItemsImports = 4 + Valijson\Valijson.vcxitems*{5890d6ed-7c3b-40f3-b436-b54f640d9e65}*SharedItemsImports = 4 + binver\binver.vcxitems*{5b6f90df-fd19-4bae-83d9-24dad128e777}*SharedItemsImports = 4 + binver\binver.vcxitems*{6e36ddd7-1602-474e-b1d7-d0a7e1d5ad86}*SharedItemsImports = 9 + ManifestSchema\ManifestSchema.vcxitems*{7d05f64d-ce5a-42aa-a2c1-e91458f061cf}*SharedItemsImports = 9 + catch2\catch2.vcxitems*{89b1aab4-2bbc-4b65-9ed7-a01d5cf88230}*SharedItemsImports = 4 + ManifestSchema\ManifestSchema.vcxitems*{89b1aab4-2bbc-4b65-9ed7-a01d5cf88230}*SharedItemsImports = 4 + WinGetSchemas\WinGetSchemas.vcxitems*{89b1aab4-2bbc-4b65-9ed7-a01d5cf88230}*SharedItemsImports = 4 + WinGetSchemas\WinGetSchemas.vcxitems*{952b513f-8a00-4d74-9271-925afb3c6252}*SharedItemsImports = 9 + binver\binver.vcxitems*{fb313532-38b0-4676-9303-ab200aa13576}*SharedItemsImports = 4 + ManifestSchema\ManifestSchema.vcxitems*{fb313532-38b0-4676-9303-ab200aa13576}*SharedItemsImports = 4 + EndGlobalSection EndGlobal diff --git a/src/Microsoft.Management.Deployment.Client/Client.CreateCompositePackageCatalogOptions.h b/src/Microsoft.Management.Deployment.Client/Client.CreateCompositePackageCatalogOptions.h @@ -1,15 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -#pragma once -#include "CreateCompositePackageCatalogOptions.g.h" - -namespace winrt::Microsoft::Management::Deployment::factory_implementation -{ - struct CreateCompositePackageCatalogOptions : CreateCompositePackageCatalogOptionsT<CreateCompositePackageCatalogOptions, implementation::CreateCompositePackageCatalogOptions> - { - auto ActivateInstance() const - { - return winrt::create_instance<winrt::Microsoft::Management::Deployment::CreateCompositePackageCatalogOptions>(__uuidof(implementation::CreateCompositePackageCatalogOptions), CLSCTX_ALL); - } - }; -} diff --git a/src/Microsoft.Management.Deployment.Client/Client.FindPackagesOptions.h b/src/Microsoft.Management.Deployment.Client/Client.FindPackagesOptions.h @@ -1,15 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -#pragma once -#include "FindPackagesOptions.g.h" - -namespace winrt::Microsoft::Management::Deployment::factory_implementation -{ - struct FindPackagesOptions : FindPackagesOptionsT<FindPackagesOptions, implementation::FindPackagesOptions> - { - auto ActivateInstance() const - { - return winrt::create_instance<winrt::Microsoft::Management::Deployment::FindPackagesOptions>(__uuidof(implementation::FindPackagesOptions), CLSCTX_ALL); - } - }; -} diff --git a/src/Microsoft.Management.Deployment.Client/Client.InstallOptions.h b/src/Microsoft.Management.Deployment.Client/Client.InstallOptions.h @@ -1,15 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -#pragma once -#include "InstallOptions.g.h" - -namespace winrt::Microsoft::Management::Deployment::factory_implementation -{ - struct InstallOptions : InstallOptionsT<InstallOptions, implementation::InstallOptions> - { - auto ActivateInstance() const - { - return winrt::create_instance<winrt::Microsoft::Management::Deployment::InstallOptions>(__uuidof(implementation::InstallOptions), CLSCTX_ALL); - } - }; -} diff --git a/src/Microsoft.Management.Deployment.Client/Client.PackageManager.h b/src/Microsoft.Management.Deployment.Client/Client.PackageManager.h @@ -1,13 +0,0 @@ -#pragma once -#include "PackageManager.g.h" - -namespace winrt::Microsoft::Management::Deployment::factory_implementation -{ - struct PackageManager : PackageManagerT<PackageManager, implementation::PackageManager> - { - auto ActivateInstance() const - { - return winrt::create_instance<winrt::Microsoft::Management::Deployment::PackageManager>(__uuidof(implementation::PackageManager), CLSCTX_ALL); - } - }; -} diff --git a/src/Microsoft.Management.Deployment.Client/Client.PackageManagerSettings.h b/src/Microsoft.Management.Deployment.Client/Client.PackageManagerSettings.h @@ -1,13 +0,0 @@ -#pragma once -#include "PackageManagerSettings.g.h" - -namespace winrt::Microsoft::Management::Deployment::factory_implementation -{ - struct PackageManagerSettings : PackageManagerSettingsT<PackageManagerSettings, implementation::PackageManagerSettings> - { - auto ActivateInstance() const - { - return winrt::create_instance<winrt::Microsoft::Management::Deployment::PackageManagerSettings>(__uuidof(implementation::PackageManagerSettings), CLSCTX_ALL); - } - }; -} diff --git a/src/Microsoft.Management.Deployment.Client/Client.PackageMatchFilter.h b/src/Microsoft.Management.Deployment.Client/Client.PackageMatchFilter.h @@ -1,15 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -#pragma once -#include "PackageMatchFilter.g.h" - -namespace winrt::Microsoft::Management::Deployment::factory_implementation -{ - struct PackageMatchFilter : PackageMatchFilterT<PackageMatchFilter, implementation::PackageMatchFilter> - { - auto ActivateInstance() const - { - return winrt::create_instance<winrt::Microsoft::Management::Deployment::PackageMatchFilter>(__uuidof(implementation::PackageMatchFilter), CLSCTX_ALL); - } - }; -} diff --git a/src/Microsoft.Management.Deployment.Client/Client.UninstallOptions.h b/src/Microsoft.Management.Deployment.Client/Client.UninstallOptions.h @@ -1,15 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -#pragma once -#include "UninstallOptions.g.h" - -namespace winrt::Microsoft::Management::Deployment::factory_implementation -{ - struct UninstallOptions : UninstallOptionsT<UninstallOptions, implementation::UninstallOptions> - { - auto ActivateInstance() const - { - return winrt::create_instance<winrt::Microsoft::Management::Deployment::UninstallOptions>(__uuidof(implementation::UninstallOptions), CLSCTX_ALL); - } - }; -} diff --git a/src/Microsoft.Management.Deployment.Client/CreateCompositePackageCatalogOptions.cpp b/src/Microsoft.Management.Deployment.Client/CreateCompositePackageCatalogOptions.cpp @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -#include "pch.h" -#pragma warning( push ) -#pragma warning ( disable : 4467 6388) -#include <CreateCompositePackageCatalogOptions.h> -#include <Client.CreateCompositePackageCatalogOptions.h> -#pragma warning( pop ) -#include "CreateCompositePackageCatalogOptions.g.cpp" - -namespace winrt::Microsoft::Management::Deployment::implementation -{ - winrt::Windows::Foundation::Collections::IVector<winrt::Microsoft::Management::Deployment::PackageCatalogReference> CreateCompositePackageCatalogOptions::Catalogs() - { - throw hresult_not_implemented(); - } - winrt::Microsoft::Management::Deployment::CompositeSearchBehavior CreateCompositePackageCatalogOptions::CompositeSearchBehavior() - { - throw hresult_not_implemented(); - } - void CreateCompositePackageCatalogOptions::CompositeSearchBehavior(winrt::Microsoft::Management::Deployment::CompositeSearchBehavior const&) - { - throw hresult_not_implemented(); - } -} diff --git a/src/Microsoft.Management.Deployment.Client/FindPackagesOptions.cpp b/src/Microsoft.Management.Deployment.Client/FindPackagesOptions.cpp @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -#include "pch.h" -#pragma warning( push ) -#pragma warning ( disable : 4467 6388) -#include <FindPackagesOptions.h> -#include <Client.FindPackagesOptions.h> -#pragma warning( pop ) -#include "FindPackagesOptions.g.cpp" - -namespace winrt::Microsoft::Management::Deployment::implementation -{ - winrt::Windows::Foundation::Collections::IVector<winrt::Microsoft::Management::Deployment::PackageMatchFilter> FindPackagesOptions::Selectors() - { - throw hresult_not_implemented(); - } - winrt::Windows::Foundation::Collections::IVector<winrt::Microsoft::Management::Deployment::PackageMatchFilter> FindPackagesOptions::Filters() - { - throw hresult_not_implemented(); - } - uint32_t FindPackagesOptions::ResultLimit() - { - throw hresult_not_implemented(); - } - void FindPackagesOptions::ResultLimit(uint32_t) - { - throw hresult_not_implemented(); - } -} diff --git a/src/Microsoft.Management.Deployment.Client/InstallOptions.cpp b/src/Microsoft.Management.Deployment.Client/InstallOptions.cpp @@ -1,101 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -#include "pch.h" -#pragma warning( push ) -#pragma warning ( disable : 4467 6388) -#include <InstallOptions.h> -#include <Client.InstallOptions.h> -#pragma warning( pop ) -#include "InstallOptions.g.cpp" - -namespace winrt::Microsoft::Management::Deployment::implementation -{ - InstallOptions::InstallOptions() - { - throw hresult_not_implemented(); - } - winrt::Microsoft::Management::Deployment::PackageVersionId InstallOptions::PackageVersionId() - { - throw hresult_not_implemented(); - } - void InstallOptions::PackageVersionId(winrt::Microsoft::Management::Deployment::PackageVersionId const&) - { - throw hresult_not_implemented(); - } - hstring InstallOptions::PreferredInstallLocation() - { - throw hresult_not_implemented(); - } - void InstallOptions::PreferredInstallLocation(hstring const&) - { - throw hresult_not_implemented(); - } - winrt::Microsoft::Management::Deployment::PackageInstallScope InstallOptions::PackageInstallScope() - { - throw hresult_not_implemented(); - } - void InstallOptions::PackageInstallScope(winrt::Microsoft::Management::Deployment::PackageInstallScope const&) - { - throw hresult_not_implemented(); - } - winrt::Microsoft::Management::Deployment::PackageInstallMode InstallOptions::PackageInstallMode() - { - throw hresult_not_implemented(); - } - void InstallOptions::PackageInstallMode(winrt::Microsoft::Management::Deployment::PackageInstallMode const&) - { - throw hresult_not_implemented(); - } - hstring InstallOptions::LogOutputPath() - { - throw hresult_not_implemented(); - } - void InstallOptions::LogOutputPath(hstring const&) - { - throw hresult_not_implemented(); - } - bool InstallOptions::AllowHashMismatch() - { - throw hresult_not_implemented(); - } - void InstallOptions::AllowHashMismatch(bool) - { - throw hresult_not_implemented(); - } - hstring InstallOptions::ReplacementInstallerArguments() - { - throw hresult_not_implemented(); - } - void InstallOptions::ReplacementInstallerArguments(hstring const&) - { - throw hresult_not_implemented(); - } - hstring InstallOptions::CorrelationData() - { - throw hresult_not_implemented(); - } - void InstallOptions::CorrelationData(hstring const&) - { - throw hresult_not_implemented(); - } - hstring InstallOptions::AdditionalPackageCatalogArguments() - { - throw hresult_not_implemented(); - } - void InstallOptions::AdditionalPackageCatalogArguments(hstring const&) - { - throw hresult_not_implemented(); - } - winrt::Windows::Foundation::Collections::IVector<winrt::Windows::System::ProcessorArchitecture> InstallOptions::AllowedArchitectures() - { - throw hresult_not_implemented(); - } - bool InstallOptions::AllowUpgradeToUnknownVersion() - { - throw hresult_not_implemented(); - } - void InstallOptions::AllowUpgradeToUnknownVersion(bool) - { - throw hresult_not_implemented(); - } -} diff --git a/src/Microsoft.Management.Deployment.Client/Microsoft.Management.Deployment.Client.vcxproj b/src/Microsoft.Management.Deployment.Client/Microsoft.Management.Deployment.Client.vcxproj @@ -1,179 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="..\packages\Microsoft.Windows.CppWinRT.2.0.210505.3\build\native\Microsoft.Windows.CppWinRT.props" Condition="Exists('..\packages\Microsoft.Windows.CppWinRT.2.0.210505.3\build\native\Microsoft.Windows.CppWinRT.props')" /> - <PropertyGroup Label="Globals"> - <CppWinRTOptimized>true</CppWinRTOptimized> - <CppWinRTRootNamespaceAutoMerge>true</CppWinRTRootNamespaceAutoMerge> - <CppWinRTGenerateWindowsMetadata>true</CppWinRTGenerateWindowsMetadata> - <MinimalCoreWin>true</MinimalCoreWin> - <ProjectGuid>{4bc1f40b-36c2-4bbb-8306-76e490b13bbd}</ProjectGuid> - <ProjectName>Microsoft.Management.Deployment.Client</ProjectName> - <RootNamespace>Microsoft.Management.Deployment</RootNamespace> - <DefaultLanguage>en-US</DefaultLanguage> - <MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion> - <AppContainerApplication>true</AppContainerApplication> - <ApplicationType>Windows Store</ApplicationType> - <ApplicationTypeRevision>10.0</ApplicationTypeRevision> - <WindowsTargetPlatformVersion>10.0.22000.0</WindowsTargetPlatformVersion> - <WindowsTargetPlatformMinVersion>10.0.17763.0</WindowsTargetPlatformMinVersion> - <WindowsSDKDesktopARMSupport>true</WindowsSDKDesktopARMSupport> - <WindowsSDKDesktopARM64Support>true</WindowsSDKDesktopARM64Support> - </PropertyGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> - <ItemGroup Label="ProjectConfigurations"> - <ProjectConfiguration Include="Debug|ARM"> - <Configuration>Debug</Configuration> - <Platform>ARM</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Debug|ARM64"> - <Configuration>Debug</Configuration> - <Platform>ARM64</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Debug|Win32"> - <Configuration>Debug</Configuration> - <Platform>Win32</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Debug|x64"> - <Configuration>Debug</Configuration> - <Platform>x64</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Release|ARM"> - <Configuration>Release</Configuration> - <Platform>ARM</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Release|ARM64"> - <Configuration>Release</Configuration> - <Platform>ARM64</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Release|Win32"> - <Configuration>Release</Configuration> - <Platform>Win32</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Release|x64"> - <Configuration>Release</Configuration> - <Platform>x64</Platform> - </ProjectConfiguration> - </ItemGroup> - <PropertyGroup Label="Configuration"> - <ConfigurationType>DynamicLibrary</ConfigurationType> - <PlatformToolset>v140</PlatformToolset> - <PlatformToolset Condition="'$(VisualStudioVersion)' == '15.0'">v141</PlatformToolset> - <PlatformToolset Condition="'$(VisualStudioVersion)' == '16.0'">v142</PlatformToolset> - <PlatformToolset Condition="'$(VisualStudioVersion)' == '17.0'">v143</PlatformToolset> - <CharacterSet>Unicode</CharacterSet> - <GenerateManifest>false</GenerateManifest> - <DesktopCompatible>true</DesktopCompatible> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)'=='Debug'" Label="Configuration"> - <UseDebugLibraries>true</UseDebugLibraries> - <LinkIncremental>true</LinkIncremental> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)'=='Release'" Label="Configuration"> - <UseDebugLibraries>false</UseDebugLibraries> - <WholeProgramOptimization>true</WholeProgramOptimization> - <LinkIncremental>false</LinkIncremental> - </PropertyGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> - <ImportGroup Label="ExtensionSettings"> - </ImportGroup> - <ImportGroup Label="Shared"> - </ImportGroup> - <ImportGroup Label="PropertySheets"> - <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> - </ImportGroup> - <ImportGroup Label="PropertySheets"> - <Import Project="PropertySheet.props" /> - </ImportGroup> - <PropertyGroup Label="UserMacros" /> - <PropertyGroup> - <IncludePath>..\Microsoft.Management.Deployment;$(VC_IncludePath);$(WindowsSDK_IncludePath);</IncludePath> - <OutDir>$(SolutionDir)$(PlatformTarget)\$(Configuration)\$(ProjectName)\</OutDir> - <IntDir>$(PlatformTarget)\$(Configuration)\</IntDir> - <TargetName>$(RootNamespace)</TargetName> - <CodeAnalysisTreatWarningsAsErrors>true</CodeAnalysisTreatWarningsAsErrors> - <RunCodeAnalysis>false</RunCodeAnalysis> - <CodeAnalysisRuleSet>..\CodeAnalysis.ruleset</CodeAnalysisRuleSet> - </PropertyGroup> - <ItemDefinitionGroup> - <ClCompile> - <PrecompiledHeader>Use</PrecompiledHeader> - <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile> - <PrecompiledHeaderOutputFile>$(IntDir)pch.pch</PrecompiledHeaderOutputFile> - <WarningLevel>Level4</WarningLevel> - <AdditionalOptions>%(AdditionalOptions) /bigobj</AdditionalOptions> - <!--Temporarily disable cppwinrt heap enforcement to work around xaml compiler generated std::shared_ptr use --> - <AdditionalOptions Condition="'$(CppWinRTHeapEnforcement)'==''">/DWINRT_NO_MAKE_DETECTION %(AdditionalOptions)</AdditionalOptions> - <DisableSpecificWarnings> - </DisableSpecificWarnings> - <PreprocessorDefinitions>INCLUDE_ONLY_INTERFACE_METHODS;_WINRT_DLL;WIN32_LEAN_AND_MEAN;WINRT_LEAN_AND_MEAN;%(PreprocessorDefinitions)</PreprocessorDefinitions> - <AdditionalUsingDirectories>$(WindowsSDK_WindowsMetadata);$(AdditionalUsingDirectories)</AdditionalUsingDirectories> - </ClCompile> - <Link> - <SubSystem>Console</SubSystem> - <GenerateWindowsMetadata>false</GenerateWindowsMetadata> - <ModuleDefinitionFile>Microsoft_Management_Deployment_Client.def</ModuleDefinitionFile> - </Link> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'"> - <ClCompile> - <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> - </ClCompile> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)'=='Release'"> - <ClCompile> - <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> - </ClCompile> - <Link> - <EnableCOMDATFolding>true</EnableCOMDATFolding> - <OptimizeReferences>true</OptimizeReferences> - <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">/debug:full /debugtype:cv,fixup /incremental:no %(AdditionalOptions)</AdditionalOptions> - <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">/debug:full /debugtype:cv,fixup /incremental:no %(AdditionalOptions)</AdditionalOptions> - <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/debug:full /debugtype:cv,fixup /incremental:no %(AdditionalOptions)</AdditionalOptions> - <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">/debug:full /debugtype:cv,fixup /incremental:no %(AdditionalOptions)</AdditionalOptions> - </Link> - </ItemDefinitionGroup> - <ItemGroup> - <ClInclude Include="Client.PackageManagerSettings.h" /> - <ClInclude Include="Client.UninstallOptions.h" /> - <ClInclude Include="pch.h" /> - <ClInclude Include="Client.CreateCompositePackageCatalogOptions.h" /> - <ClInclude Include="Client.FindPackagesOptions.h" /> - <ClInclude Include="Client.InstallOptions.h" /> - <ClInclude Include="Client.PackageManager.h" /> - <ClInclude Include="Client.PackageMatchFilter.h" /> - </ItemGroup> - <ItemGroup> - <ClCompile Include="CreateCompositePackageCatalogOptions.cpp" /> - <ClCompile Include="FindPackagesOptions.cpp" /> - <ClCompile Include="InstallOptions.cpp" /> - <ClCompile Include="PackageManagerSettings.cpp" /> - <ClCompile Include="PackageMatchFilter.cpp" /> - <ClCompile Include="pch.cpp"> - <PrecompiledHeader>Create</PrecompiledHeader> - </ClCompile> - <ClCompile Include="PackageManager.cpp" /> - <ClCompile Include="$(GeneratedFilesDir)module.g.cpp" /> - <ClCompile Include="UninstallOptions.cpp" /> - </ItemGroup> - <ItemGroup> - <Midl Include="..\Microsoft.Management.Deployment\PackageManager.idl" /> - </ItemGroup> - <ItemGroup> - <None Include="Microsoft_Management_Deployment_Client.def" /> - </ItemGroup> - <ItemGroup> - <None Include="packages.config" /> - <None Include="PropertySheet.props" /> - </ItemGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> - <ImportGroup Label="ExtensionTargets"> - <Import Project="..\packages\Microsoft.Windows.CppWinRT.2.0.210505.3\build\native\Microsoft.Windows.CppWinRT.targets" Condition="Exists('..\packages\Microsoft.Windows.CppWinRT.2.0.210505.3\build\native\Microsoft.Windows.CppWinRT.targets')" /> - </ImportGroup> - <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> - <PropertyGroup> - <ErrorText>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}.</ErrorText> - </PropertyGroup> - <Error Condition="!Exists('..\packages\Microsoft.Windows.CppWinRT.2.0.210505.3\build\native\Microsoft.Windows.CppWinRT.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Windows.CppWinRT.2.0.210505.3\build\native\Microsoft.Windows.CppWinRT.props'))" /> - <Error Condition="!Exists('..\packages\Microsoft.Windows.CppWinRT.2.0.210505.3\build\native\Microsoft.Windows.CppWinRT.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Windows.CppWinRT.2.0.210505.3\build\native\Microsoft.Windows.CppWinRT.targets'))" /> - </Target> -</Project>- \ No newline at end of file diff --git a/src/Microsoft.Management.Deployment.Client/Microsoft_Management_Deployment_Client.def b/src/Microsoft.Management.Deployment.Client/Microsoft_Management_Deployment_Client.def @@ -1,3 +0,0 @@ -EXPORTS -DllCanUnloadNow = WINRT_CanUnloadNow PRIVATE -DllGetActivationFactory = WINRT_GetActivationFactory PRIVATE diff --git a/src/Microsoft.Management.Deployment.Client/PackageManager.cpp b/src/Microsoft.Management.Deployment.Client/PackageManager.cpp @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -#include "pch.h" -#pragma warning( push ) -#pragma warning ( disable : 4467 6388) -#include <PackageManager.h> -#include <Client.PackageManager.h> -#pragma warning( pop ) -#include "PackageManager.g.cpp" - -namespace winrt::Microsoft::Management::Deployment::implementation -{ - winrt::Windows::Foundation::Collections::IVectorView<winrt::Microsoft::Management::Deployment::PackageCatalogReference> PackageManager::GetPackageCatalogs() - { - throw hresult_not_implemented(); - } - winrt::Microsoft::Management::Deployment::PackageCatalogReference PackageManager::GetPredefinedPackageCatalog(winrt::Microsoft::Management::Deployment::PredefinedPackageCatalog const&) - { - throw hresult_not_implemented(); - } - winrt::Microsoft::Management::Deployment::PackageCatalogReference PackageManager::GetLocalPackageCatalog(winrt::Microsoft::Management::Deployment::LocalPackageCatalog const&) - { - throw hresult_not_implemented(); - } - winrt::Microsoft::Management::Deployment::PackageCatalogReference PackageManager::GetPackageCatalogByName(hstring const&) - { - throw hresult_not_implemented(); - } - winrt::Microsoft::Management::Deployment::PackageCatalogReference PackageManager::CreateCompositePackageCatalog(winrt::Microsoft::Management::Deployment::CreateCompositePackageCatalogOptions const&) - { - throw hresult_not_implemented(); - } - winrt::Windows::Foundation::IAsyncOperationWithProgress<winrt::Microsoft::Management::Deployment::InstallResult, winrt::Microsoft::Management::Deployment::InstallProgress> PackageManager::InstallPackageAsync(winrt::Microsoft::Management::Deployment::CatalogPackage package, winrt::Microsoft::Management::Deployment::InstallOptions) - { - throw hresult_not_implemented(); - } - winrt::Windows::Foundation::IAsyncOperationWithProgress<winrt::Microsoft::Management::Deployment::InstallResult, winrt::Microsoft::Management::Deployment::InstallProgress> PackageManager::GetInstallProgress(winrt::Microsoft::Management::Deployment::CatalogPackage package, winrt::Microsoft::Management::Deployment::PackageCatalogInfo catalogInfo) - { - throw hresult_not_implemented(); - } - winrt::Windows::Foundation::IAsyncOperationWithProgress<winrt::Microsoft::Management::Deployment::InstallResult, winrt::Microsoft::Management::Deployment::InstallProgress> PackageManager::UpgradePackageAsync(winrt::Microsoft::Management::Deployment::CatalogPackage package, winrt::Microsoft::Management::Deployment::InstallOptions) - { - throw hresult_not_implemented(); - } - winrt::Windows::Foundation::IAsyncOperationWithProgress<winrt::Microsoft::Management::Deployment::UninstallResult, winrt::Microsoft::Management::Deployment::UninstallProgress> PackageManager::UninstallPackageAsync(winrt::Microsoft::Management::Deployment::CatalogPackage package, winrt::Microsoft::Management::Deployment::UninstallOptions) - { - throw hresult_not_implemented(); - } - winrt::Windows::Foundation::IAsyncOperationWithProgress<winrt::Microsoft::Management::Deployment::UninstallResult, winrt::Microsoft::Management::Deployment::UninstallProgress> PackageManager::GetUninstallProgress(winrt::Microsoft::Management::Deployment::CatalogPackage package, winrt::Microsoft::Management::Deployment::PackageCatalogInfo catalogInfo) - { - throw hresult_not_implemented(); - } -} diff --git a/src/Microsoft.Management.Deployment.Client/PackageManagerSettings.cpp b/src/Microsoft.Management.Deployment.Client/PackageManagerSettings.cpp @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -#include "pch.h" -#pragma warning( push ) -#pragma warning ( disable : 4467 6388) -#include <PackageManagerSettings.h> -#include <Client.PackageManagerSettings.h> -#pragma warning( pop ) -#include "PackageManagerSettings.g.cpp" - -namespace winrt::Microsoft::Management::Deployment::implementation -{ - bool PackageManagerSettings::SetCallerIdentifier(hstring const&) - { - throw hresult_not_implemented(); - } - bool PackageManagerSettings::SetStateIdentifier(hstring const&) - { - throw hresult_not_implemented(); - } - bool PackageManagerSettings::SetUserSettings(hstring const&) - { - throw hresult_not_implemented(); - } -} diff --git a/src/Microsoft.Management.Deployment.Client/PackageMatchFilter.cpp b/src/Microsoft.Management.Deployment.Client/PackageMatchFilter.cpp @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -#include "pch.h" -#pragma warning( push ) -#pragma warning ( disable : 4467 6388) -#include <PackageMatchFilter.h> -#include <Client.PackageMatchFilter.h> -#pragma warning( pop ) -#include "PackageMatchFilter.g.cpp" - -namespace winrt::Microsoft::Management::Deployment::implementation -{ - winrt::Microsoft::Management::Deployment::PackageFieldMatchOption PackageMatchFilter::Option() - { - throw hresult_not_implemented();; - } - void PackageMatchFilter::Option(winrt::Microsoft::Management::Deployment::PackageFieldMatchOption const&) - { - throw hresult_not_implemented(); - } - winrt::Microsoft::Management::Deployment::PackageMatchField PackageMatchFilter::Field() - { - throw hresult_not_implemented(); - } - void PackageMatchFilter::Field(winrt::Microsoft::Management::Deployment::PackageMatchField const&) - { - throw hresult_not_implemented(); - } - hstring PackageMatchFilter::Value() - { - throw hresult_not_implemented(); - } - void PackageMatchFilter::Value(hstring const&) - { - throw hresult_not_implemented(); - } -} diff --git a/src/Microsoft.Management.Deployment.Client/PropertySheet.props b/src/Microsoft.Management.Deployment.Client/PropertySheet.props @@ -1,16 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <ImportGroup Label="PropertySheets" /> - <PropertyGroup Label="UserMacros" /> - <!-- - To customize common C++/WinRT project properties: - * right-click the project node - * expand the Common Properties item - * select the C++/WinRT property page - - For more advanced scenarios, and complete documentation, please see: - https://github.com/Microsoft/cppwinrt/tree/master/nuget - --> - <PropertyGroup /> - <ItemDefinitionGroup /> -</Project>- \ No newline at end of file diff --git a/src/Microsoft.Management.Deployment.Client/UninstallOptions.cpp b/src/Microsoft.Management.Deployment.Client/UninstallOptions.cpp @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -#include "pch.h" -#pragma warning( push ) -#pragma warning ( disable : 4467 6388) -#include <UninstallOptions.h> -#include <Client.UninstallOptions.h> -#pragma warning( pop ) -#include "UninstallOptions.g.cpp" - -namespace winrt::Microsoft::Management::Deployment::implementation -{ - UninstallOptions::UninstallOptions() - { - throw hresult_not_implemented(); - } - winrt::Microsoft::Management::Deployment::PackageVersionId UninstallOptions::PackageVersionId() - { - throw hresult_not_implemented(); - } - void UninstallOptions::PackageVersionId(winrt::Microsoft::Management::Deployment::PackageVersionId const&) - { - throw hresult_not_implemented(); - } - winrt::Microsoft::Management::Deployment::PackageUninstallMode UninstallOptions::PackageUninstallMode() - { - throw hresult_not_implemented(); - } - void UninstallOptions::PackageUninstallMode(winrt::Microsoft::Management::Deployment::PackageUninstallMode const&) - { - throw hresult_not_implemented(); - } - hstring UninstallOptions::LogOutputPath() - { - throw hresult_not_implemented(); - } - void UninstallOptions::LogOutputPath(hstring const&) - { - throw hresult_not_implemented(); - } - hstring UninstallOptions::CorrelationData() - { - throw hresult_not_implemented(); - } - void UninstallOptions::CorrelationData(hstring const&) - { - throw hresult_not_implemented(); - } -} diff --git a/src/Microsoft.Management.Deployment.Client/packages.config b/src/Microsoft.Management.Deployment.Client/packages.config @@ -1,4 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<packages> - <package id="Microsoft.Windows.CppWinRT" version="2.0.210505.3" targetFramework="native" /> -</packages>- \ No newline at end of file diff --git a/src/Microsoft.Management.Deployment.Client/pch.cpp b/src/Microsoft.Management.Deployment.Client/pch.cpp @@ -1,3 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -#include "pch.h" diff --git a/src/Microsoft.Management.Deployment.Client/pch.h b/src/Microsoft.Management.Deployment.Client/pch.h @@ -1,7 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -#pragma once -#include <unknwn.h> -#include <winrt/Windows.Foundation.h> -#include <winrt/Windows.Foundation.Collections.h> -#include <winrt/Microsoft.Management.Deployment.h> diff --git a/src/Microsoft.Management.Deployment.Server.Test/Microsoft.Management.Deployment.Server.Test.vcxproj b/src/Microsoft.Management.Deployment.Server.Test/Microsoft.Management.Deployment.Server.Test.vcxproj @@ -1,178 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.210505.3\build\native\Microsoft.Windows.CppWinRT.props" Condition="Exists('$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.210505.3\build\native\Microsoft.Windows.CppWinRT.props')" /> - <PropertyGroup Label="Globals"> - <CppWinRTOptimized>true</CppWinRTOptimized> - <CppWinRTRootNamespaceAutoMerge>true</CppWinRTRootNamespaceAutoMerge> - <CppWinRTGenerateWindowsMetadata>true</CppWinRTGenerateWindowsMetadata> - <MinimalCoreWin>true</MinimalCoreWin> - <VCProjectVersion>15.0</VCProjectVersion> - <ProjectGuid>{7DE2CFC7-5AAE-4F89-BF42-8D231E389687}</ProjectGuid> - <Keyword>Win32Proj</Keyword> - <RootNamespace>Microsoft.Management.Deployment.Server.Test</RootNamespace> - <WindowsTargetPlatformVersion>10.0.22000.0</WindowsTargetPlatformVersion> - <WindowsTargetPlatformMinVersion>10.0.17763.0</WindowsTargetPlatformMinVersion> - <WindowsSDKDesktopARMSupport>true</WindowsSDKDesktopARMSupport> - <WindowsSDKDesktopARM64Support>true</WindowsSDKDesktopARM64Support> - <ProjectName>Microsoft.Management.Deployment.Server.Test</ProjectName> - <TargetName>Microsoft.Management.Deployment.Server.Test</TargetName> - </PropertyGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> - <ItemGroup Label="ProjectConfigurations"> - <ProjectConfiguration Include="Debug|ARM"> - <Configuration>Debug</Configuration> - <Platform>ARM</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Debug|ARM64"> - <Configuration>Debug</Configuration> - <Platform>ARM64</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Debug|Win32"> - <Configuration>Debug</Configuration> - <Platform>Win32</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Debug|x64"> - <Configuration>Debug</Configuration> - <Platform>x64</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Release|ARM"> - <Configuration>Release</Configuration> - <Platform>ARM</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Release|ARM64"> - <Configuration>Release</Configuration> - <Platform>ARM64</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Release|Win32"> - <Configuration>Release</Configuration> - <Platform>Win32</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Release|x64"> - <Configuration>Release</Configuration> - <Platform>x64</Platform> - </ProjectConfiguration> - </ItemGroup> - <PropertyGroup Label="Configuration"> - <ConfigurationType>DynamicLibrary</ConfigurationType> - <PlatformToolset>v140</PlatformToolset> - <PlatformToolset Condition="'$(VisualStudioVersion)' == '15.0'">v141</PlatformToolset> - <PlatformToolset Condition="'$(VisualStudioVersion)' == '16.0'">v142</PlatformToolset> - <PlatformToolset Condition="'$(VisualStudioVersion)' == '17.0'">v143</PlatformToolset> - <CharacterSet>Unicode</CharacterSet> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)'=='Debug'" Label="Configuration"> - <UseDebugLibraries>true</UseDebugLibraries> - <LinkIncremental>true</LinkIncremental> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)'=='Release'" Label="Configuration"> - <UseDebugLibraries>false</UseDebugLibraries> - <WholeProgramOptimization>true</WholeProgramOptimization> - <LinkIncremental>false</LinkIncremental> - <SpectreMitigation>Spectre</SpectreMitigation> - </PropertyGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> - <ImportGroup Label="ExtensionSettings"> - </ImportGroup> - <ImportGroup Label="Shared"> - </ImportGroup> - <ImportGroup Label="PropertySheets"> - <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> - </ImportGroup> - <PropertyGroup Label="UserMacros" /> - <PropertyGroup> - <OutDir>$(SolutionDir)$(PlatformTarget)\$(Configuration)\$(ProjectName)\</OutDir> - <IntDir>$(PlatformTarget)\$(Configuration)\</IntDir> - <LibraryPath>$(OutDir)..\Microsoft.Management.Deployment;$(OutDir)..\AppInstallerCLICore;$(OutDir)..\JsonCppLib;$(OutDir)..\AppInstallerRepositoryCore;$(OutDir)..\YamlCppLib;$(OutDir)..\AppInstallerCommonCore;$(OutDir)..\cpprestsdk;$(LibraryPath)</LibraryPath> - <CodeAnalysisTreatWarningsAsErrors>true</CodeAnalysisTreatWarningsAsErrors> - <RunCodeAnalysis>false</RunCodeAnalysis> - <CodeAnalysisRuleSet>..\CodeAnalysis.ruleset</CodeAnalysisRuleSet> - </PropertyGroup> - <ItemDefinitionGroup> - <ClCompile> - <PrecompiledHeader>NotUsing</PrecompiledHeader> - <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile> - <PrecompiledHeaderOutputFile>$(IntDir)pch.pch</PrecompiledHeaderOutputFile> - <PreprocessorDefinitions>WIN32_LEAN_AND_MEAN;WINRT_LEAN_AND_MEAN;%(PreprocessorDefinitions)</PreprocessorDefinitions> - <WarningLevel>Level4</WarningLevel> - <AdditionalOptions>%(AdditionalOptions) /permissive- /bigobj</AdditionalOptions> - <TreatWarningAsError>true</TreatWarningAsError> - <SDLCheck>true</SDLCheck> - <EnablePREfast>true</EnablePREfast> - <AdditionalIncludeDirectories>$(ProjectDir)..\AppInstallerCLICore;$(ProjectDir)..\AppInstallerRepositoryCore;$(ProjectDir)..\AppInstallerRepositoryCore\Public;$(ProjectDir)..\AppInstallerCommonCore\Public;$(ProjectDir)..\JsonCppLib\json;$(ProjectDir)..\JsonCppLib;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> - </ClCompile> - <Link> - <SubSystem>Windows</SubSystem> - <GenerateWindowsMetadata>false</GenerateWindowsMetadata> - <ModuleDefinitionFile>Microsoft_Management_Deployment_Server_Test.def</ModuleDefinitionFile> - <AdditionalLibraryDirectories>$(OutDir)..\Microsoft.Management.Deployment;$(OutDir)..\AppInstallerCLICore;$(OutDir)..\JsonCppLib;$(OutDir)..\AppInstallerRepositoryCore;$(OutDir)..\YamlCppLib;$(OutDir)..\AppInstallerCommonCore;$(OutDir)..\cpprestsdk;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> - <AdditionalDependencies>Microsoft.Management.Deployment.Server.lib;AppInstallerCLICore.lib;AppInstallerCommonCore.lib;AppInstallerRepositoryCore.lib;JsonCppLib.lib;YamlCppLib.lib;cpprestsdk.lib;wininet.lib;shell32.lib;winsqlite3.lib;shlwapi.lib;icuuc.lib;icuin.lib;urlmon.lib;Advapi32.lib;winhttp.lib;onecoreuap.lib;msi.lib;%(AdditionalDependencies)</AdditionalDependencies> - </Link> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'"> - <ClCompile> - <Optimization>Disabled</Optimization> - <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> - </ClCompile> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Platform)'=='Win32'"> - <ClCompile> - <PreprocessorDefinitions>WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions> - </ClCompile> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)'=='Release'"> - <ClCompile> - <Optimization>MaxSpeed</Optimization> - <FunctionLevelLinking>true</FunctionLevelLinking> - <IntrinsicFunctions>true</IntrinsicFunctions> - <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> - </ClCompile> - <Link> - <EnableCOMDATFolding>true</EnableCOMDATFolding> - <OptimizeReferences>true</OptimizeReferences> - <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">/debug:full /debugtype:cv,fixup /incremental:no %(AdditionalOptions)</AdditionalOptions> - <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">/debug:full /debugtype:cv,fixup /incremental:no %(AdditionalOptions)</AdditionalOptions> - <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">/debug:full /debugtype:cv,fixup /incremental:no %(AdditionalOptions)</AdditionalOptions> - <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">/debug:full /debugtype:cv,fixup /incremental:no %(AdditionalOptions)</AdditionalOptions> - </Link> - </ItemDefinitionGroup> - <ItemGroup> - <None Include="Microsoft_Management_Deployment_Server_Test.def" /> - <None Include="packages.config" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="..\AppInstallerCommonCore\AppInstallerCommonCore.vcxproj"> - <Project>{5890d6ed-7c3b-40f3-b436-b54f640d9e65}</Project> - </ProjectReference> - <ProjectReference Include="..\AppInstallerRepositoryCore\AppInstallerRepositoryCore.vcxproj"> - <Project>{5eb88068-5fb9-4e69-89b2-72dbc5e068f9}</Project> - </ProjectReference> - <ProjectReference Include="..\cpprestsdk\cpprestsdk.vcxproj"> - <Project>{866c3f06-636f-4be8-bc24-5f86ecc606a1}</Project> - </ProjectReference> - <ProjectReference Include="..\JsonCppLib\JsonCppLib.vcxproj"> - <Project>{82b39fda-e86b-4713-a873-9d56de00247a}</Project> - </ProjectReference> - <ProjectReference Include="..\YamlCppLib\YamlCppLib.vcxproj"> - <Project>{8bb94bb8-374f-4294-bca1-c7811514a6b7}</Project> - </ProjectReference> - <ProjectReference Include="..\Microsoft.Management.Deployment\Microsoft.Management.Deployment.vcxproj"> - <Project>{1cc41a9a-ae66-459d-9210-1e572dd7be69}</Project> - </ProjectReference> - </ItemGroup> - <ItemGroup> - <ClCompile Include="dllmain.cpp" /> - </ItemGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> - <ImportGroup Label="ExtensionTargets"> - <Import Project="$(SolutionDir)\packages\Microsoft.Windows.ImplementationLibrary.1.0.210204.1\build\native\Microsoft.Windows.ImplementationLibrary.targets" Condition="Exists('$(SolutionDir)\packages\Microsoft.Windows.ImplementationLibrary.1.0.210204.1\build\native\Microsoft.Windows.ImplementationLibrary.targets')" /> - <Import Project="$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.210505.3\build\native\Microsoft.Windows.CppWinRT.targets" Condition="Exists('$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.210505.3\build\native\Microsoft.Windows.CppWinRT.targets')" /> - </ImportGroup> - <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> - <PropertyGroup> - <ErrorText>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}.</ErrorText> - </PropertyGroup> - <Error Condition="!Exists('$(SolutionDir)\packages\Microsoft.Windows.ImplementationLibrary.1.0.210204.1\build\native\Microsoft.Windows.ImplementationLibrary.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\packages\Microsoft.Windows.ImplementationLibrary.1.0.210204.1\build\native\Microsoft.Windows.ImplementationLibrary.targets'))" /> - <Error Condition="!Exists('$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.210505.3\build\native\Microsoft.Windows.CppWinRT.props')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.210505.3\build\native\Microsoft.Windows.CppWinRT.props'))" /> - <Error Condition="!Exists('$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.210505.3\build\native\Microsoft.Windows.CppWinRT.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.210505.3\build\native\Microsoft.Windows.CppWinRT.targets'))" /> - </Target> -</Project>- \ No newline at end of file diff --git a/src/Microsoft.Management.Deployment.Server.Test/Microsoft.Management.Deployment.Server.Test.vcxproj.filters b/src/Microsoft.Management.Deployment.Server.Test/Microsoft.Management.Deployment.Server.Test.vcxproj.filters @@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <ItemGroup> - <Filter Include="Source Files"> - <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier> - <Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions> - </Filter> - <Filter Include="Header Files"> - <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier> - <Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions> - </Filter> - <Filter Include="Resource Files"> - <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier> - <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions> - </Filter> - </ItemGroup> - <ItemGroup> - <None Include="packages.config" /> - <None Include="Microsoft_Management_Deployment_Server_Test.def"> - <Filter>Source Files</Filter> - </None> - </ItemGroup> - <ItemGroup> - <ClCompile Include="dllmain.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - </ItemGroup> -</Project>- \ No newline at end of file diff --git a/src/Microsoft.Management.Deployment.Server.Test/Microsoft_Management_Deployment_Server_Test.def b/src/Microsoft.Management.Deployment.Server.Test/Microsoft_Management_Deployment_Server_Test.def @@ -1,3 +0,0 @@ -EXPORTS -DllCanUnloadNow = WINRT_CanUnloadNow PRIVATE -DllGetActivationFactory = WINRT_GetActivationFactory PRIVATE diff --git a/src/Microsoft.Management.Deployment.Server.Test/dllmain.cpp b/src/Microsoft.Management.Deployment.Server.Test/dllmain.cpp @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -#include "winrt/base.h" -#include <windows.h> -#include <string_view> - -void* __stdcall Microsoft_Management_Deployment_get_activation_factory(std::wstring_view const& name); -bool __stdcall Microsoft_Management_Deployment_can_unload_now(); - -BOOL APIENTRY DllMain( HMODULE, - DWORD ul_reason_for_call, - LPVOID - ) -{ - switch (ul_reason_for_call) - { - case DLL_PROCESS_ATTACH: - case DLL_THREAD_ATTACH: - case DLL_THREAD_DETACH: - case DLL_PROCESS_DETACH: - break; - } - return TRUE; -} - -void* __stdcall winrt_get_activation_factory( - std::wstring_view const& name) -{ - return Microsoft_Management_Deployment_get_activation_factory(name); -} - -int32_t __stdcall WINRT_GetActivationFactory(void* classId, void** factory) noexcept try -{ - std::wstring_view const name{ *reinterpret_cast<winrt::hstring*>(&classId) }; - *factory = winrt_get_activation_factory(name); - - if (*factory) - { - return 0; - } - - return winrt::hresult_class_not_available(name).to_abi(); -} -catch (...) { return winrt::to_hresult(); } - -bool __stdcall winrt_can_unload_now() noexcept -{ - return Microsoft_Management_Deployment_can_unload_now(); -} - -int32_t __stdcall WINRT_CanUnloadNow() noexcept -{ - return winrt_can_unload_now() ? 0 : 1; -}- \ No newline at end of file diff --git a/src/PackagedTests/Assets/LockScreenLogo.scale-200.png b/src/PackagedTests/Assets/LockScreenLogo.scale-200.png Binary files differ. diff --git a/src/PackagedTests/Assets/SplashScreen.scale-200.png b/src/PackagedTests/Assets/SplashScreen.scale-200.png Binary files differ. diff --git a/src/PackagedTests/Assets/Square150x150Logo.scale-200.png b/src/PackagedTests/Assets/Square150x150Logo.scale-200.png Binary files differ. diff --git a/src/PackagedTests/Assets/Square44x44Logo.scale-200.png b/src/PackagedTests/Assets/Square44x44Logo.scale-200.png Binary files differ. diff --git a/src/PackagedTests/Assets/Square44x44Logo.targetsize-24_altform-unplated.png b/src/PackagedTests/Assets/Square44x44Logo.targetsize-24_altform-unplated.png Binary files differ. diff --git a/src/PackagedTests/Assets/StoreLogo.png b/src/PackagedTests/Assets/StoreLogo.png Binary files differ. diff --git a/src/PackagedTests/Assets/Wide310x150Logo.scale-200.png b/src/PackagedTests/Assets/Wide310x150Logo.scale-200.png Binary files differ. diff --git a/src/PackagedTests/ComInterfaceUnitTest.cs b/src/PackagedTests/ComInterfaceUnitTest.cs @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using Microsoft.Management.Deployment; -using Microsoft.VisualStudio.TestTools.UnitTesting; - -namespace PackagedUnitTests -{ - [TestClass] - public class ComInterfaceUnitTests - { - [TestMethod] - public void OpenPredefinedCatalog() - { - PackageManager packageManager = new PackageManager(); - PackageCatalogReference catalogRef = packageManager.GetPredefinedPackageCatalog(PredefinedPackageCatalog.OpenWindowsCatalog); - Assert.IsTrue(catalogRef.Info.Name.Equals("winget")); - IReadOnlyList<PackageCatalogReference> catalogs = packageManager.GetPackageCatalogs(); - Assert.IsTrue(catalogs.Count > 0); - bool foundDefaultCatalog = false; - for(int i = 0; i < catalogs.Count; i++) - { - if (catalogs[i].Info.Name.Equals("winget")) - { - foundDefaultCatalog = true; - break; - } - } - Assert.IsTrue(foundDefaultCatalog); - } - - [TestMethod] - public void OpenPredefinedStoreCatalog() - { - PackageManager packageManager = new PackageManager(); - PackageCatalogReference catalogRef = packageManager.GetPredefinedPackageCatalog(PredefinedPackageCatalog.MicrosoftStore); - Assert.IsTrue(catalogRef.Info.Name.Equals("msstore")); - } - } -} diff --git a/src/PackagedTests/Package.appxmanifest b/src/PackagedTests/Package.appxmanifest @@ -1,50 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Package - xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" - xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" - xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" - xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities" - xmlns:com="http://schemas.microsoft.com/appx/manifest/com/windows10" - IgnorableNamespaces="uap mp"> - - <Identity Name="d48b2b89-4897-4798-bd51-cf9763e1c9d0" - Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" - Version="1.0.4.0" /> - - <mp:PhoneIdentity PhoneProductId="d48b2b89-4897-4798-bd51-cf9763e1c9d0" PhonePublisherId="00000000-0000-0000-0000-000000000000"/> - - <Properties> - <DisplayName>PackagedUnitTests</DisplayName> - <PublisherDisplayName>Microsoft Corporation</PublisherDisplayName> - <Logo>Assets\StoreLogo.png</Logo> - </Properties> - - <Dependencies> - <TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" /> - </Dependencies> - - <Resources> - <Resource Language="x-generate" /> - </Resources> - <Applications> - <Application Id="vstest.executionengine.universal.App" - Executable="$targetnametoken$.exe" - EntryPoint="PackagedUnitTests.App"> - <uap:VisualElements - DisplayName="PackagedUnitTests" - Square150x150Logo="Assets\Square150x150Logo.png" - Square44x44Logo="Assets\Square44x44Logo.png" - Description="PackagedUnitTests" - BackgroundColor="transparent"> - <uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png"/> - <uap:SplashScreen Image="Assets\SplashScreen.png" /> - </uap:VisualElements> - </Application> - </Applications> - <Capabilities> - <Capability Name="internetClientServer" /> - <Capability Name="privateNetworkClientServer" /> - <rescap:Capability Name="runFullTrust" /> - <rescap:Capability Name="packageManagement" /> - </Capabilities> -</Package>- \ No newline at end of file diff --git a/src/PackagedTests/PackagedTests.csproj b/src/PackagedTests/PackagedTests.csproj @@ -1,130 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="Current"> - <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">x86</Platform> - <ProjectGuid>{8A4A39C8-E0EF-42B4-B8D9-A73E1209A568}</ProjectGuid> - <OutputType>AppContainerExe</OutputType> - <AppDesignerFolder>Properties</AppDesignerFolder> - <RootNamespace>PackagedUnitTests</RootNamespace> - <AssemblyName>PackagedUnitTests</AssemblyName> - <DefaultLanguage>en-US</DefaultLanguage> - <TargetPlatformIdentifier>UAP</TargetPlatformIdentifier> - <TargetPlatformVersion>10.0.22000.0</TargetPlatformVersion> - <TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion> - <MinimumVisualStudioVersion>14</MinimumVisualStudioVersion> - <EnableDotNetNativeCompatibleProfile>true</EnableDotNetNativeCompatibleProfile> - <FileAlignment>512</FileAlignment> - <ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> - <UnitTestPlatformVersion Condition="'$(UnitTestPlatformVersion)' == ''">$(VisualStudioVersion)</UnitTestPlatformVersion> - <AppxPackageSigningEnabled>false</AppxPackageSigningEnabled> - <GenerateAppInstallerFile>False</GenerateAppInstallerFile> - <AppxAutoIncrementPackageRevision>True</AppxAutoIncrementPackageRevision> - <GenerateTestArtifacts>True</GenerateTestArtifacts> - <HoursBetweenUpdateChecks>0</HoursBetweenUpdateChecks> - <NoWarn>;2008</NoWarn> - <ErrorReport>prompt</ErrorReport> - <UseVSHostingProcess>false</UseVSHostingProcess> - <Prefer32Bit>true</Prefer32Bit> - <DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants> - </PropertyGroup> - <PropertyGroup Condition="'$(Platform)' == 'x86'"> - <PlatformTarget>x86</PlatformTarget> - </PropertyGroup> - <PropertyGroup Condition="'$(Platform)' == 'x64'"> - <PlatformTarget>x64</PlatformTarget> - </PropertyGroup> - <PropertyGroup Condition="'$(Platform)' == 'ARM'"> - <PlatformTarget>ARM</PlatformTarget> - </PropertyGroup> - <PropertyGroup Condition="'$(Platform)' == 'ARM64'"> - <PlatformTarget>ARM64</PlatformTarget> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)' == 'Debug'"> - <DefineConstants>DEBUG;$(DefineConstants)</DefineConstants> - <DebugSymbols>true</DebugSymbols> - <DebugType>full</DebugType> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)' == 'Release'"> - <DebugType>pdbonly</DebugType> - <Optimize>true</Optimize> - <UseDotNetNativeToolchain>true</UseDotNetNativeToolchain> - </PropertyGroup> - <PropertyGroup> - <OutputPath>$(SolutionDir)$(PlatformTarget)\$(Configuration)\$(ProjectName)\</OutputPath> - <OutDir>$(SolutionDir)$(PlatformTarget)\$(Configuration)\$(ProjectName)\</OutDir> - </PropertyGroup> - <ItemGroup> - <SDKReference Include="TestPlatform.Universal, Version=$(UnitTestPlatformVersion)" /> - </ItemGroup> - <ItemGroup> - <Compile Include="Properties\AssemblyInfo.cs" /> - <Compile Include="UnitTestApp.xaml.cs"> - <DependentUpon>UnitTestApp.xaml</DependentUpon> - </Compile> - <Compile Include="ComInterfaceUnitTest.cs" /> - </ItemGroup> - <ItemGroup> - <ApplicationDefinition Include="UnitTestApp.xaml"> - <Generator>MSBuild:Compile</Generator> - <SubType>Designer</SubType> - </ApplicationDefinition> - </ItemGroup> - <ItemGroup> - <AppxManifest Include="Package.appxmanifest"> - <SubType>Designer</SubType> - </AppxManifest> - </ItemGroup> - <ItemGroup> - <Content Include="Properties\Default.rd.xml" /> - <Content Include="Assets\LockScreenLogo.scale-200.png" /> - <Content Include="Assets\SplashScreen.scale-200.png" /> - <Content Include="Assets\Square150x150Logo.scale-200.png" /> - <Content Include="Assets\Square44x44Logo.scale-200.png" /> - <Content Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png" /> - <Content Include="Assets\StoreLogo.png" /> - <Content Include="Assets\Wide310x150Logo.scale-200.png" /> - <Content Include="$(SolutionDir)$(PlatformTarget)\$(Configuration)\Microsoft.Management.Deployment.Server.Test\Microsoft.Management.Deployment.Server.Test.dll"> - <Link>%(RecursiveDir)Microsoft.Management.Deployment.dll</Link> - <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> - </Content> - </ItemGroup> - <ItemGroup> - <PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform"> - <Version>6.2.12</Version> - </PackageReference> - <PackageReference Include="Microsoft.NET.Test.Sdk"> - <Version>16.11.0</Version> - </PackageReference> - <PackageReference Include="MSTest.TestAdapter"> - <Version>2.2.5</Version> - </PackageReference> - <PackageReference Include="MSTest.TestFramework"> - <Version>2.2.5</Version> - </PackageReference> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="..\Microsoft.Management.Deployment.Client\Microsoft.Management.Deployment.Client.vcxproj"> - <Project>{4bc1f40b-36c2-4bbb-8306-76e490b13bbd}</Project> - <Name>Microsoft.Management.Deployment.Client</Name> - <Private>False</Private> - </ProjectReference> - </ItemGroup> - <ItemGroup> - <None Include="Test.runsettings"> - <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> - </None> - </ItemGroup> - <PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '14.0' "> - <VisualStudioVersion>14.0</VisualStudioVersion> - </PropertyGroup> - <Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" /> - <!-- To modify your build process, add your task inside one of the targets below and uncomment it. - Other similar extension points exist, see Microsoft.Common.targets. - <Target Name="BeforeBuild"> - </Target> - <Target Name="AfterBuild"> - </Target> - --> -</Project>- \ No newline at end of file diff --git a/src/PackagedTests/Properties/AssemblyInfo.cs b/src/PackagedTests/Properties/AssemblyInfo.cs @@ -1,18 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -[assembly: AssemblyTitle("PackagedUnitTests")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("HP Inc.")] -[assembly: AssemblyProduct("PackagedUnitTests")] -[assembly: AssemblyCopyright("Copyright © HP Inc. 2021")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] -[assembly: AssemblyMetadata("TargetPlatform","UAP")] - -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] -[assembly: ComVisible(false)]- \ No newline at end of file diff --git a/src/PackagedTests/Properties/Default.rd.xml b/src/PackagedTests/Properties/Default.rd.xml @@ -1,29 +0,0 @@ -<!-- - This file contains Runtime Directives used by .NET Native. The defaults here are suitable for most - developers. However, you can modify these parameters to modify the behavior of the .NET Native - optimizer. - - Runtime Directives are documented at https://go.microsoft.com/fwlink/?LinkID=391919 - - To fully enable reflection for App1.MyClass and all of its public/private members - <Type Name="App1.MyClass" Dynamic="Required All"/> - - To enable dynamic creation of the specific instantiation of AppClass<T> over System.Int32 - <TypeInstantiation Name="App1.AppClass" Arguments="System.Int32" Activate="Required Public" /> - - Using the Namespace directive to apply reflection policy to all the types in a particular namespace - <Namespace Name="DataClasses.ViewModels" Serialize="All" /> ---> - -<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata"> - <Application> - <!-- - An Assembly element with Name="*Application*" applies to all assemblies in - the application package. The asterisks are not wildcards. - --> - <Assembly Name="*Application*" Dynamic="Required All" /> - <!-- Add your application specific runtime directives here. --> - - - </Application> -</Directives>- \ No newline at end of file diff --git a/src/PackagedTests/Test.runsettings b/src/PackagedTests/Test.runsettings @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> - -<RunSettings> - <!-- Configurations that affect the Test Framework --> - <RunConfiguration> - <!-- Value that specifies the exit code when no tests are discovered --> - <TreatNoTestsAsError>true</TreatNoTestsAsError> - </RunConfiguration> - - <!-- Configuration for loggers --> - <LoggerRunSettings> - <Loggers> - <Logger friendlyName="console" enabled="True"> - <Configuration> - <Verbosity>quiet</Verbosity> - </Configuration> - </Logger> - <Logger friendlyName="trx" enabled="True"> - <Configuration> - <LogFileName>PackagedTestsResults.trx</LogFileName> - </Configuration> - </Logger> - <Logger friendlyName="html" enabled="True"> - <Configuration> - <LogFileName>PackagedTestsResults.html</LogFileName> - </Configuration> - </Logger> - </Loggers> - </LoggerRunSettings> - -</RunSettings>- \ No newline at end of file diff --git a/src/PackagedTests/UnitTestApp.xaml b/src/PackagedTests/UnitTestApp.xaml @@ -1,7 +0,0 @@ -<Application - x:Class="PackagedUnitTests.App" - xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" - xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:local="using:PackagedUnitTests"> - -</Application> diff --git a/src/PackagedTests/UnitTestApp.xaml.cs b/src/PackagedTests/UnitTestApp.xaml.cs @@ -1,102 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Runtime.InteropServices.WindowsRuntime; -using Windows.ApplicationModel; -using Windows.ApplicationModel.Activation; -using Windows.Foundation; -using Windows.Foundation.Collections; -using Windows.UI.Xaml; -using Windows.UI.Xaml.Controls; -using Windows.UI.Xaml.Controls.Primitives; -using Windows.UI.Xaml.Data; -using Windows.UI.Xaml.Input; -using Windows.UI.Xaml.Media; -using Windows.UI.Xaml.Navigation; - -namespace PackagedUnitTests -{ - /// <summary> - /// Provides application-specific behavior to supplement the default Application class. - /// </summary> - sealed partial class App : Application - { - /// <summary> - /// Initializes the singleton application object. This is the first line of authored code - /// executed, and as such is the logical equivalent of main() or WinMain(). - /// </summary> - public App() - { - this.InitializeComponent(); - this.Suspending += OnSuspending; - } - - /// <summary> - /// Invoked when the application is launched normally by the end user. Other entry points - /// will be used such as when the application is launched to open a specific file. - /// </summary> - /// <param name="e">Details about the launch request and process.</param> - protected override void OnLaunched(LaunchActivatedEventArgs e) - { - -#if DEBUG - if (System.Diagnostics.Debugger.IsAttached) - { - this.DebugSettings.EnableFrameRateCounter = true; - } -#endif - - Frame rootFrame = Window.Current.Content as Frame; - - // Do not repeat app initialization when the Window already has content, - // just ensure that the window is active - if (rootFrame == null) - { - // Create a Frame to act as the navigation context and navigate to the first page - rootFrame = new Frame(); - - rootFrame.NavigationFailed += OnNavigationFailed; - - if (e.PreviousExecutionState == ApplicationExecutionState.Terminated) - { - //TODO: Load state from previously suspended application - } - - // Place the frame in the current Window - Window.Current.Content = rootFrame; - } - - Microsoft.VisualStudio.TestPlatform.TestExecutor.UnitTestClient.CreateDefaultUI(); - - // Ensure the current window is active - Window.Current.Activate(); - - Microsoft.VisualStudio.TestPlatform.TestExecutor.UnitTestClient.Run(e.Arguments); - } - - /// <summary> - /// Invoked when Navigation to a certain page fails - /// </summary> - /// <param name="sender">The Frame which failed navigation</param> - /// <param name="e">Details about the navigation failure</param> - void OnNavigationFailed(object sender, NavigationFailedEventArgs e) - { - throw new Exception("Failed to load Page " + e.SourcePageType.FullName); - } - - /// <summary> - /// Invoked when application execution is being suspended. Application state is saved - /// without knowing whether the application will be terminated or resumed with the contents - /// of memory still intact. - /// </summary> - /// <param name="sender">The source of the suspend request.</param> - /// <param name="e">Details about the suspend request.</param> - private void OnSuspending(object sender, SuspendingEventArgs e) - { - var deferral = e.SuspendingOperation.GetDeferral(); - //TODO: Save application state and stop any background activity - deferral.Complete(); - } - } -}