File tree Expand file tree Collapse file tree 4 files changed +16
-6
lines changed
InstrumentationEngine.Attach
InstrumentationEngine.XdtExtensions Expand file tree Collapse file tree 4 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
2+ <!-- Copyright (c) Microsoft Corporation. All rights reserved.
3+ Licensed under the MIT License. -->
24<Project xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
35 <PropertyGroup >
46 <PrepareForRunDependsOn >$(PrepareForRunDependsOn);GeneratePrivateXdts;ZipFiles</PrepareForRunDependsOn >
Original file line number Diff line number Diff line change 1- <Project >
2- <!-- Copyright (c) Microsoft Corporation. All rights reserved.
1+ <!-- Copyright (c) Microsoft Corporation. All rights reserved.
32 Licensed under the MIT License. -->
3+ <Project >
44 <PropertyGroup >
55 <SubComponent >Tools\Attach</SubComponent >
66 </PropertyGroup >
Original file line number Diff line number Diff line change 1- <Project >
21<!-- Copyright (c) Microsoft Corporation. All rights reserved.
32 Licensed under the MIT License. -->
3+ <Project >
44 <Import Project =" $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), 'EnlistmentRoot.marker'))\build\Managed.props" />
55 <Import Project =" Sdk.props" Sdk =" Microsoft.NET.Sdk" />
66 <PropertyGroup >
Original file line number Diff line number Diff line change @@ -63,6 +63,8 @@ $excludedFiles = @(
6363 ' RawProfilerHook_i.h'
6464 ' dlldata.c'
6565 ' build.sem'
66+ ' EngineConfiguration.cs'
67+ ' InstrumentationConfigurationSources.cs'
6668
6769 # the license itself
6870 ' LICENSE'
@@ -98,10 +100,16 @@ Get-ChildItem -Path $PSScriptRoot -Recurse -File |
98100 $mitLicenseIndex = $i + 2
99101 }
100102
101- if (! $lines [$copyrightIndex ].ToString().Contains($copyrightHeader ) -or
102- ! $lines [$mitLicenseIndex ].ToString().Contains($mitLicenseHeader ))
103+ if (! $lines [$copyrightIndex ].ToString().Contains($copyrightHeader ))
103104 {
104- Write-Warning " $ ( $_.FullName ) is missing OSS header."
105+ Write-Warning " $ ( $_.FullName ) is missing OSS header: $copyrightHeader "
106+ Write-Warning " > $ ( $lines [$copyrightIndex ]) "
107+ }
108+
109+ if (! $lines [$mitLicenseIndex ].ToString().Contains($mitLicenseHeader ))
110+ {
111+ Write-Warning " $ ( $_.FullName ) is missing OSS header: $mitLicenseHeader "
112+ Write-Warning " > $ ( $lines [$mitLicenseIndex ]) "
105113 }
106114 }
107115 else
You can’t perform that action at this time.
0 commit comments