Add copyright header to all files (#153)

This commit is contained in:
Jake Friedman 2021-05-11 10:43:16 -07:00 коммит произвёл GitHub
Родитель 31829b7f4e
Коммит d2898810b4
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
83 изменённых файлов: 807 добавлений и 676 удалений

Просмотреть файл

@ -1,9 +1,12 @@
# Microsoft Open Source Code of Conduct
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
Resources:
- [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/)
- [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
- Contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with questions or concerns
<!-- Copyright (c) Microsoft Corporation. -->
<!-- Licensed under the MIT license. -->
# Microsoft Open Source Code of Conduct
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
Resources:
- [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/)
- [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
- Contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with questions or concerns

Просмотреть файл

@ -0,0 +1,10 @@
<!-- Copyright (c) Microsoft Corporation. -->
<!-- Licensed under the MIT license. -->
Accepting the Contributor Licence Agreement (CLA)
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit <https://cla.opensource.microsoft.com>.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
Happy Coding!

Просмотреть файл

@ -1,3 +1,6 @@
<!-- Copyright (c) Microsoft Corporation. -->
<!-- Licensed under the MIT license. -->
# [Factory Orchestrator](https://microsoft.github.io/FactoryOrchestrator/)
[![Build Status](https://microsoft.visualstudio.com/OneCore/_apis/build/status/FactoryOrchestrator/FO-PublicFacing-CI?branchName=main)](https://microsoft.visualstudio.com/OneCore/_build/latest?definitionId=54749&branchName=main)
@ -93,15 +96,15 @@ When the MAJOR version diverges between a Client and Service, Clients will be pr
## Code of Conduct
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see [CODE_OF_CONDUCT.md](./CODE_OF_CONDUCT.md) or contact opencode@microsoft.com with any additional questions or comments.
## Contributing
Accepting the Contributor Licence Agreement (CLA)
Accepting the Contributor Licence Agreement (CLA)
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit <https://cla.opensource.microsoft.com>.
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit <https://cla.opensource.microsoft.com>.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
Happy Coding!

Просмотреть файл

@ -1,41 +1,44 @@
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.5 BLOCK -->
## Security
Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).
If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://docs.microsoft.com/en-us/previous-versions/tn-archive/cc751383(v=technet.10)), please report it to us as described below.
## Reporting Security Issues
**Please do not report security vulnerabilities through public GitHub issues.**
Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://msrc.microsoft.com/create-report).
If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://www.microsoft.com/en-us/msrc/pgp-key-msrc).
You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc).
Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
* Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
* Full paths of source file(s) related to the manifestation of the issue
* The location of the affected source code (tag/branch/commit or direct URL)
* Any special configuration required to reproduce the issue
* Step-by-step instructions to reproduce the issue
* Proof-of-concept or exploit code (if possible)
* Impact of the issue, including how an attacker might exploit the issue
This information will help us triage your report more quickly.
If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://microsoft.com/msrc/bounty) page for more details about our active programs.
## Preferred Languages
We prefer all communications to be in English.
## Policy
Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://www.microsoft.com/en-us/msrc/cvd).
<!-- END MICROSOFT SECURITY.MD BLOCK -->
<!-- Copyright (c) Microsoft Corporation. -->
<!-- Licensed under the MIT license. -->
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.5 BLOCK -->
## Security
Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).
If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://docs.microsoft.com/en-us/previous-versions/tn-archive/cc751383(v=technet.10)), please report it to us as described below.
## Reporting Security Issues
**Please do not report security vulnerabilities through public GitHub issues.**
Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://msrc.microsoft.com/create-report).
If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://www.microsoft.com/en-us/msrc/pgp-key-msrc).
You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc).
Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
* Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
* Full paths of source file(s) related to the manifestation of the issue
* The location of the affected source code (tag/branch/commit or direct URL)
* Any special configuration required to reproduce the issue
* Step-by-step instructions to reproduce the issue
* Proof-of-concept or exploit code (if possible)
* Impact of the issue, including how an attacker might exploit the issue
This information will help us triage your report more quickly.
If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://microsoft.com/msrc/bounty) page for more details about our active programs.
## Preferred Languages
We prefer all communications to be in English.
## Policy
Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://www.microsoft.com/en-us/msrc/cvd).
<!-- END MICROSOFT SECURITY.MD BLOCK -->

Просмотреть файл

@ -1,2 +1,5 @@
@echo off
start cmd.exe /C "explorer.exe shell:appsFolder\Microsoft.FactoryOrchestratorApp.DEV_8wekyb3d8bbwe!App"
REM Copyright (c) Microsoft Corporation.
REM Licensed under the MIT license.
@echo off
start cmd.exe /C "explorer.exe shell:appsFolder\Microsoft.FactoryOrchestratorApp.DEV_8wekyb3d8bbwe!App"

Просмотреть файл

@ -1,2 +1,5 @@
@echo off
start cmd.exe /C "dotnet %~dp0bin\Debug\AnyCPU\Microsoft.FactoryOrchestrator.ClientSample\netcoreapp3.1\Microsoft.FactoryOrchestrator.ClientSample.dll %1 %2 %3 %4 & PAUSE"
REM Copyright (c) Microsoft Corporation.
REM Licensed under the MIT license.
@echo off
start cmd.exe /C "dotnet %~dp0bin\Debug\AnyCPU\Microsoft.FactoryOrchestrator.ClientSample\netcoreapp3.1\Microsoft.FactoryOrchestrator.ClientSample.dll %1 %2 %3 %4 & PAUSE"

Просмотреть файл

@ -1,2 +1,5 @@
@echo off
start cmd.exe /C "dotnet %~dp0\bin\Debug\AnyCPU\Microsoft.FactoryOrchestrator.Service\netcoreapp3.1\Microsoft.FactoryOrchestrator.Service.dll & PAUSE"
REM Copyright (c) Microsoft Corporation.
REM Licensed under the MIT license.
@echo off
start cmd.exe /C "dotnet %~dp0\bin\Debug\AnyCPU\Microsoft.FactoryOrchestrator.Service\netcoreapp3.1\Microsoft.FactoryOrchestrator.Service.dll & PAUSE"

Просмотреть файл

@ -1,14 +1,17 @@
#CI Pipeline.
name: $(BuildDefinitionName)_$(date:yyMM).$(date:dd)$(rev:rrr)
trigger:
- main
pr:
- none
variables:
FORepoRoot: '$(Build.SourcesDirectory)'
VERSIONSUFFIXDOTNET: ''
stages:
- template: templates/template-ci-pr-stages.yml
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
#CI Pipeline.
name: $(BuildDefinitionName)_$(date:yyMM).$(date:dd)$(rev:rrr)
trigger:
- main
pr:
- none
variables:
FORepoRoot: '$(Build.SourcesDirectory)'
VERSIONSUFFIXDOTNET: ''
stages:
- template: templates/template-ci-pr-stages.yml

Просмотреть файл

@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
#PR Pipeline.
name: $(BuildDefinitionName)_$(date:yyMM).$(date:dd)$(rev:rrr)

Просмотреть файл

@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
#
# Localization
# This pipeline uploads English strings files to the localization service, downloads any translated
@ -75,4 +78,4 @@ jobs:
condition: eq(variables['hasChanges'], '1')
inputs:
artifactName: LocalizationPatch
targetPath: $(Build.ArtifactStagingDirectory)
targetPath: $(Build.ArtifactStagingDirectory)

Просмотреть файл

@ -1,15 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<PoliCheckExclusions>
<!-- Each of these exclusions is a folder name - if any folder or file starts with "\[name]", it will be skipped -->
<Exclusion Type="FolderPathStart">.GIT|.VS|OBJ|.INFRA</Exclusion>
<!-- Exclude docfx styles folder -->
<Exclusion Type="FolderPathFull">STYLES</Exclusion>
<!-- The specified file names will be skipped during the scan regardless which folder they are in -->
<Exclusion Type="FileName">DOCFX.VENDOR.JS</Exclusion>
<Exclusion Type="FileName">IpcServiceFramework.Core.Tests.environment.txt</Exclusion>
<Exclusion Type="FileName">IpcServiceFramework.IntegrationTests.environment.txt</Exclusion>
<Exclusion Type="FileName">IpcServiceFramework.Client.environment.txt</Exclusion>
<Exclusion Type="FileName">IpcServiceFramework.Server.environment.txt</Exclusion>
<Exclusion Type="FileName">IpcServiceFramework.Core.environment.txt</Exclusion>
</PoliCheckExclusions>
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) Microsoft Corporation. -->
<!-- Licensed under the MIT license. -->
<PoliCheckExclusions>
<!-- Each of these exclusions is a folder name - if any folder or file starts with "\[name]", it will be skipped -->
<Exclusion Type="FolderPathStart">.GIT|.VS|OBJ|.INFRA</Exclusion>
<!-- Exclude docfx styles folder -->
<Exclusion Type="FolderPathFull">STYLES</Exclusion>
<!-- The specified file names will be skipped during the scan regardless which folder they are in -->
<Exclusion Type="FileName">DOCFX.VENDOR.JS</Exclusion>
<Exclusion Type="FileName">IpcServiceFramework.Core.Tests.environment.txt</Exclusion>
<Exclusion Type="FileName">IpcServiceFramework.IntegrationTests.environment.txt</Exclusion>
<Exclusion Type="FileName">IpcServiceFramework.Client.environment.txt</Exclusion>
<Exclusion Type="FileName">IpcServiceFramework.Server.environment.txt</Exclusion>
<Exclusion Type="FileName">IpcServiceFramework.Core.environment.txt</Exclusion>
</PoliCheckExclusions>

Просмотреть файл

@ -0,0 +1,70 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
# This script is manually run and makes a best effort attempt to add the copyright header to all source/build files in the repo.
function Add-CopyrightHeader
{
param
(
$file,
$prefix,
$suffix = ""
)
if ((($file -like "*/bin/*") -or ($file -like "*\bin\*")) -or (($file -like "*/obj/*") -or ($file -like "*\obj\*")) -or (($file -like "*/oss/*") -or ($file -like "*\oss\*")) -or (($file -like "*/docs/CoreLibrary/*") -or ($file -like "*\docs\CoreLibrary\*")) -or (($file -like "*/docs/ClientLibrary/*") -or ($file -like "*\docs\ClientLibrary\*")))
{
return
}
Write-Verbose "Checking $file"
[System.Collections.ArrayList]$c = get-content $file
if (($null -ne $c) -and (($c[0] -like "*<?xml*")) -and (-not ($c[1] -like "*Microsoft Corporation*")))
{
Write-Host "Adding copyright header to $file"
$c.Insert(1, "$prefix Copyright (c) Microsoft Corporation.$suffix")
$c.Insert(2, "$prefix Licensed under the MIT license.$suffix")
$c.Insert(3, "")
Set-Content -Path $file -Value $c
}
else
{
if (($null -ne $c) -and (-not ($c[0] -like "*Microsoft Corporation*")))
{
Write-Host "Adding copyright header to $file"
$c.Insert(0, "$prefix Copyright (c) Microsoft Corporation.$suffix")
$c.Insert(1, "$prefix Licensed under the MIT license.$suffix")
$c.Insert(2, "")
Set-Content -Path $file -Value $c
}
}
}
$files = get-childitem "$PSScriptRoot/../../" -recurse -filter "*.yml"
$files += get-childitem "$PSScriptRoot/../../" -recurse -filter "*.ps1"
$files += get-childitem "$PSScriptRoot/../../" -recurse -filter "*.sh"
$files += get-childitem "$PSScriptRoot/../../" -recurse -filter "*.editorconfig"
foreach ($f in $files)
{
Add-CopyrightHeader $f "#"
}
$files = get-childitem "$PSScriptRoot/../../" -recurse -filter "*.cs"
foreach ($f in $files)
{
Add-CopyrightHeader $f "//"
}
$files = get-childitem "$PSScriptRoot/../../" -recurse -filter "*.cmd"
$files += get-childitem "$PSScriptRoot/../../" -recurse -filter "*.bat"
foreach ($f in $files)
{
Add-CopyrightHeader $f "REM"
}
$files = get-childitem "$PSScriptRoot/../../" -recurse -filter "*.xml"
$files += get-childitem "$PSScriptRoot/../../" -recurse -filter "*.csproj"
$files += get-childitem "$PSScriptRoot/../../" -recurse -filter "*.props"
$files += get-childitem "$PSScriptRoot/../../" -recurse -filter "*.md"
foreach ($f in $files)
{
Add-CopyrightHeader $f "<!--" " -->"
}

Просмотреть файл

@ -1,4 +1,6 @@
<?xml version='1.0' encoding='utf-8' standalone='yes'?>
<!-- Copyright (c) Microsoft Corporation. -->
<!-- Licensed under the MIT license. -->
<identity
xmlns="urn:Microsoft.CompPlat/ManifestSchema.v1.00"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
@ -66,4 +68,4 @@
</regKeys>
<files>
</files>
</identity>
</identity>

Просмотреть файл

@ -1,63 +0,0 @@
{
"Branch": [
{
"collection": "microsoft",
"project": "OS",
"repo": "os.2020",
"name": "official/rs_onecore_sigma_dplat",
"completePR": "False",
"CheckinFiles": [
{
"source": "FactoryOrchestrator.Service.x86.man",
"path": "/shellcommon/base/manufacturing/FactoryOrchestrator",
"type": "File"
},
{
"source": "FactoryOrchestrator.Service.x64.man",
"path": "/shellcommon/base/manufacturing/FactoryOrchestrator",
"type": "File"
},
{
"source": "FactoryOrchestrator.Service.ARM.man",
"path": "/shellcommon/base/manufacturing/FactoryOrchestrator",
"type": "File"
},
{
"source": "FactoryOrchestrator.Service.ARM64.man",
"path": "/shellcommon/base/manufacturing/FactoryOrchestrator",
"type": "File"
},
{
"source": "FactoryOrchestrator.msixbundle.man",
"path": "/shellcommon/base/manufacturing/FactoryOrchestrator",
"type": "File"
},
{
"source": "FactoryOrchestrator.ClientLibraries.man",
"path": "/shellcommon/base/manufacturing/FactoryOrchestrator",
"type": "File"
},
{
"source": "FactoryOrchestrator.ClientSampleWSK.man",
"path": "/shellcommon/base/manufacturing/FactoryOrchestrator",
"type": "File"
},
{
"source": "FactoryOrchestrator.NetCoreTests.man",
"path": "/shellcommon/base/manufacturing/FactoryOrchestrator",
"type": "File"
},
{
"source": "Version.xml",
"path": "/shellcommon/base/manufacturing/FactoryOrchestrator",
"type": "File"
}
]
}
],
"Email": [
{
"sendTo": "jafriedm"
}
]
}

Просмотреть файл

@ -1,7 +0,0 @@
echo.
echo Creating multi-architecture(x86, x64, arm) Appx bundles ...
call %TFS_ToolsDirectory%\bin\MakeAppxBundle.cmd -appxBundleFilename "Microsoft.FactoryOrchestratorApp_8wekyb3d8bbwe.msixbundle" -projectDir "FactoryOrchestratorApp" -multi $True -signBundle $False -platforms "x86","x64","arm" -configurations "Debug" -appxBundleOutputSubDir "msixbundle"
REM Comment out me for fast iteration
call %TFS_ToolsDirectory%\bin\MakeAppxBundle.cmd -appxBundleFilename "Microsoft.FactoryOrchestratorApp_8wekyb3d8bbwe.msixbundle" -projectDir "FactoryOrchestratorApp" -multi $True -signBundle $True -signCert 136020001 -platforms "x86","x64","arm" -configurations "Release" -appxBundleOutputSubDir "msixbundle"
REM Uncomment me for fast iteration
REM call %TFS_ToolsDirectory%\bin\MakeAppxBundle.cmd -appxBundleFilename "Microsoft.FactoryOrchestratorApp_8wekyb3d8bbwe.appxbundle" -projectDir "FactoryOrchestratorApp" -multi $True -signBundle $False -platforms "x86","x64","arm" -configurations "Release"

Просмотреть файл

@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
#Multi-configuration and multi-agent job options are not exported to YAML. Configure these options using documentation guidance: https://docs.microsoft.com/vsts/pipelines/process/phases
trigger:
- none

Просмотреть файл

@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
# Builds UWP App for desired architecture. Assumes dotnet & UWPClient builds have already been completed for desired configuration. No msixbundle.
steps:
- task: NuGetToolInstaller@0

Просмотреть файл

@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
# Builds all AnyCPU (MSIL) .NET Core/Standard projects and runs all unit tests.
steps:
- task: DotNetCoreCLI@2

Просмотреть файл

@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
# Builds UWP library and App for desired architecture. Assumes dotnet build src\FactoryOrchestratorNoApp.sln has already been completed for desired configuration. No msixbundle.
steps:
- task: NuGetToolInstaller@0

Просмотреть файл

@ -1,29 +1,32 @@
# Runs mkdocs to check if docs need updating on gh-pages.
# Core and Client projects must be built for it to detect API changes.
steps:
- script: |
cd $(FORepoRoot)
mkdir $(Build.ArtifactStagingDirectory)\Patch
pip install --upgrade pip --upgrade -r $(FORepoRoot)\docs\requirements.txt
mkdocs build --clean --config-file $(FORepoRoot)\docs\mkdocs.yml
git reset HEAD --hard
git fetch
git checkout gh-pages
robocopy $(FORepoRoot)\docs\site\ $(FORepoRoot)\ /S
git restore sitemap.xml*
git add -A
git status > $(Build.ArtifactStagingDirectory)\Patch\GitStatus.txt
git diff --cached --exit-code > $(Build.ArtifactStagingDirectory)\Patch\GitDiff.txt
echo ##vso[task.setvariable variable=hasChanges]%errorlevel%
git diff --cached > $(Build.ArtifactStagingDirectory)\Patch\UpdatedDocs.patch
displayName: 'Build website and check for changes'
- task: PublishPipelineArtifact@1
displayName: 'Publish patch file as artifact if website has changes'
condition: eq(variables['hasChanges'], '1')
inputs:
artifactName: UpdatedDocsPatch
targetPath: $(Build.ArtifactStagingDirectory)\Patch
- script: |
echo ##vso[task.logissue type=warning]gh-pages documentation needs updating! Use the published UpdatedDocsPatch artifact to update the gh-pages branch after this PR is completed.
displayName: 'Warn if website has changes'
condition: eq(variables['hasChanges'], '1')
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
# Runs mkdocs to check if docs need updating on gh-pages.
# Core and Client projects must be built for it to detect API changes.
steps:
- script: |
cd $(FORepoRoot)
mkdir $(Build.ArtifactStagingDirectory)\Patch
pip install --upgrade pip --upgrade -r $(FORepoRoot)\docs\requirements.txt
mkdocs build --clean --config-file $(FORepoRoot)\docs\mkdocs.yml
git reset HEAD --hard
git fetch
git checkout gh-pages
robocopy $(FORepoRoot)\docs\site\ $(FORepoRoot)\ /S
git restore sitemap.xml*
git add -A
git status > $(Build.ArtifactStagingDirectory)\Patch\GitStatus.txt
git diff --cached --exit-code > $(Build.ArtifactStagingDirectory)\Patch\GitDiff.txt
echo ##vso[task.setvariable variable=hasChanges]%errorlevel%
git diff --cached > $(Build.ArtifactStagingDirectory)\Patch\UpdatedDocs.patch
displayName: 'Build website and check for changes'
- task: PublishPipelineArtifact@1
displayName: 'Publish patch file as artifact if website has changes'
condition: eq(variables['hasChanges'], '1')
inputs:
artifactName: UpdatedDocsPatch
targetPath: $(Build.ArtifactStagingDirectory)\Patch
- script: |
echo ##vso[task.logissue type=warning]gh-pages documentation needs updating! Use the published UpdatedDocsPatch artifact to update the gh-pages branch after this PR is completed.
displayName: 'Warn if website has changes'
condition: eq(variables['hasChanges'], '1')

Просмотреть файл

@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
# Runs compliance tasks for CI builds.
steps:

Просмотреть файл

@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
stages:
- stage: 'Build_and_Test'
jobs:
@ -63,4 +66,4 @@ stages:
displayName: "Print all variables"
# Build & Test (Linux)
- template: ./template-build-test-service.yml
- template: ./template-build-test-service.yml

Просмотреть файл

@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
parameters:
BuildConfiguration: 'Release'
BuildPlatform: 'x86'

Просмотреть файл

@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
# publishes the PowerShell library
steps:
# While this is cross-OS, publish to win subdirectory so it gets signed with the Windows signature

Просмотреть файл

@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
# publishes a variant of the Service
parameters:
BuildConfiguration: 'Release'
@ -47,4 +50,4 @@ steps:
- publish: $(Build.ARTIFACTSTAGINGDIRECTORY)\BuildLogs\${{ parameters.BuildConfiguration }}_Service_${{ parameters.BuildOS }}-${{ parameters.BuildPlatform }}_MsBuild.log
artifact: MSBuildLog_Publish_Service_${{ parameters.BuildOS }}-${{ parameters.BuildPlatform }}_${{ parameters.BuildConfiguration }}
displayName: 'Publish msbuild log for publish ${{ parameters.BuildOS }}-${{ parameters.BuildPlatform }} runtime ${{ parameters.BuildConfiguration }}'
displayName: 'Publish msbuild log for publish ${{ parameters.BuildOS }}-${{ parameters.BuildPlatform }} runtime ${{ parameters.BuildConfiguration }}'

Просмотреть файл

@ -1,7 +1,10 @@
steps:
- task: UseDotNet@2
displayName: 'Use .NET Core 3.1 sdk'
inputs:
packageType: sdk
version: 3.1.x
installationPath: $(Agent.ToolsDirectory)/dotnet
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
steps:
- task: UseDotNet@2
displayName: 'Use .NET Core 3.1 sdk'
inputs:
packageType: sdk
version: 3.1.x
installationPath: $(Agent.ToolsDirectory)/dotnet

Просмотреть файл

@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
# Creates NuGet packages for desired projects. Publishes to NuGet.org.
parameters:
- name: "UwpClientNuspecFolder"

Просмотреть файл

@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
# Creates vPacks for everything but the Service.
steps:
- task: PkgESVPack@10

Просмотреть файл

@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
parameters:
BuildConfiguration: 'Release'
BuildPlatform: 'x86'

Просмотреть файл

@ -1,27 +1,30 @@
# If multiple repos are checked out, this script detects if source is from GitHub or ADO to set the path properly.
steps:
- pwsh: |
if (Test-Path ([System.IO.Path]::Join("$env:BUILD_SOURCESDIRECTORY", "src", "FactoryOrchestrator.sln")))
{
Write-Host "Only FactoryOrchestrator repo is checked out"
$vstsCommandString = "vso[task.setvariable variable=FORepoRoot]$env:BUILD_SOURCESDIRECTORY"
Write-Host "sending " + $vstsCommandString
Write-Host "##$vstsCommandString"
}
elseif (Test-Path ([System.IO.Path]::Join("$env:BUILD_SOURCESDIRECTORY", "FactoryOrchestrator", "src", "FactoryOrchestrator.sln")))
{
Write-Host "FactoryOrchestrator repo is from GitHub"
$repoPath = [System.IO.Path]::Join("$env:BUILD_SOURCESDIRECTORY", "FactoryOrchestrator")
$vstsCommandString = "vso[task.setvariable variable=FORepoRoot]$repoPath"
Write-Host "sending " + $vstsCommandString
Write-Host "##$vstsCommandString"
}
else
{
Write-Host "FactoryOrchestrator repo is from ADO"
$repoPath = [System.IO.Path]::Join("$env:BUILD_SOURCESDIRECTORY", "FactoryOrchestrator_Internal")
$vstsCommandString = "vso[task.setvariable variable=FORepoRoot]$repoPath"
Write-Host "sending " + $vstsCommandString
Write-Host "##$vstsCommandString"
}
displayName: 'Set FORepoRoot variable'
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
# If multiple repos are checked out, this script detects if source is from GitHub or ADO to set the path properly.
steps:
- pwsh: |
if (Test-Path ([System.IO.Path]::Join("$env:BUILD_SOURCESDIRECTORY", "src", "FactoryOrchestrator.sln")))
{
Write-Host "Only FactoryOrchestrator repo is checked out"
$vstsCommandString = "vso[task.setvariable variable=FORepoRoot]$env:BUILD_SOURCESDIRECTORY"
Write-Host "sending " + $vstsCommandString
Write-Host "##$vstsCommandString"
}
elseif (Test-Path ([System.IO.Path]::Join("$env:BUILD_SOURCESDIRECTORY", "FactoryOrchestrator", "src", "FactoryOrchestrator.sln")))
{
Write-Host "FactoryOrchestrator repo is from GitHub"
$repoPath = [System.IO.Path]::Join("$env:BUILD_SOURCESDIRECTORY", "FactoryOrchestrator")
$vstsCommandString = "vso[task.setvariable variable=FORepoRoot]$repoPath"
Write-Host "sending " + $vstsCommandString
Write-Host "##$vstsCommandString"
}
else
{
Write-Host "FactoryOrchestrator repo is from ADO"
$repoPath = [System.IO.Path]::Join("$env:BUILD_SOURCESDIRECTORY", "FactoryOrchestrator_Internal")
$vstsCommandString = "vso[task.setvariable variable=FORepoRoot]$repoPath"
Write-Host "sending " + $vstsCommandString
Write-Host "##$vstsCommandString"
}
displayName: 'Set FORepoRoot variable'

Просмотреть файл

@ -1,52 +1,55 @@
# Retrieves build version.
steps:
- pwsh: |
[xml]$customprops = Get-Content "$(FORepoRoot)\src\common.props"
$msbldns = "http://schemas.microsoft.com/developer/msbuild/2003"
$ns = @{msbld = "$msbldns"}
$fullVersion = Select-Xml -Xml $customprops -XPath "//msbld:VersionPrefix" -Namespace $ns | Select-Object -First 1
Write-Host "VersionPrefix is $fullVersion"
$vstsCommandString = "vso[task.setvariable variable=VERSIONPREFIX]$fullVersion"
Write-Host "sending " + $vstsCommandString
Write-Host "##$vstsCommandString"
displayName: 'Set VERSIONPREFIX using common.props'
- pwsh: |
if ($env:CUSTOMVERSIONSUFFIX -ne $null)
{
Write-Host "CUSTOMVERSIONSUFFIX is $env:CUSTOMVERSIONSUFFIX"
$vstsCommandString = "vso[task.setvariable variable=VERSIONSUFFIX]$env:CUSTOMVERSIONSUFFIX"
Write-Host "sending " + $vstsCommandString
Write-Host "##$vstsCommandString"
$vstsCommandString = "vso[task.setvariable variable=VERSIONSUFFIXVPACK]-$(CUSTOMVERSIONSUFFIX)"
Write-Host "sending " + $vstsCommandString
Write-Host "##$vstsCommandString"
$vstsCommandString = "vso[task.setvariable variable=VERSIONSUFFIXDOTNET]--version-suffix $env:CUSTOMVERSIONSUFFIX"
Write-Host "sending " + $vstsCommandString
Write-Host "##$vstsCommandString"
}
elseif ([string]::IsNullOrEmpty($env:TEMPVERSIONSUFFIX))
{
$vstsCommandString = "vso[task.setvariable variable=VERSIONSUFFIX]$env:TEMPVERSIONSUFFIX"
Write-Host "sending " + $vstsCommandString
Write-Host "##$vstsCommandString"
$vstsCommandString = "vso[task.setvariable variable=VERSIONSUFFIXVPACK]"
Write-Host "sending " + $vstsCommandString
Write-Host "##$vstsCommandString"
$vstsCommandString = "vso[task.setvariable variable=VERSIONSUFFIXDOTNET] "
Write-Host "sending " + $vstsCommandString
Write-Host "##$vstsCommandString"
}
else
{
$vstsCommandString = "vso[task.setvariable variable=VERSIONSUFFIX]$env:TEMPVERSIONSUFFIX"
Write-Host "sending " + $vstsCommandString
Write-Host "##$vstsCommandString"
$vstsCommandString = "vso[task.setvariable variable=VERSIONSUFFIXVPACK]-$env:TEMPVERSIONSUFFIX"
Write-Host "sending " + $vstsCommandString
Write-Host "##$vstsCommandString"
$vstsCommandString = "vso[task.setvariable variable=VERSIONSUFFIXDOTNET]--version-suffix $env:TEMPVERSIONSUFFIX"
Write-Host "sending " + $vstsCommandString
Write-Host "##$vstsCommandString"
}
displayName: 'Set VERSIONSUFFIX variables'
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
# Retrieves build version.
steps:
- pwsh: |
[xml]$customprops = Get-Content "$(FORepoRoot)\src\common.props"
$msbldns = "http://schemas.microsoft.com/developer/msbuild/2003"
$ns = @{msbld = "$msbldns"}
$fullVersion = Select-Xml -Xml $customprops -XPath "//msbld:VersionPrefix" -Namespace $ns | Select-Object -First 1
Write-Host "VersionPrefix is $fullVersion"
$vstsCommandString = "vso[task.setvariable variable=VERSIONPREFIX]$fullVersion"
Write-Host "sending " + $vstsCommandString
Write-Host "##$vstsCommandString"
displayName: 'Set VERSIONPREFIX using common.props'
- pwsh: |
if ($env:CUSTOMVERSIONSUFFIX -ne $null)
{
Write-Host "CUSTOMVERSIONSUFFIX is $env:CUSTOMVERSIONSUFFIX"
$vstsCommandString = "vso[task.setvariable variable=VERSIONSUFFIX]$env:CUSTOMVERSIONSUFFIX"
Write-Host "sending " + $vstsCommandString
Write-Host "##$vstsCommandString"
$vstsCommandString = "vso[task.setvariable variable=VERSIONSUFFIXVPACK]-$(CUSTOMVERSIONSUFFIX)"
Write-Host "sending " + $vstsCommandString
Write-Host "##$vstsCommandString"
$vstsCommandString = "vso[task.setvariable variable=VERSIONSUFFIXDOTNET]--version-suffix $env:CUSTOMVERSIONSUFFIX"
Write-Host "sending " + $vstsCommandString
Write-Host "##$vstsCommandString"
}
elseif ([string]::IsNullOrEmpty($env:TEMPVERSIONSUFFIX))
{
$vstsCommandString = "vso[task.setvariable variable=VERSIONSUFFIX]$env:TEMPVERSIONSUFFIX"
Write-Host "sending " + $vstsCommandString
Write-Host "##$vstsCommandString"
$vstsCommandString = "vso[task.setvariable variable=VERSIONSUFFIXVPACK]"
Write-Host "sending " + $vstsCommandString
Write-Host "##$vstsCommandString"
$vstsCommandString = "vso[task.setvariable variable=VERSIONSUFFIXDOTNET] "
Write-Host "sending " + $vstsCommandString
Write-Host "##$vstsCommandString"
}
else
{
$vstsCommandString = "vso[task.setvariable variable=VERSIONSUFFIX]$env:TEMPVERSIONSUFFIX"
Write-Host "sending " + $vstsCommandString
Write-Host "##$vstsCommandString"
$vstsCommandString = "vso[task.setvariable variable=VERSIONSUFFIXVPACK]-$env:TEMPVERSIONSUFFIX"
Write-Host "sending " + $vstsCommandString
Write-Host "##$vstsCommandString"
$vstsCommandString = "vso[task.setvariable variable=VERSIONSUFFIXDOTNET]--version-suffix $env:TEMPVERSIONSUFFIX"
Write-Host "sending " + $vstsCommandString
Write-Host "##$vstsCommandString"
}
displayName: 'Set VERSIONSUFFIX variables'

Просмотреть файл

@ -1,5 +1,8 @@
# Sets initial variables, should be run at the start of every job for the release pipeline.
steps:
- template: template-set-FORepoRoot.yml
- template: template-set-build-version.yml
- template: template-set-should-sign.yml
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
# Sets initial variables, should be run at the start of every job for the release pipeline.
steps:
- template: template-set-FORepoRoot.yml
- template: template-set-build-version.yml
- template: template-set-should-sign.yml

Просмотреть файл

@ -1,14 +1,17 @@
steps:
- pwsh: |
if ($env:SKIPSIGN -eq 'false' -or (($null -ne $env:FORCESIGN) -and ($env:FORCESIGN -eq $true)))
{
$vstsCommandString = "vso[task.setvariable variable=SHOULDSIGN]true"
}
else
{
$vstsCommandString = "vso[task.setvariable variable=SHOULDSIGN]false"
}
Write-Host "sending " + $vstsCommandString
Write-Host "##$vstsCommandString"
displayName: 'Set SHOULDSIGN'
name: SetSHOULDSIGN
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
steps:
- pwsh: |
if ($env:SKIPSIGN -eq 'false' -or (($null -ne $env:FORCESIGN) -and ($env:FORCESIGN -eq $true)))
{
$vstsCommandString = "vso[task.setvariable variable=SHOULDSIGN]true"
}
else
{
$vstsCommandString = "vso[task.setvariable variable=SHOULDSIGN]false"
}
Write-Host "sending " + $vstsCommandString
Write-Host "##$vstsCommandString"
displayName: 'Set SHOULDSIGN'
name: SetSHOULDSIGN

Просмотреть файл

@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
# Signs all Windows binaries. Requires unsigned binaries published to UnsignedBin_Windows_$(BuildConfiguration)_$(BuildPlatform).
parameters:
- name: "UnsignedInput"

Просмотреть файл

@ -1,3 +1,6 @@
<!-- Copyright (c) Microsoft Corporation. -->
<!-- Licensed under the MIT license. -->
# Factory Orchestrator Documentation
[Factory Orchestrator](https://microsoft.github.io/FactoryOrchestrator/) uses [MkDocs](https://www.mkdocs.org/) to generate usage documentation.

Просмотреть файл

@ -1,3 +1,6 @@
<!-- Copyright (c) Microsoft Corporation. -->
<!-- Licensed under the MIT license. -->
# Factory Orchestrator Client API Samples
This page describes how to perform a variety of tasks with the Factory Orchestrator client APIs, using C# code snippets. There is also a complete C# client sample you can use as a starting point if you prefer. **It is recommended you read the [Using PowerShell or C# code](use-the-factory-orchestrator-api.md) page before this one.**

Просмотреть файл

@ -1,3 +1,6 @@
<!-- Copyright (c) Microsoft Corporation. -->
<!-- Licensed under the MIT license. -->
# Get started with Factory Orchestrator

Просмотреть файл

@ -1,3 +1,6 @@
<!-- Copyright (c) Microsoft Corporation. -->
<!-- Licensed under the MIT license. -->
---
author: themar-msft;hajya
ms.date: 09/30/2019
@ -20,4 +23,4 @@ For a very light-hearted take on the power of Factory Orchestrator, watch the vi
<blockquote class="twitter-tweet" data-conversation="none"><p lang="und" dir="ltr"> <a href="https://t.co/yS19cxUjfd">pic.twitter.com/yS19cxUjfd</a></p>&mdash; Jake Friedman (@spaceisfunn) <a href="https://twitter.com/spaceisfunn/status/1367594898468139015?ref_src=twsrc%5Etfw">March 4, 2021</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
See [Get started with Factory Orchestrator](get-started-with-factory-orchestrator.md) for details on how to install and run the app and/or service.
See [Get started with Factory Orchestrator](get-started-with-factory-orchestrator.md) for details on how to install and run the app and/or service.

Просмотреть файл

@ -1,3 +1,6 @@
<!-- Copyright (c) Microsoft Corporation. -->
<!-- Licensed under the MIT license. -->
# Factory Orchestrator service configuration using appsettings.json
The Factory Orchestrator service has many configurable settings that impact its startup behavior, enabled features, and more. This configuration is easily modified using an [appsettings.json file](https://docs.microsoft.com/en-us/dotnet/core/extensions/configuration-providers#json-configuration-provider).

Просмотреть файл

@ -1,3 +1,6 @@
<!-- Copyright (c) Microsoft Corporation. -->
<!-- Licensed under the MIT license. -->
# Tasks and TasksLists
@ -283,4 +286,4 @@ See [Service Configuration](service-configuration.md#configure-factory-orchestra
## Factory Orchestrator Task log files
The Task log files contain details about the execution of a specific of the Factory Orchestrator Task. There is one log file generated for each run of a Task ([TaskRun](../CoreLibrary/Microsoft-FactoryOrchestrator-Core-TaskRun/)). The files are saved to `%ProgramData%\FactoryOrchestrator\Logs\` on a Windows and `/var/log/FactoryOrchestrator/logs` on Linux, but this location can be changed using the [FactoryOrchestratorClient](../ClientLibrary/Microsoft-FactoryOrchestrator-Client-FactoryOrchestratorClient-FactoryOrchestratorClient%28System-Net-IPAddress_int%29/).[SetLogFolder](../ClientLibrary/Microsoft-FactoryOrchestrator-Client-FactoryOrchestratorClient-SetLogFolder%28string_bool%29/)() API. Use the [FactoryOrchestratorClient](../ClientLibrary/Microsoft-FactoryOrchestrator-Client-FactoryOrchestratorClient-FactoryOrchestratorClient%28System-Net-IPAddress_int%29/).[GetLogFolder](../ClientLibrary/Microsoft-FactoryOrchestrator-Client-FactoryOrchestratorClient-GetLogFolder%28%29/)() API to programmatically retrieve the active log folder.
The Task log files contain details about the execution of a specific of the Factory Orchestrator Task. There is one log file generated for each run of a Task ([TaskRun](../CoreLibrary/Microsoft-FactoryOrchestrator-Core-TaskRun/)). The files are saved to `%ProgramData%\FactoryOrchestrator\Logs\` on a Windows and `/var/log/FactoryOrchestrator/logs` on Linux, but this location can be changed using the [FactoryOrchestratorClient](../ClientLibrary/Microsoft-FactoryOrchestrator-Client-FactoryOrchestratorClient-FactoryOrchestratorClient%28System-Net-IPAddress_int%29/).[SetLogFolder](../ClientLibrary/Microsoft-FactoryOrchestrator-Client-FactoryOrchestratorClient-SetLogFolder%28string_bool%29/)() API. Use the [FactoryOrchestratorClient](../ClientLibrary/Microsoft-FactoryOrchestrator-Client-FactoryOrchestratorClient-FactoryOrchestratorClient%28System-Net-IPAddress_int%29/).[GetLogFolder](../ClientLibrary/Microsoft-FactoryOrchestrator-Client-FactoryOrchestratorClient-GetLogFolder%28%29/)() API to programmatically retrieve the active log folder.

Просмотреть файл

@ -1,3 +1,6 @@
<!-- Copyright (c) Microsoft Corporation. -->
<!-- Licensed under the MIT license. -->
# Uninstall Factory Orchestrator
@ -32,4 +35,4 @@ To uninstall the app [follow these directions](https://support.microsoft.com/en-
To uninstall the service, run the following from bash:
```Bash
/usr/sbin/FactoryOrchestrator/UninstallFactoryOrchestratorService.sh
```
```

Просмотреть файл

@ -1,3 +1,6 @@
<!-- Copyright (c) Microsoft Corporation. -->
<!-- Licensed under the MIT license. -->
# Factory Orchestrator Client API Overview
The Factory Orchestrator service, Microsoft.FactoryOrchestrator.Service.exe, provides a [robust API surface](../ClientLibrary/Microsoft-FactoryOrchestrator-Client) for clients to interact with test devices via C# .NET, C# UWP, or PowerShell code. You can use these APIs to author advanced task orchestration code to programmatically interact with the service outside of what the app provides. Like the app, you can connect to a service running either on the same device or a service running on a remote device available over the network.

Просмотреть файл

@ -1,3 +1,6 @@
<!-- Copyright (c) Microsoft Corporation. -->
<!-- Licensed under the MIT license. -->
# Use the Factory Orchestrator app
The app is a Windows-only app and it depends on the service to run. However, it can connect to a service running on any DUT on your local network, not just to the same device the app is running on. This includes connecting to a DUT running Linux!

Просмотреть файл

@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
site_name: Factory Orchestrator
site_author: themar-msft;hajya
repo_url: https://github.com/microsoft/FactoryOrchestrator
@ -26,4 +29,4 @@ nav:
- Client Library Class Reference: 'ClientLibrary\Microsoft-FactoryOrchestrator-Client.md'
- Core Library Class Reference: 'CoreLibrary\Microsoft-FactoryOrchestrator-Core.md'
- Uninstall Factory Orchestrator: 'uninstall-factory-orchestrator.md'

Просмотреть файл

@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
if ((-not $PSEdition -eq "Desktop") -and (-not $IsWindows))
{
$command = $PSCommandPath.Replace(".ps1", ".sh")
@ -53,4 +56,4 @@ if ($null -ne $service)
Set-Service -Name "Microsoft.FactoryOrchestrator" -StartupType Disabled
Write-Warning "Service configuration cannot be deleted, but all binaries are deleted and the service is set to 'Disabled'. If desired, you can manually delete the 'Microsoft.FactoryOrchestrator' service with services.msc."
}
}
}

Просмотреть файл

@ -1,16 +1,19 @@
if [ ! "$EUID" = 0 ]
then
echo "sudo elevation required. Please re-run with sudo."
exit 1
fi
echo "We're sorry to see you go! Please consider filing an issue on GitHub at https://github.com/microsoft/FactoryOrchestrator/issues with any questions, bugs, or feedback you have."
echo ""
sudo systemctl stop Microsoft.FactoryOrchestrator.service
rm -r -f /usr/sbin/FactoryOrchestrator > /dev/null 2>&1
rm -f /etc/systemd/system/Microsoft.FactoryOrchestrator.* > /dev/null 2>&1
sudo systemctl daemon-reload
echo "Deleted all files in/usr/sbin/FactoryOrchestrator/."
echo "Deleted service configuration."
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
if [ ! "$EUID" = 0 ]
then
echo "sudo elevation required. Please re-run with sudo."
exit 1
fi
echo "We're sorry to see you go! Please consider filing an issue on GitHub at https://github.com/microsoft/FactoryOrchestrator/issues with any questions, bugs, or feedback you have."
echo ""
sudo systemctl stop Microsoft.FactoryOrchestrator.service
rm -r -f /usr/sbin/FactoryOrchestrator > /dev/null 2>&1
rm -f /etc/systemd/system/Microsoft.FactoryOrchestrator.* > /dev/null 2>&1
sudo systemctl daemon-reload
echo "Deleted all files in/usr/sbin/FactoryOrchestrator/."
echo "Deleted service configuration."

Просмотреть файл

@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
# To learn more about .editorconfig see https://aka.ms/editorconfigdocs
###############################
# Core EditorConfig Options #

Просмотреть файл

@ -1,4 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) Microsoft Corporation. -->
<!-- Licensed under the MIT license. -->
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Import Project="..\common.props" />
@ -302,4 +305,4 @@
<Target Name="AfterBuild">
</Target>
-->
</Project>
</Project>

Двоичные данные
src/App/Properties/AssemblyInfo.cs

Двоичный файл не отображается.

Просмотреть файл

@ -1,31 +1,34 @@
<!--
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>
<!-- Copyright (c) Microsoft Corporation. -->
<!-- Licensed under the MIT license. -->
<!--
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>

Просмотреть файл

@ -1,73 +1,76 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using System.Threading.Tasks;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using System.Threading.Tasks;
using Windows.ApplicationModel.Resources;
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;
// The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=234238
namespace Microsoft.FactoryOrchestrator.UWP
{
/// <summary>
/// An empty page that can be used on its own or navigated to within a Frame.
/// </summary>
public sealed partial class WdpPage : Page
{
public WdpPage()
{
this.InitializeComponent();
}
private async Task<bool> IsWindowsDevicePortalRunning()
{
try
{
_ = await Client.GetInstalledApps();
return true;
}
catch (Exception)
{
return false;
}
}
protected override async void OnNavigatedTo(NavigationEventArgs e)
{
if (await IsWindowsDevicePortalRunning())
{
string ipAddress = Client.IsLocalHost ? "localhost" : $"{Client.IpAddress.ToString()}";
string url = "http://" + ipAddress + ":" + await Client.GetWdpHttpPort();
Uri myUri = new Uri(url);
wdp.Navigate(myUri);
}
else
{
ContentDialog failedAppsDialog = new ContentDialog
{
Title = resourceLoader.GetString("WDPFailedTitle"),
Content = resourceLoader.GetString("WDPFailedContent"),
CloseButtonText = resourceLoader.GetString("Ok")
};
_ = await failedAppsDialog.ShowAsync();
base.OnNavigatedTo(e);
}
}
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;
// The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=234238
namespace Microsoft.FactoryOrchestrator.UWP
{
/// <summary>
/// An empty page that can be used on its own or navigated to within a Frame.
/// </summary>
public sealed partial class WdpPage : Page
{
public WdpPage()
{
this.InitializeComponent();
}
private async Task<bool> IsWindowsDevicePortalRunning()
{
try
{
_ = await Client.GetInstalledApps();
return true;
}
catch (Exception)
{
return false;
}
}
protected override async void OnNavigatedTo(NavigationEventArgs e)
{
if (await IsWindowsDevicePortalRunning())
{
string ipAddress = Client.IsLocalHost ? "localhost" : $"{Client.IpAddress.ToString()}";
string url = "http://" + ipAddress + ":" + await Client.GetWdpHttpPort();
Uri myUri = new Uri(url);
wdp.Navigate(myUri);
}
else
{
ContentDialog failedAppsDialog = new ContentDialog
{
Title = resourceLoader.GetString("WDPFailedTitle"),
Content = resourceLoader.GetString("WDPFailedContent"),
CloseButtonText = resourceLoader.GetString("Ok")
};
_ = await failedAppsDialog.ShowAsync();
base.OnNavigatedTo(e);
}
}
private readonly FactoryOrchestratorUWPClient Client = ((App)Application.Current).Client;
private readonly ResourceLoader resourceLoader = ResourceLoader.GetForCurrentView();
}
}
private readonly ResourceLoader resourceLoader = ResourceLoader.GetForCurrentView();
}
}

Просмотреть файл

@ -1,4 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<!-- Copyright (c) Microsoft Corporation. -->
<!-- Licensed under the MIT license. -->
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="../common.props" />
<PropertyGroup>

5
src/ClientLibrary/api/.gitignore поставляемый
Просмотреть файл

@ -1,5 +0,0 @@
###############
# temp file #
###############
*.yml
.manifest

Просмотреть файл

@ -1,2 +0,0 @@
# Factory Orchestrator API Reference
Use the links in the top or side navbars to browse the Factory Orchestrator client APIs.

Просмотреть файл

@ -1,73 +0,0 @@
{
"metadata": [
{
"src": [
{
"files": [
"**.csproj"
],
"exclude": [
"UWPClientLibrary/**",
"ClientSample/**",
"ServerLibrary/**",
"Service/**",
"OSS/**",
"App/**"
],
"src": "../"
}
],
"dest": "api",
"filter": "docfxfilter.yml",
"disableGitFeatures": true,
"disableDefaultFilter": false
}
],
"build": {
"content": [
{
"files": [
"api/**.yml",
"api/index.md"
]
},
{
"files": [
"toc.yml"
]
}
],
"resource": [
{
"files": [
"images/**"
]
}
],
"overwrite": [
{
"files": [
"apidoc/**.md"
],
"exclude": [
"obj/**",
"_site/**"
]
}
],
"globalMetadata": {
"_appLogoPath": "images/fologo.png",
"_appFaviconPath": "images/fologo.png"
},
"dest": "../../bin/docfx",
"globalMetadataFiles": [],
"fileMetadataFiles": [],
"template": [ "statictoc" ],
"postProcessors": [],
"markdownEngineName": "markdig",
"noLangKeyword": false,
"keepFileLink": false,
"cleanupCacheHistory": false,
"disableGitFeatures": true
}
}

Просмотреть файл

@ -1,3 +0,0 @@
apiRules:
- exclude:
uidRegex: ^Microsoft.FactoryOrchestrator.Core.JSONConverters

Двоичные данные
src/ClientLibrary/images/FOLogo.png

Двоичный файл не отображается.

До

Ширина:  |  Высота:  |  Размер: 1.5 KiB

Просмотреть файл

@ -1,6 +0,0 @@
- name: Core Library
href: api/Microsoft.FactoryOrchestrator.Core.yml
homepage: api/Microsoft.FactoryOrchestrator.Core.html
- name: Client Library
href: api/Microsoft.FactoryOrchestrator.Client.yml
homepage: api/Microsoft.FactoryOrchestrator.Client.html

Просмотреть файл

@ -1,42 +1,45 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\common.props" />
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<LangVersion>latest</LangVersion>
<TargetName>Microsoft.FactoryOrchestrator.ClientSample</TargetName>
<NeutralLanguage>en-US</NeutralLanguage>
<DefaultLanguage>en-US</DefaultLanguage>
</PropertyGroup>
<PropertyGroup>
<OutputPath>$(OutputRootPath)$(Configuration)/$(Platform)/$(TargetName)</OutputPath>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="../ClientLibrary/Microsoft.FactoryOrchestrator.Client.csproj" />
</ItemGroup>
<ItemGroup>
<Compile Update="Resources\Resources.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Resources\Resources.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<CustomToolNamespace>Microsoft.FactoryOrchestrator.ClientSample</CustomToolNamespace>
</EmbeddedResource>
<EmbeddedResource Update="Resources\Resources.zh-CN.resx">
<Generator></Generator>
</EmbeddedResource>
<EmbeddedResource Update="Resources\Resources.zh-TW.resx">
<Generator></Generator>
</EmbeddedResource>
</ItemGroup>
</Project>
<!-- Copyright (c) Microsoft Corporation. -->
<!-- Licensed under the MIT license. -->
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\common.props" />
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<LangVersion>latest</LangVersion>
<TargetName>Microsoft.FactoryOrchestrator.ClientSample</TargetName>
<NeutralLanguage>en-US</NeutralLanguage>
<DefaultLanguage>en-US</DefaultLanguage>
</PropertyGroup>
<PropertyGroup>
<OutputPath>$(OutputRootPath)$(Configuration)/$(Platform)/$(TargetName)</OutputPath>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="../ClientLibrary/Microsoft.FactoryOrchestrator.Client.csproj" />
</ItemGroup>
<ItemGroup>
<Compile Update="Resources\Resources.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Resources\Resources.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<CustomToolNamespace>Microsoft.FactoryOrchestrator.ClientSample</CustomToolNamespace>
</EmbeddedResource>
<EmbeddedResource Update="Resources\Resources.zh-CN.resx">
<Generator></Generator>
</EmbeddedResource>
<EmbeddedResource Update="Resources\Resources.zh-TW.resx">
<Generator></Generator>
</EmbeddedResource>
</ItemGroup>
</Project>

5
src/ClientSample/Resources/Resources.Designer.cs сгенерированный
Просмотреть файл

@ -1,4 +1,7 @@
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000

Просмотреть файл

@ -1,4 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<!-- Copyright (c) Microsoft Corporation. -->
<!-- Licensed under the MIT license. -->
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="../common.props" />
<PropertyGroup>

Просмотреть файл

@ -1,4 +1,7 @@
using System;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
using System;
using System.Collections.Generic;
using System.Text;
using System.Management.Automation;

Просмотреть файл

@ -1,47 +1,50 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="../common.props" />
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<TargetName>Microsoft.FactoryOrchestrator.PowerShell</TargetName>
</PropertyGroup>
<PropertyGroup>
<OutputPath>$(OutputRootPath)$(Configuration)/$(Platform)/$(TargetName)</OutputPath>
<DocumentationFile>$(OutputRootPath)$(Configuration)/$(Platform)/$(TargetName)/$(TargetFramework)/$(TargetName).xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.7" />
<PackageReference Include="PowerShellStandard.Library" Version="5.1.0">
<PrivateAssets>All</PrivateAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<!-- Created by AutoGenerateInterfaceHelper in CoreLibrary -->
<Compile Include="obj/FactoryOrchestratorClientSyncAutogenerated.cs" />
<!-- Created by SetSourceVersion -->
<None Include="obj/Microsoft.FactoryOrchestrator.Client.psd1" CopyToOutputDirectory="Always" CopyToPublishDirectory="Always" />
<None Include="license.txt" CopyToOutputDirectory="Always" CopyToPublishDirectory="Always" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="../ClientLibrary/Microsoft.FactoryOrchestrator.Client.csproj" />
<ProjectReference Include="../CoreLibrary/Microsoft.FactoryOrchestrator.Core.csproj" />
<ProjectReference Include="../../oss/IpcFramework/JKang.IpcServiceFramework.Client.Tcp/JKang.IpcServiceFramework.Client.Tcp.csproj" />
<ProjectReference Include="../../oss/IpcFramework/JKang.IpcServiceFramework.Client/JKang.IpcServiceFramework.Client.csproj" />
</ItemGroup>
<Target Name="BeforeBuildPS_VSO" BeforeTargets="Build;CoreCompile">
<Exec Command="$(PowerShellExeName) $(ProjectDir)../../build/SetSourceVersion.ps1 -SrcPath $(ProjectDir)" />
</Target>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Move SourceFiles="$(OutputPath)/obj/Microsoft.FactoryOrchestrator.Client.psd1"
DestinationFolder="$(OutputPath)/" />
<RemoveDir Directories="$(OutputPath)/obj" />
</Target>
<Target Name="PostBuildPub" AfterTargets="Publish">
<Move SourceFiles="$(PublishDir)/obj/Microsoft.FactoryOrchestrator.Client.psd1"
DestinationFolder="$(PublishDir)/" />
<RemoveDir Directories="$(PublishDir)/obj" />
</Target>
</Project>
<!-- Copyright (c) Microsoft Corporation. -->
<!-- Licensed under the MIT license. -->
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="../common.props" />
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<TargetName>Microsoft.FactoryOrchestrator.PowerShell</TargetName>
</PropertyGroup>
<PropertyGroup>
<OutputPath>$(OutputRootPath)$(Configuration)/$(Platform)/$(TargetName)</OutputPath>
<DocumentationFile>$(OutputRootPath)$(Configuration)/$(Platform)/$(TargetName)/$(TargetFramework)/$(TargetName).xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.7" />
<PackageReference Include="PowerShellStandard.Library" Version="5.1.0">
<PrivateAssets>All</PrivateAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<!-- Created by AutoGenerateInterfaceHelper in CoreLibrary -->
<Compile Include="obj/FactoryOrchestratorClientSyncAutogenerated.cs" />
<!-- Created by SetSourceVersion -->
<None Include="obj/Microsoft.FactoryOrchestrator.Client.psd1" CopyToOutputDirectory="Always" CopyToPublishDirectory="Always" />
<None Include="license.txt" CopyToOutputDirectory="Always" CopyToPublishDirectory="Always" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="../ClientLibrary/Microsoft.FactoryOrchestrator.Client.csproj" />
<ProjectReference Include="../CoreLibrary/Microsoft.FactoryOrchestrator.Core.csproj" />
<ProjectReference Include="../../oss/IpcFramework/JKang.IpcServiceFramework.Client.Tcp/JKang.IpcServiceFramework.Client.Tcp.csproj" />
<ProjectReference Include="../../oss/IpcFramework/JKang.IpcServiceFramework.Client/JKang.IpcServiceFramework.Client.csproj" />
</ItemGroup>
<Target Name="BeforeBuildPS_VSO" BeforeTargets="Build;CoreCompile">
<Exec Command="$(PowerShellExeName) $(ProjectDir)../../build/SetSourceVersion.ps1 -SrcPath $(ProjectDir)" />
</Target>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Move SourceFiles="$(OutputPath)/obj/Microsoft.FactoryOrchestrator.Client.psd1"
DestinationFolder="$(OutputPath)/" />
<RemoveDir Directories="$(OutputPath)/obj" />
</Target>
<Target Name="PostBuildPub" AfterTargets="Publish">
<Move SourceFiles="$(PublishDir)/obj/Microsoft.FactoryOrchestrator.Client.psd1"
DestinationFolder="$(PublishDir)/" />
<RemoveDir Directories="$(PublishDir)/obj" />
</Target>
</Project>

Просмотреть файл

@ -1,4 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<!-- Copyright (c) Microsoft Corporation. -->
<!-- Licensed under the MIT license. -->
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="../common.props" />
<PropertyGroup>

Просмотреть файл

@ -1,4 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<!-- Copyright (c) Microsoft Corporation. -->
<!-- Licensed under the MIT license. -->
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="../common.props" />
<PropertyGroup>

Просмотреть файл

@ -1,4 +1,7 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.FactoryOrchestrator;
using System;
using System.Net;

Просмотреть файл

@ -1,4 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<!-- Copyright (c) Microsoft Corporation. -->
<!-- Licensed under the MIT license. -->
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>

Просмотреть файл

@ -1,16 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildThisFileDirectory)/../common.props" />
<!-- Don't run FxCop on Tests -->
<PropertyGroup>
<SkipDefaultEditorConfigAsAdditionalFile>true</SkipDefaultEditorConfigAsAdditionalFile>
<RunAnalyzersDuringBuild>false</RunAnalyzersDuringBuild>
<RunAnalyzersDuringLiveAnalysis>false</RunAnalyzersDuringLiveAnalysis>
<RunAnalyzers>false</RunAnalyzers>
</PropertyGroup>
<!-- Default run settings -->
<PropertyGroup>
<RunSettingsFilePath>$(MSBuildThisFileDirectory)defaults.runsettings</RunSettingsFilePath>
</PropertyGroup>
</Project>
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) Microsoft Corporation. -->
<!-- Licensed under the MIT license. -->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildThisFileDirectory)/../common.props" />
<!-- Don't run FxCop on Tests -->
<PropertyGroup>
<SkipDefaultEditorConfigAsAdditionalFile>true</SkipDefaultEditorConfigAsAdditionalFile>
<RunAnalyzersDuringBuild>false</RunAnalyzersDuringBuild>
<RunAnalyzersDuringLiveAnalysis>false</RunAnalyzersDuringLiveAnalysis>
<RunAnalyzers>false</RunAnalyzers>
</PropertyGroup>
<!-- Default run settings -->
<PropertyGroup>
<RunSettingsFilePath>$(MSBuildThisFileDirectory)defaults.runsettings</RunSettingsFilePath>
</PropertyGroup>
</Project>

Просмотреть файл

@ -1,4 +1,7 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.FactoryOrchestrator.Core;
using System;
using System.Xml.Schema;
@ -11,7 +14,6 @@ namespace Microsoft.FactoryOrchestrator.Test
public class CoreLibraryUnitTests
{
[TestMethod]
[DeploymentItem("DuplicateGuids.xml")]
public void TestDuplicateGuidInXml()
{
string[] expectedGuids = { "ba3fa48b-b555-490d-9082-3d93dca22e70", "7bac1a15-0e62-4d49-8a54-27077409d229", "ba3fa48b-b555-490d-9082-3d93dca22e72" };

Просмотреть файл

@ -1,4 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<!-- Copyright (c) Microsoft Corporation. -->
<!-- Licensed under the MIT license. -->
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>

Просмотреть файл

@ -1,4 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) Microsoft Corporation. -->
<!-- Licensed under the MIT license. -->
<FactoryOrchestratorXML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<TaskLists>
<!-- ba3fa48b-b555-490d-9082-3d93dca22e70, 7bac1a15-0e62-4d49-8a54-27077409d229, ba3fa48b-b555-490d-9082-3d93dca22e72-->
@ -27,4 +30,4 @@
</Tasks>
</TaskList>
</TaskLists>
</FactoryOrchestratorXML>
</FactoryOrchestratorXML>

Просмотреть файл

@ -1,4 +1,7 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.FactoryOrchestrator.Core;
using System;
using System.Xml.Schema;

Просмотреть файл

@ -1,4 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<!-- Copyright (c) Microsoft Corporation. -->
<!-- Licensed under the MIT license. -->
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>

Просмотреть файл

@ -1,4 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) Microsoft Corporation. -->
<!-- Licensed under the MIT license. -->
<FactoryOrchestratorXML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<TaskLists>
<TaskList Guid="8886302c-070c-4e19-b9e3-1b76f8c03f4e" Name="Display Tests" RunInParallel="false" AllowOtherTaskListsToRun="false">
@ -7,4 +10,4 @@
</Tasks>
</TaskList>
</TaskLists>
</FactoryOrchestratorXML>
</FactoryOrchestratorXML>

Просмотреть файл

@ -1,4 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) Microsoft Corporation. -->
<!-- Licensed under the MIT license. -->
<FactoryOrchestratorXML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<TaskLists>
<TaskList Name="Display Tests" RunInParallel="false" AllowOtherTaskListsToRun="false">
@ -7,4 +10,4 @@
</Tasks>
</TaskList>
</TaskLists>
</FactoryOrchestratorXML>
</FactoryOrchestratorXML>

Просмотреть файл

@ -1,4 +1,7 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.FactoryOrchestrator.Core;
using System;
using System.Xml.Schema;

Просмотреть файл

@ -1,4 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<!-- Copyright (c) Microsoft Corporation. -->
<!-- Licensed under the MIT license. -->
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>

Просмотреть файл

@ -1,4 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) Microsoft Corporation. -->
<!-- Licensed under the MIT license. -->
<FactoryOrchestratorXML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<TaskLists>
<TaskList Guid="ba3fa48b-b555-490d-9082-3d93dca22e70" Name="Audio Tests" RunInParallel="false" AllowOtherTaskListsToRun="false">
@ -137,4 +140,4 @@
</Tasks>
</TaskList>
</TaskLists>
</FactoryOrchestratorXML>
</FactoryOrchestratorXML>

Просмотреть файл

@ -1,4 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) Microsoft Corporation. -->
<!-- Licensed under the MIT license. -->
<FactoryOrchestratorXML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<TaskLists>
<TaskList Guid="baf64435-022d-4c8b-880e-c4bb06a2f687" Name="Touch and Ink Tests" RunInParallel="false" AllowOtherTaskListsToRun="false">
@ -9,4 +12,4 @@
</Tasks>
</TaskList>
</TaskLists>
</FactoryOrchestratorXML>
</FactoryOrchestratorXML>

Просмотреть файл

@ -1,4 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) Microsoft Corporation. -->
<!-- Licensed under the MIT license. -->
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Import Project="..\common.props" />
@ -88,4 +91,4 @@
<Target Name="AfterBuild">
</Target>
-->
</Project>
</Project>

Двоичные данные
src/UWPClientLibrary/Properties/AssemblyInfo.cs

Двоичный файл не отображается.

Просмотреть файл

@ -1,33 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file contains Runtime Directives, specifications about types your application accesses
through reflection and other dynamic code patterns. Runtime Directives are used to control the
.NET Native optimizer and ensure that it does not remove code accessed by your library. If your
library does not do any reflection, then you generally do not need to edit this file. However,
if your library reflects over types, especially types passed to it or derived from its types,
then you should write Runtime Directives.
The most common use of reflection in libraries is to discover information about types passed
to the library. Runtime Directives have three ways to express requirements on types passed to
your library.
1. Parameter, GenericParameter, TypeParameter, TypeEnumerableParameter
Use these directives to reflect over types passed as a parameter.
2. SubTypes
Use a SubTypes directive to reflect over types derived from another type.
3. AttributeImplies
Use an AttributeImplies directive to indicate that your library needs to reflect over
types or methods decorated with an attribute.
For more information on writing Runtime Directives for libraries, please visit
https://go.microsoft.com/fwlink/?LinkID=391919
-->
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
<Library Name="Microsoft.FactoryOrchestrator.UWPClient">
<!-- add directives for your library here -->
</Library>
</Directives>
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) Microsoft Corporation. -->
<!-- Licensed under the MIT license. -->
<!--
This file contains Runtime Directives, specifications about types your application accesses
through reflection and other dynamic code patterns. Runtime Directives are used to control the
.NET Native optimizer and ensure that it does not remove code accessed by your library. If your
library does not do any reflection, then you generally do not need to edit this file. However,
if your library reflects over types, especially types passed to it or derived from its types,
then you should write Runtime Directives.
The most common use of reflection in libraries is to discover information about types passed
to the library. Runtime Directives have three ways to express requirements on types passed to
your library.
1. Parameter, GenericParameter, TypeParameter, TypeEnumerableParameter
Use these directives to reflect over types passed as a parameter.
2. SubTypes
Use a SubTypes directive to reflect over types derived from another type.
3. AttributeImplies
Use an AttributeImplies directive to indicate that your library needs to reflect over
types or methods decorated with an attribute.
For more information on writing Runtime Directives for libraries, please visit
https://go.microsoft.com/fwlink/?LinkID=391919
-->
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
<Library Name="Microsoft.FactoryOrchestrator.UWPClient">
<!-- add directives for your library here -->
</Library>
</Directives>

Просмотреть файл

@ -1,4 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) Microsoft Corporation. -->
<!-- Licensed under the MIT license. -->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Assembly, App, Package version for all non-OSS files. Uses SemVer. -->