Visual Studio - development for executing programs and files in code and library assembly mode.
<?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <ItemGroup Label="ProjectConfigurations"> <ProjectConfiguration Include="Debug|Win32"> <Configuration>Debug</Configuration> <Platform>Win32</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Release|Win32"> <Configuration>Release</Configuration> <Platform>Win32</Platform> </ProjectConfiguration> </ItemGroup> </Project>
Using the example of the implemented file with the extension .vcxproj, we see the structure that MSBuild will assemble in a certain order.
<ItemGroup> <ClCompile Include="AssemblyInfo.cpp" /> <ClCompile Include="stdafx.cpp"> <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader> <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader> </ClCompile> <ClCompile Include="UnitTest.cpp" /> </ItemGroup>
Different mobile operating systems (Android/iOS) have different executable program engines. Likewise, when launching VS, we take into account the environment and typing of our structures.
<ItemGroup> <ClInclude Include="stdafx.h"> <Filter>Header files</Filter> </ClInclude> <ClInclude Include="resource.h"> <Filter>Header files</Filter> </ClInclude> <ClInclude Include="..\..\RootFinder\RootFinder\RootFinder.h"> <Filter>Header files</Filter> </ClInclude> </ItemGroup> <ItemGroup> <ResourceCompile Include="app.rc"> <Filter>Resource files</Filter> </ResourceCompile> </ItemGroup> <ItemGroup> <Image Include="app.ico"> <Filter>Resource files</Filter> </Image> </ItemGroup>
We explicitly list the classes of files involved in the assembly and the name with extension. This starts filtering project objects, classified by executable folders.
The above is the detailed content of Visual Studio and MSBuild. For more information, please follow other related articles on the PHP Chinese website!