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
2 changes: 2 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
<PropertyGroup>
<PackageIconUrl>http://go.microsoft.com/fwlink/?LinkID=288859</PackageIconUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>

<TestRunnerName>XUnitV3</TestRunnerName>
</PropertyGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<TargetFramework>net8.0</TargetFramework>

<IsPackable>false</IsPackable>
<OutputType>Exe</OutputType>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<OutputType>Exe</OutputType>
</PropertyGroup>

<ItemGroup>
Expand Down
6 changes: 4 additions & 2 deletions test/dotnet-core-uninstall.Tests/Attributes/MacOsOnlyFact.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
using Microsoft.DotNet.Tools.Uninstall.Shared.Utils;
using System.Runtime.CompilerServices;
using Microsoft.DotNet.Tools.Uninstall.Shared.Utils;
using Xunit;

namespace Microsoft.DotNet.Tools.Uninstall.Tests.Attributes
{
internal sealed class MacOsOnlyFact : FactAttribute
{
public MacOsOnlyFact()
public MacOsOnlyFact([CallerFilePath] string sourceFilePath = null, [CallerLineNumber] int sourceLineNumber = -1)
: base(sourceFilePath, sourceLineNumber)
{
if (!RuntimeInfo.RunningOnOSX)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
using Microsoft.DotNet.Tools.Uninstall.Shared.Utils;
using System.Runtime.CompilerServices;
using Microsoft.DotNet.Tools.Uninstall.Shared.Utils;
using Xunit;

namespace Microsoft.DotNet.Tools.Uninstall.Tests.Attributes
{
internal sealed class MacOsOnlyTheory : TheoryAttribute
{
public MacOsOnlyTheory()
public MacOsOnlyTheory([CallerFilePath] string sourceFilePath = null, [CallerLineNumber] int sourceLineNumber = -1)
: base(sourceFilePath, sourceLineNumber)
{
if (!RuntimeInfo.RunningOnOSX)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
using Microsoft.DotNet.Tools.Uninstall.Shared.Utils;
using System.Runtime.CompilerServices;
using Microsoft.DotNet.Tools.Uninstall.Shared.Utils;
using Xunit;

namespace Microsoft.DotNet.Tools.Uninstall.Tests.Attributes
{
internal sealed class WindowsOnlyFact : FactAttribute
{
public WindowsOnlyFact()
public WindowsOnlyFact([CallerFilePath] string sourceFilePath = null, [CallerLineNumber] int sourceLineNumber = -1)
: base(sourceFilePath, sourceLineNumber)
{
if (!RuntimeInfo.RunningOnWindows)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
using Microsoft.DotNet.Tools.Uninstall.Shared.Utils;
using System.Runtime.CompilerServices;
using Microsoft.DotNet.Tools.Uninstall.Shared.Utils;
using Xunit;

namespace Microsoft.DotNet.Tools.Uninstall.Tests.Attributes
{
internal sealed class WindowsOnlyTheory : TheoryAttribute
{
public WindowsOnlyTheory()
public WindowsOnlyTheory([CallerFilePath] string sourceFilePath = null, [CallerLineNumber] int sourceLineNumber = -1)
: base(sourceFilePath, sourceLineNumber)
{
if (!RuntimeInfo.RunningOnWindows)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<OutputType>Exe</OutputType>
</PropertyGroup>

<ItemGroup>
Expand Down