This commit is contained in:
Sara 2019-08-20 10:29:43 -07:00 коммит произвёл GitHub
Родитель dc4676c404
Коммит c97fc3f4e8
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 13 добавлений и 23 удалений

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

@ -26,31 +26,31 @@ If you want to create a solution that builds the foreground application and the
1. File>New>Project…
2. Create a new Blank App
![step 2](images/step2.png)
![step 2](../../Resources/images/ForegroundApp/step2.png)
3. Select desired target version and click OK when prompted for target version
![step 3](images/step3.png)
![step 3](../../Resources/images/ForegroundApp/step3.png)
4. In Solution Explorer right-click on the solution and choose Add>New Project …
![step 4](images/step4.png)
![step 4]((../../Resources/images/ForegroundApp/step4.png)
5. Create a new Background Application
![step 5](images/step5.png)
![step 5](../../Resources/images/ForegroundApp/step5.png)
6. Select desired target version and click OK when prompted for target version
![step 6](images/step6.png)
![step 6]((../../Resources/images/ForegroundApp/step6.png)
7. In Solution Explorer right-click on the background application Package.appxmanifest and choose View Code
![step 7](images/step7.png)
![step 7]((../../Resources/images/ForegroundApp/step7.png)
8. In Solution Explorer right-click on the foreground application Package.appxmanifest and choose View Code
![step 8](images/step8.png)
![step 8]((../../Resources/images/ForegroundApp/step8.png)
9. At the top of the foreground Package.appxmanifest add xmlns:iot="http://schemas.microsoft.com/appx/manifest/iot/windows10" and modify IgnorableNamespaces to include iot.
@ -88,19 +88,19 @@ If you want to create a solution that builds the foreground application and the
11. In Solution Explorer right-click on the Foreground Application References node and choose Add Reference…
![step 11](images/step11.png)
![step 11]((../../Resources/images/ForegroundApp/step11.png)
12. Add a project reference to the Background Application
![step 12](images/step12.png)
![step 12]((../../Resources/images/ForegroundApp/step12.png)
13. In Solution Explorer right-click the foreground application project and choose Unload Project, then right-click the background application project and choose Unload Project.
![step 13](images/step13.png)
![step 13]((../../Resources/images/ForegroundApp/step13.png)
14. In Solution Explorer right-click on the foreground application project and choose Edit MyForegroundApp.csproj and then right-click on the background application project and choose Edit MyBackgroundApp.csproj.
![step 14](images/step14.png)
![step 14]((../../Resources/images/ForegroundApp/step14.png)
15. In the background project file comment the following lines:
@ -118,21 +118,11 @@ If you want to create a solution that builds the foreground application and the
17. In Solution Explorer right-click on each project and choose Reload Project
![step 17](images/step17.png)
![step 17]((../../Resources/images/ForegroundApp/step17.png)
18. In Solution Explorer delete Package.appxmanifest from the background application
![step 18](images/step18.png)
![step 18]((../../Resources/images/ForegroundApp/step18.png)
19. At this point the project should build (and run the implementation you have added to the foreground and background applications).
## How to download:
You can find the source code for this sample by downloading a zip of all of our samples [here](https://github.com/Microsoft/Windows-iotcore-samples/archive/master.zip).
## Additional resources
* [Windows 10 IoT Core home page](https://developer.microsoft.com/en-us/windows/iot/)
* [Documentation for all samples](https://developer.microsoft.com/en-us/windows/iot/samples)
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.