forked from dotnet/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b4ef34b
commit e19f72f
Showing
11 changed files
with
168 additions
and
1 deletion.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
...s/TestPackages/Other.Microsoft.DotNet.Cli.Utils/ClassThatIsntInMicrosoftDotNetCliUtils.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
namespace Microsoft.DotNet.Cli.Utils | ||
{ | ||
public static class ClassThatIsntInMicrosoftDotNetCliUtils | ||
{ | ||
public static string GetValue() => "Hello there!"; | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...ets/TestPackages/Other.Microsoft.DotNet.Cli.Utils/Other.Microsoft.DotNet.Cli.Utils.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Library</OutputType> | ||
<TargetFramework>netcoreapp1.0</TargetFramework> | ||
<AssemblyName>Microsoft.DotNet.Cli.Utils</AssemblyName> | ||
<Version>123.0.0.0</Version> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="**\*.cs" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.NETCore.App" Version="1.0.1" /> | ||
</ItemGroup> | ||
|
||
</Project> |
17 changes: 17 additions & 0 deletions
17
TestAssets/TestPackages/PackagedTaskWithCliDependencyConflict/Banana.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using Microsoft.Build.Framework; | ||
using Microsoft.DotNet.Cli.Utils; | ||
|
||
namespace Banana.Task | ||
{ | ||
public class Banana : Microsoft.Build.Utilities.Task | ||
{ | ||
[Output] | ||
public string TaskOutput { get; private set; } | ||
|
||
public override bool Execute() | ||
{ | ||
TaskOutput = ClassThatIsntInMicrosoftDotNetCliUtils.GetValue(); | ||
return true; | ||
} | ||
} | ||
} |
52 changes: 52 additions & 0 deletions
52
...ckages/PackagedTaskWithCliDependencyConflict/PackagedTaskWithCliDependencyConflict.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Library</OutputType> | ||
<TargetFramework>netcoreapp1.0</TargetFramework> | ||
<AssemblyName>DependsOn.Other.Microsoft.DotNet.Cli.Utils</AssemblyName> | ||
<PackageId>PackagedTaskWithCliDependencyConflict</PackageId> | ||
<Version>1.0.0-preview</Version> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="**\*.cs" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference | ||
Include="..\Other.Microsoft.DotNet.Cli.Utils\Other.Microsoft.DotNet.Cli.Utils.csproj" | ||
TreatAsPackageReference="false" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<None Include="build\PackagedTaskWithCliDependencyConflict.targets" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Content Include="build\*.targets"> | ||
<Pack>true</Pack> | ||
<PackagePath>build\</PackagePath> | ||
</Content> | ||
<Content Include="..\Other.Microsoft.DotNet.Cli.Utils\bin\Debug\netcoreapp1.0\Microsoft.DotNet.Cli.Utils.dll"> | ||
<Pack>true</Pack> | ||
<PackagePath>lib\$(TargetFramework)</PackagePath> | ||
</Content> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.NETCore.App"> | ||
<Version>1.0.1</Version> | ||
</PackageReference> | ||
<PackageReference Include="Microsoft.Build.Framework"> | ||
<Version>15.1.0-preview-000458-02</Version> | ||
</PackageReference> | ||
<PackageReference Include="Microsoft.Build.Utilities.Core"> | ||
<Version>15.1.0-preview-000458-02</Version> | ||
</PackageReference> | ||
</ItemGroup> | ||
|
||
<Target Name="PackNuspec" AfterTargets="Pack"> | ||
<Exec Command="dotnet nuget pack PackagedTaskWithCliDependencyConflict.nuspec" /> | ||
</Target> | ||
|
||
</Project> |
17 changes: 17 additions & 0 deletions
17
...ckages/PackagedTaskWithCliDependencyConflict/PackagedTaskWithCliDependencyConflict.nuspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd"> | ||
<metadata> | ||
<id>PackagedTaskWithCliDependencyConflict</id> | ||
<version>1.0.0-preview</version> | ||
<authors>DependsOn.Other.Microsoft.DotNet.Cli.Utils</authors> | ||
<owners>DependsOn.Other.Microsoft.DotNet.Cli.Utils</owners> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description>Package Description</description> | ||
<files> | ||
<file src="bin/$configuration$/netcoreapp1.0/*.dll" target="lib" /> | ||
<file src="build/PackagedTaskWithCliDependencyConflict.targets" /> | ||
</files> | ||
</metadata> | ||
</package> | ||
|
||
|
12 changes: 12 additions & 0 deletions
12
...PackagedTaskWithCliDependencyConflict/build/PackagedTaskWithCliDependencyConflict.targets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<UsingTask TaskName="Banana" AssemblyFile="$(MSBuildThisFileDirectory)/../bin/Debug/netcoreapp1.0/DependsOn.Other.Microsoft.DotNet.Cli.Utils.dll" /> | ||
|
||
<PropertyGroup> | ||
<ApplicationName>$(AssemblyName)</ApplicationName> | ||
<ApplicationName Condition="'$(AssemblyName)' == ''">$(MsBuildProjectName)</ApplicationName> | ||
</PropertyGroup> | ||
|
||
<Target Name="Banana"> | ||
<Banana /> | ||
</Target> | ||
</Project> |
17 changes: 17 additions & 0 deletions
17
...ssets/TestProjects/AppWithCliConflictingDependency/AppWithCliConflictingDependency.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>netcoreapp1.0</TargetFramework> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="**\*.cs" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.NETCore.App" Version="1.0.1" /> | ||
<PackageReference Include="PackagedTaskWithCliDependencyConflict" Version="1.0.0-preview" /> | ||
</ItemGroup> | ||
|
||
</Project> |
6 changes: 6 additions & 0 deletions
6
TestAssets/TestProjects/AppWithCliConflictingDependency/NuGet.Config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<packageSources> | ||
<add key="test-packages" value="../../../artifacts/testpackages" /> | ||
</packageSources> | ||
</configuration> |
9 changes: 9 additions & 0 deletions
9
TestAssets/TestProjects/AppWithCliConflictingDependency/Program.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using System; | ||
|
||
class Program | ||
{ | ||
static void Main(string[] args) | ||
{ | ||
Console.WriteLine("Here I am!"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters