-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support reference assemblies #329
Conversation
...Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/MetadataReferences.cs
Outdated
Show resolved
Hide resolved
...Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/MetadataReferences.cs
Outdated
Show resolved
Hide resolved
...Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/MetadataReferences.cs
Outdated
Show resolved
Hide resolved
8f11a7e
to
b25f577
Compare
Resolves dotnet#305 Fixes dotnet#232
09e774c
to
bfd525c
Compare
02c7891
to
a98e27c
Compare
|
||
public AssemblyIdentityComparer AssemblyIdentityComparer { get; } | ||
|
||
public PackageIdentity? ReferenceAssemblyPackage { get; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 PackageIdentity
is a type from the NuGet API. Most NuGet-related APIs are not directly exposed by the testing library API, but this one is. This seems fine (at least for the first release of this feature) but I wanted to call it out.
...icrosoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/ReferenceAssemblies.cs
Outdated
Show resolved
Hide resolved
...icrosoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/ReferenceAssemblies.cs
Outdated
Show resolved
Hide resolved
<PackageReference Include="NuGet.Common" Version="$(NuGetApiVersion)" PrivateAssets="compile" /> | ||
<PackageReference Include="NuGet.Protocol" Version="$(NuGetApiVersion)" PrivateAssets="compile" /> | ||
<PackageReference Include="NuGet.Resolver" Version="$(NuGetApiVersion)" PrivateAssets="compile" /> | ||
<PackageReference Include="NuGet.Packaging" Version="$(NuGetApiVersion)" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 This package is required at compile time for test code to use PackageIdentity
.
...sting/Microsoft.CodeAnalysis.Analyzer.Testing/Microsoft.CodeAnalysis.Analyzer.Testing.csproj
Show resolved
Hide resolved
...s.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/ReferenceAssemblies+FileSystemSemaphore.cs
Show resolved
Hide resolved
...icrosoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/ReferenceAssemblies.cs
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolves #305
Fixes #232