设为首页 加入收藏

TOP

vs(visual stuiod)中vc++工程的Filter和Folder及vcxproj知识(二)
2023-08-06 07:49:40 】 浏览:170
Tags:visual stuiod 程的 Filter Folder vcxproj 知识
ation"> <ConfigurationType>Application</ConfigurationType> <UseDebugLibraries>true</UseDebugLibraries> <PlatformToolset>v143</PlatformToolset> <CharacterSet>Unicode</CharacterSet> </PropertyGroup>

编译选项,宏定义等等

  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
    <ClCompile>
      <PrecompiledHeader>Use</PrecompiledHeader>
      <WarningLevel>Level3</WarningLevel>
      <Optimization>Disabled</Optimization>
      <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
      <SDLCheck>true</SDLCheck>
    </ClCompile>
    <Link>
      <SubSystem>Console</SubSystem>
      <GenerateDebugInformation>true</GenerateDebugInformation>
    </Link>
  </ItemDefinitionGroup>

所包含的文件,只不过这里并无Filter信息,而是文件在磁盘上的相对路径,如下:

 <ItemGroup>
    <Text Include="..\..\msvcpp\ReadMe.txt" />
  </ItemGroup>
  <ItemGroup>
    <ClInclude Include="..\..\msvcpp\stdafx.h" />
    <ClInclude Include="..\..\msvcpp\targetver.h" />
  </ItemGroup>
  <ItemGroup>
    <ClCompile Include="..\..\msvcpp\collection\listTest.cpp" />
    <ClCompile Include="..\..\msvcpp\msvcpp.cpp" />
    <ClCompile Include="..\..\msvcpp\stdafx.cpp">
      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
    </ClCompile>
    <ClCompile Include="..\..\msvcpp\strTest.cpp" />
  </ItemGroup>

.vcxproj.user

在 Visual Studio 中,.user 文件是用来存储用户自定义设置的文件。这些设置包括项目文件中未包含的 IDE 设置,例如编辑器字体和颜色、自定义工具栏和窗口布局等等。用户可以通过修改 .user 文件来自定义这些设置,而不会影响项目文件或者其他用户的设置。每个用户都可以拥有自己的 .user 文件。

比如上文的显示Filter还是全部的设置就包含在此文件中

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <ShowAllFiles>false</ShowAllFiles>
  </PropertyGroup>
</Project>

首页 上一页 1 2 下一页 尾页 2/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇【VS Code 与 Qt6】QAction 类的.. 下一篇01、spdlog源码阅读——registry..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目