Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3116

Package Analyzer with a public interface

$
0
0

I have an analyzer and codefix that searches a project for the implementation of an interface IImplementation.The interface isn't anything particularly special. For my purpose here, we'll make it:

public interface IImplementation{}

I'm having some trouble packaging the interface so that it's accessible in the project.

I have the basic solution setup with the following projects:

AnalyzerAnalyzer.CodeFixesAnalyzer.PackageIImplementation

In the Analyzer I try to find the NamedTypeSymbol of IImplementation.context.Compilation.GetTypeByMetadataName("IImplementation.IImplementation");

I create a .nupkg which contains /analyzers and /lib folders.

When I install the package it installs under Dependencies/Analyzers and Dependencies/Packages.

The Packages dependency doesn't look like it's loading correctly:

Package with Compile Time Assemblies

I noticed that it has not Compile Time Assemblies associated with it, and that every other package I see has them. So, I'm assuming that's where the issue lies.

Is there a way I can specify compile Time Assemblies for my Analyzer/Interface Package?


Viewing all articles
Browse latest Browse all 3116

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>