Home » Microsoft » 70-357 » Does this meet the goal?
Note: This question-is part of a series of questions that present the same scenario. Each question-in the series contains a unique solution. Determine whether the solution meets the stated goals.
You must create a project for shared code.
Solution: You implement the shared code in a Class Library (Universal Windows).
Does this meet the goal?
A. Yes
B. No
Correct Answer: A
Explanation/Reference:
The .NET Framework Portable Class Library project type in Visual Studio helps you build cross-platform apps and libraries for Microsoft platforms quickly and easily.
Portable class libraries can help you reduce the time and costs of developing and testing code. Use this project type to write and build portable .NET Framework assemblies, and then reference those assemblies from apps that target multiple platforms such as Windows and Windows Phone.
Even after you create a Portable Class Library project in Visual Studio and start developing it, you can change the target platforms. Visual Studio will compile your library with the new assemblies, which helps you identify the changes you need to make in your code.
From scenario:
The app must be compatible with current and future XBOX apps that use C++.
You must create code that can be reused in C++, C#, JavaScript, whenever possible. The app must call the background service to avoid duplication of code.
Reference: https://docs.microsoft.com/en-us/dotnet/standard/cross-platform/cross-platform-development-with-the-portable-class-library