Fixing ProjectDependenciesCommandFactory to resolve tools
if the package name is different from the dll name Addresses #2592
This commit is contained in:
parent
3d8cbba932
commit
1aac8fb643
12 changed files with 231 additions and 21 deletions
12
TestAssets/TestPackages/ToolWithOutputName/Program.cs
Normal file
12
TestAssets/TestPackages/ToolWithOutputName/Program.cs
Normal file
|
@ -0,0 +1,12 @@
|
|||
using System;
|
||||
|
||||
namespace ConsoleApplication
|
||||
{
|
||||
public class Program
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
Console.WriteLine("Tool with output name!");
|
||||
}
|
||||
}
|
||||
}
|
17
TestAssets/TestPackages/ToolWithOutputName/project.json
Normal file
17
TestAssets/TestPackages/ToolWithOutputName/project.json
Normal file
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"version": "1.0.0",
|
||||
"compilationOptions": {
|
||||
"outputName": "dotnet-tool-with-output-name",
|
||||
"emitEntryPoint": true
|
||||
},
|
||||
"frameworks": {
|
||||
"netcoreapp1.0": {
|
||||
"dependencies": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"type": "platform",
|
||||
"version": "1.0.0-rc2-*"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue