Skip to content

Commit

Permalink
allow hosting pre-built test package this scenario
Browse files Browse the repository at this point in the history
pending NuGet/Home#4254. Without this, we have no way to create a NuGet package that doesn't contain a package reference to Microsoft.DotNet.Cli.Utils, preventing a proper repro of https://github.com/dotnet/cli/issues/4214.
  • Loading branch information
jonsequitur committed Jan 19, 2017
1 parent b31b461 commit 248b585
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,4 @@
Version="15.1.0-preview-000458-02" />
</ItemGroup>

<Target Name="PackNuspec" AfterTargets="Pack">
<Exec Command="dotnet nuget pack PackagedTaskWithCliDependencyConflict.nuspec" />
</Target>

</Project>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<UsingTask TaskName="TaskFoundOnlyInOneVersion"
AssemblyFile="$(MSBuildThisFileDirectory)/../bin/Debug/netcoreapp1.0/DependsOn.Other.Microsoft.DotNet.Cli.Utils.dll" />
AssemblyFile="$(MSBuildThisFileDirectory)/../lib/netcoreapp1.0/DependsOn.Other.Microsoft.DotNet.Cli.Utils.dll" />

<PropertyGroup>
<ApplicationName>$(AssemblyName)</ApplicationName>
Expand Down
11 changes: 0 additions & 11 deletions build/test/TestPackageProjects.targets
Original file line number Diff line number Diff line change
Expand Up @@ -185,17 +185,6 @@
<Clean>True</Clean>
<Frameworks>netcoreapp1.0</Frameworks>
</BaseTestPackageProject>
<BaseTestPackageProject Include="TestAssets/TestPackages/PackagedTaskWithCliDependencyConflict">
<Name>PackagedTaskWithCliDependencyConflict</Name>
<ProjectName>PackagedTaskWithCliDependencyConflict.csproj</ProjectName>
<NuPkgName>PackagedTaskWithCliDependencyConflict</NuPkgName>
<IsTool>False</IsTool>
<IsApplicable>True</IsApplicable>
<VersionPrefix>1.0.0</VersionPrefix>
<VersionSuffix>preview</VersionSuffix>
<Clean>True</Clean>
<Frameworks>netcoreapp1.0</Frameworks>
</BaseTestPackageProject>
<BaseTestPackageProject Include="TestAssets/TestPackages/ToolWithOutputName">
<Name>dotnet-tool-with-output-name</Name>
<ProjectName>ToolWithOutputName.csproj</ProjectName>
Expand Down
6 changes: 0 additions & 6 deletions test/msbuild.IntegrationTests/GivenDotnetInvokesMSBuild.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,6 @@ public void WhenBuildTargetDependsOnADifferentVersionOfAnAssemblyTheCliDependsOn
.WithSourceFiles()
.WithRestoreFiles();

// var restore = new DotnetCommand()
// .WithWorkingDirectory(testInstance.Root)
// .Execute("restore");

// restore.Should().Pass();

var msbuild = new DotnetCommand()
.WithWorkingDirectory(testInstance.Root)
.ExecuteWithCapturedOutput($"msbuild /t:TaskFoundOnlyInOneVersion");
Expand Down

0 comments on commit 248b585

Please sign in to comment.