Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions eng/TraversalSdk.AfterTargets.targets
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@
</PropertyGroup>

<ItemGroup Condition="'$(FilterTraversalProjectReferences)' == 'true'">
<!-- Override the Traversal SDK setting as filtering relies on the TargetFrameworkProperties being fetched
and don't flow the BuildTargetFramework property down. -->
<!-- Override the Traversal SDK setting as filtering relies on the TargetFrameworkProperties being fetched. -->
<ProjectReference Update="@(ProjectReference)"
SkipGetTargetFrameworkProperties="false"
UndefineProperties="%(UndefineProperties);BuildTargetFramework" />
SkipGetTargetFrameworkProperties="false" />
</ItemGroup>

</Project>
4 changes: 3 additions & 1 deletion eng/intellisense.targets
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,13 @@
</PropertyGroup>
</Target>

<!-- Skip the PNSE doc-source self-reference when not building a .NETCoreApp vertical. -->
<Target Name="AddProjectReferenceToPNSEDocSource"
DependsOnTargets="GetPNSEDocTargetFramework"
BeforeTargets="PrepareForBuild"
Condition="'$(IsPlatformNotSupportedAssembly)' == 'true' and
'$(UseCompilerGeneratedDocXmlFile)' == 'true'">
'$(UseCompilerGeneratedDocXmlFile)' == 'true' and
('$(BuildTargetFramework)' == '' or '$(TargetFrameworkIdentifier)' == '.NETCoreApp')">

<Error Condition="'$(PNSEDocTargetFramework)' == ''"
Text="Could not find a compatible TargetFramework to use as the documentation source for this PNSE build. Set 'PNSEDocTargetFramework' to the desired target framework." />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ public void Clear()
Assert.Equal(0, errObj.HelpContext);
Assert.Equal("", errObj.HelpFile);
Assert.Equal("", errObj.Source);
#if NET
Comment thread
ericstj marked this conversation as resolved.
Marshal.SetLastPInvokeError(42);
Assert.Equal(42, errObj.LastDllError);
#endif
Comment thread
ericstj marked this conversation as resolved.
Assert.Equal(0, errObj.Number);
Assert.Equal("", errObj.Description);
Assert.Null(errObj.GetException());
Expand Down
Loading