Skip to content

Commit 13d2ce7

Browse files
committed
Improvements for User.props #383: changed Import-statement to provide accessibility via Property Manager; User.props sample changed
1 parent fc11044 commit 13d2ce7

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

Notepad2e.vcxproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@
7070
<PlatformToolset Condition="'$(VisualStudioVersion)' != '14.0'">v141_xp</PlatformToolset>
7171
<PlatformToolset Condition="'$(VisualStudioVersion)' == '14.0'">v140_xp</PlatformToolset>
7272
</PropertyGroup>
73-
<Import Project="User.props" Condition="exists('User.props')" />
7473
<PropertyGroup Condition="'$(Configuration)'=='Debug'" Label="Configuration">
7574
<UseDebugLibraries>true</UseDebugLibraries>
7675
</PropertyGroup>
@@ -101,6 +100,7 @@
101100
</ImportGroup>
102101
<ImportGroup Label="PropertySheets">
103102
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
103+
<Import Project="User.props" Condition="exists('User.props')" />
104104
</ImportGroup>
105105
<PropertyGroup Label="UserMacros" />
106106
<PropertyGroup>

User.props.IN

+11-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- NOTE: You can copy this file to User.props to override some standard settings -->
3-
<!-- NOTE: Don't add the copy User.props to source control!!! -->
1+
<?xml version="1.0" encoding="utf-8"?>
42
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
5-
<PropertyGroup Label="Configuration">
6-
<PlatformToolset>v142</PlatformToolset> <!-- VS2019 -->
3+
<PropertyGroup Label="UserMacros">
4+
<BOOST_ROOT>C:\boost\boost_1_73_0</BOOST_ROOT>
75
</PropertyGroup>
8-
</Project>
6+
<PropertyGroup />
7+
<ItemDefinitionGroup />
8+
<ItemGroup>
9+
<BuildMacro Include="BOOST_ROOT">
10+
<Value>$(BOOST_ROOT)</Value>
11+
</BuildMacro>
12+
</ItemGroup>
13+
</Project>

test/Extension/Notepad2eTests.vcxproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
<CharacterSet>Unicode</CharacterSet>
3232
<UseOfMfc>false</UseOfMfc>
3333
</PropertyGroup>
34-
<Import Project="..\..\User.props" Condition="exists('..\..\User.props')" />
3534
<PropertyGroup Condition="'$(Configuration)'=='Debug'" Label="Configuration">
3635
<UseDebugLibraries>true</UseDebugLibraries>
3736
</PropertyGroup>
@@ -46,6 +45,7 @@
4645
</ImportGroup>
4746
<ImportGroup Label="PropertySheets">
4847
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
48+
<Import Project="..\..\User.props" Condition="exists('..\..\User.props')" />
4949
</ImportGroup>
5050
<PropertyGroup Label="UserMacros" />
5151
<PropertyGroup>

0 commit comments

Comments
 (0)