Fix wrapped project export
This commit is contained in:
parent
25d70c07c3
commit
304127ec0d
1 changed files with 3 additions and 3 deletions
|
@ -215,7 +215,7 @@ namespace Microsoft.DotNet.ProjectModel.Compilation
|
||||||
|
|
||||||
var compileAsset = new LibraryAsset(
|
var compileAsset = new LibraryAsset(
|
||||||
project.Project.Name,
|
project.Project.Name,
|
||||||
null,
|
Path.GetFileName(assemblyPath),
|
||||||
assemblyPath);
|
assemblyPath);
|
||||||
|
|
||||||
builder.AddCompilationAssembly(compileAsset);
|
builder.AddCompilationAssembly(compileAsset);
|
||||||
|
@ -334,7 +334,7 @@ namespace Microsoft.DotNet.ProjectModel.Compilation
|
||||||
|
|
||||||
var assemblyPath = Path.Combine(package.Path, analyzer);
|
var assemblyPath = Path.Combine(package.Path, analyzer);
|
||||||
|
|
||||||
// $/analyzers/{Framework Name}{Version}/{Supported Architecture}/{Supported Programming Language}/{Analyzer}.dll
|
// $/analyzers/{Framework Name}{Version}/{Supported Architecture}/{Supported Programming Language}/{Analyzer}.dll
|
||||||
switch (specifiers.Length)
|
switch (specifiers.Length)
|
||||||
{
|
{
|
||||||
// $/analyzers/{analyzer}.dll
|
// $/analyzers/{analyzer}.dll
|
||||||
|
@ -396,7 +396,7 @@ namespace Microsoft.DotNet.ProjectModel.Compilation
|
||||||
|
|
||||||
private static bool LibraryIsOfType(LibraryType type, LibraryDescription library)
|
private static bool LibraryIsOfType(LibraryType type, LibraryDescription library)
|
||||||
{
|
{
|
||||||
return type.Equals(LibraryType.Unspecified) || // No type filter was requested
|
return type.Equals(LibraryType.Unspecified) || // No type filter was requested
|
||||||
library.Identity.Type.Equals(type); // OR, library type matches requested type
|
library.Identity.Type.Equals(type); // OR, library type matches requested type
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue