Skip to content

Commit

Permalink
Disable some projects from running tests as tools
Browse files Browse the repository at this point in the history
  • Loading branch information
dsplaisted committed Feb 7, 2020
1 parent 0e4a4ac commit 86f687e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<TargetFramework>$(ToolsetTargetFramework)</TargetFramework>
<OutputType>Exe</OutputType>
<CanRunTestAsTool>false</CanRunTestAsTool>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Tests/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<IsPackable>true</IsPackable>
<PackAsTool>true</PackAsTool>
<ToolCommandName>$(PackageId)</ToolCommandName>
<CanRunTestAsTool>true</CanRunTestAsTool>
<CanRunTestAsTool Condition="'$(CanRunTestAsTool)' == ''">true</CanRunTestAsTool>

<!-- Put packages for tests in subfolder so we don't try to sign them -->
<PackageOutputPath>$(PackageOutputPath)tests\</PackageOutputPath>
Expand Down
1 change: 1 addition & 0 deletions src/Tests/EndToEnd.Tests/EndToEnd.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<PropertyGroup>
<TargetFramework>$(ToolsetTargetFramework)</TargetFramework>
<OutputType>Exe</OutputType>
<CanRunTestAsTool>false</CanRunTestAsTool>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<TargetFramework>$(ToolsetTargetFramework)</TargetFramework>
<OutputType>Exe</OutputType>
<StrongNameKeyId>MicrosoftAspNetCore</StrongNameKeyId>
<CanRunTestAsTool>false</CanRunTestAsTool>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\Cli\dotnet\dotnet.csproj" />
Expand Down
1 change: 1 addition & 0 deletions src/Tests/dotnet.Tests/dotnet.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<TargetFramework>$(ToolsetTargetFramework)</TargetFramework>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
<StrongNameKeyId>MicrosoftAspNetCore</StrongNameKeyId>
<CanRunTestAsTool>false</CanRunTestAsTool>

<!-- Use layout folder for the output folder, to support in-process tests which expect to be running
on a valid layout. -->
Expand Down

0 comments on commit 86f687e

Please sign in to comment.