Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 5585aeb

Browse files
committed
Remove nuget props/targets from Logging which had adverse side effect… (#2318)
* Remove nuget props/targets from Logging which had adverse side effects on timestamp file creation * Fix timestamp file creation for real this time. It was being invoked a second time as a result of the nugetizer targets. The property to key off of was BuildingPackage.
1 parent 09802d4 commit 5585aeb

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

common/NuprojInitializer.msbuildproj

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
<PropertyGroup Label="Globals">
1515
<OutputPath>$(SolutionDir)</OutputPath>
1616
<ProjectGuid>417B0D00-F90E-47BB-9085-BE7E412C9DA8</ProjectGuid>
17+
<TargetDir>$(SolutionDir)</TargetDir>
18+
<TargetName>$(SolutionName)</TargetName>
19+
<TargetExt>.timestamp</TargetExt>
1720
</PropertyGroup>
1821
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'" />
1922
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'" />
@@ -27,9 +30,9 @@
2730
<!-- This is where the fun starts. Any custom generic msbuild project goop goes here. -->
2831

2932
<!-- Inline task to check for timestamp file existence and creation-->
30-
<Target Name="CreateTimestampFile" AfterTargets="Build">
31-
<Touch Condition="'$(SolutionDir)' != ''" AlwaysCreate="true" Files="$(SolutionDir)$(SolutionName).timestamp" />
32-
<Message Condition="'$(SolutionDir)' != ''" Text="NuprojInitializer touched $(SolutionDir)$(SolutionName).timestamp" />
33+
<Target Name="Build">
34+
<Touch Condition="'$(SolutionDir)' != '' And '$(BuildingPackage)' != 'true'" AlwaysCreate="true" Files="$(SolutionDir)$(SolutionName).timestamp" />
35+
<Message Condition="'$(SolutionDir)' != '' And '$(BuildingPackage)' != 'true'" Text="NuprojInitializer touched $(SolutionDir)$(SolutionName).timestamp" />
3336
</Target>
3437

3538
</Project>

common/winobjc.nuproj.common.targets

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@
9999
<ProjectReference Include="$(MsBuildThisFileDirectory)\NuprojInitializer.msbuildproj" Condition="'$(SkipGetPackageContentsForOtherPlatforms)' != 'true'">
100100
<IncludeInPackage>false</IncludeInPackage>
101101
<Private>false</Private>
102+
<SkipGetTargetFrameworkProperties>true</SkipGetTargetFrameworkProperties>
102103
</ProjectReference>
103104
</ItemGroup>
104105

tools/Logging/dll/Logging.vcxproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="$(SolutionDir)\..\common\winobjc.nuproj.common.props" Condition="Exists('$(SolutionDir)\..\common\winobjc.nuproj.common.props')" />
43
<ItemGroup Label="ProjectConfigurations">
54
<ProjectConfiguration Include="Debug|ARM">
65
<Configuration>Debug</Configuration>
@@ -67,5 +66,4 @@
6766
<ItemGroup>
6867
<None Include="Project.json" />
6968
</ItemGroup>
70-
<Import Project="$(SolutionDir)\..\common\winobjc.nuproj.common.targets" Condition="Exists('$(SolutionDir)\..\common\winobjc.nuproj.common.targets')" />
7169
</Project>

tools/Logging/dll/Project.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"dependencies": {
3-
"GitVersionTask": "4.0.0-beta0011",
43
"NuGet.Build.Packaging": "0.1.186"
54
},
65
"frameworks": {

tools/tools.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ Global
279279
{B25DBFF1-1138-4413-8DC0-A2EEBB4A7C28}.Release|x86.ActiveCfg = Release|Win32
280280
{B25DBFF1-1138-4413-8DC0-A2EEBB4A7C28}.Release|x86.Build.0 = Release|Win32
281281
{0A23B6B4-94BB-4B3A-BA73-A7CB5EF7D8F9}.Debug|Any CPU.ActiveCfg = Debug|x86
282+
{0A23B6B4-94BB-4B3A-BA73-A7CB5EF7D8F9}.Debug|Any CPU.Build.0 = Debug|x86
282283
{0A23B6B4-94BB-4B3A-BA73-A7CB5EF7D8F9}.Debug|ARM.ActiveCfg = Debug|x86
283284
{0A23B6B4-94BB-4B3A-BA73-A7CB5EF7D8F9}.Debug|x86.ActiveCfg = Debug|x86
284285
{0A23B6B4-94BB-4B3A-BA73-A7CB5EF7D8F9}.Debug|x86.Build.0 = Debug|x86

0 commit comments

Comments
 (0)