-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add initial commit for package validation #16992
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
Conversation
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label. |
src/Compatibility/Microsoft.DotNet.ApiCompatibility/DiagnosticBag.cs
Outdated
Show resolved
Hide resolved
src/Compatibility/Microsoft.DotNet.PackageValidation/Microsoft.DotNet.PackageValidation.csproj
Outdated
Show resolved
Hide resolved
</Reference> | ||
</ItemGroup> | ||
|
||
<Target Name="_AddBuildOutputToPackageCore" DependsOnTargets="Publish" Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'"> |
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.
(for my information) Why don't we need to Publish
for net472
?
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.
net472 doesnt create a publish folder on using dotnet pack.
src/Compatibility/Microsoft.DotNet.PackageValidation/Microsoft.DotNet.PackageValidation.csproj
Outdated
Show resolved
Hide resolved
src/Compatibility/Microsoft.DotNet.PackageValidation/CompatibleTFMValidator.cs
Outdated
Show resolved
Hide resolved
src/Compatibility/Microsoft.DotNet.PackageValidation/CompatibleTFMValidator.cs
Outdated
Show resolved
Hide resolved
src/Compatibility/Microsoft.DotNet.PackageValidation/CompatibleTFMValidator.cs
Outdated
Show resolved
Hide resolved
src/Compatibility/Microsoft.DotNet.PackageValidation/CompatibleFrameworkInPackageValidator.cs
Outdated
Show resolved
Hide resolved
src/Compatibility/Microsoft.DotNet.PackageValidation/IPackageValidator.cs
Outdated
Show resolved
Hide resolved
src/Compatibility/Microsoft.DotNet.PackageValidation/CompatibleFrameworkInPackageValidator.cs
Outdated
Show resolved
Hide resolved
src/Compatibility/Microsoft.DotNet.PackageValidation/Package.cs
Outdated
Show resolved
Hide resolved
src/Compatibility/Microsoft.DotNet.PackageValidation/Package.cs
Outdated
Show resolved
Hide resolved
...tibility/Microsoft.DotNet.PackageValidation/build/Microsoft.DotNet.PackageValidation.targets
Outdated
Show resolved
Hide resolved
...tibility/Microsoft.DotNet.PackageValidation/build/Microsoft.DotNet.PackageValidation.targets
Outdated
Show resolved
Hide resolved
...tibility/Microsoft.DotNet.PackageValidation/build/Microsoft.DotNet.PackageValidation.targets
Outdated
Show resolved
Hide resolved
...tibility/Microsoft.DotNet.PackageValidation/build/Microsoft.DotNet.PackageValidation.targets
Outdated
Show resolved
Hide resolved
src/Compatibility/Microsoft.DotNet.PackageValidation/ValidatePackage.cs
Outdated
Show resolved
Hide resolved
src/Compatibility/Microsoft.DotNet.PackageValidation/ValidatePackage.cs
Outdated
Show resolved
Hide resolved
src/Compatibility/Microsoft.DotNet.PackageValidation/ValidatePackage.cs
Outdated
Show resolved
Hide resolved
...tibility/Microsoft.DotNet.PackageValidation/build/Microsoft.DotNet.PackageValidation.targets
Outdated
Show resolved
Hide resolved
src/Compatibility/Microsoft.DotNet.PackageValidation/ApiCompatRunner.cs
Outdated
Show resolved
Hide resolved
src/Compatibility/Microsoft.DotNet.PackageValidation/Helpers.cs
Outdated
Show resolved
Hide resolved
src/Compatibility/Microsoft.DotNet.PackageValidation/NupkgParser.cs
Outdated
Show resolved
Hide resolved
src/Compatibility/Microsoft.DotNet.PackageValidation/Package.cs
Outdated
Show resolved
Hide resolved
src/Compatibility/Microsoft.DotNet.PackageValidation/Checker.cs
Outdated
Show resolved
Hide resolved
src/Compatibility/Microsoft.DotNet.PackageValidation/ApiCompatRunner.cs
Outdated
Show resolved
Hide resolved
src/Compatibility/Microsoft.DotNet.PackageValidation/ApiCompatRunner.cs
Outdated
Show resolved
Hide resolved
using (Stream leftAssemblyStream = GetFileStreamFromPackage(apicompatTuples.leftAssemblyPackagePath, apicompatTuples.leftAssemblyRelativePath)) | ||
using (Stream rightAssemblyStream = GetFileStreamFromPackage(apicompatTuples.rightAssemblyPackagePath, apicompatTuples.rightAssemblyRelativePath)) | ||
{ | ||
IAssemblySymbol leftSymbols = new AssemblySymbolLoader().LoadAssembly(apicompatTuples.assemblyName, leftAssemblyStream); |
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.
All this logic will need to be changed with: #17295
src/Compatibility/Microsoft.DotNet.PackageValidation/BaselinePackageValidator.cs
Show resolved
Hide resolved
src/Compatibility/Microsoft.DotNet.PackageValidation/BaselinePackageValidator.cs
Outdated
Show resolved
Hide resolved
} | ||
|
||
// If no suitable package was found, error out. | ||
// TODO: Localize error message and add more diagnostics. |
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.
Might be worth to log issues for these TODOs.
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.
yeah i will create those
src/Compatibility/Microsoft.DotNet.PackageValidation/ValidatePackage.cs
Outdated
Show resolved
Hide resolved
...tibility/Microsoft.DotNet.PackageValidation/build/Microsoft.DotNet.PackageValidation.targets
Show resolved
Hide resolved
src/Compatibility/Microsoft.DotNet.ApiCompatibility/DiagnosticBag.cs
Outdated
Show resolved
Hide resolved
src/Tests/Microsoft.DotNet.PackageValidation.Tests/PackageValidationTests.cs
Show resolved
Hide resolved
src/Tests/Microsoft.DotNet.PackageValidation.Tests/PackageValidationTests.cs
Show resolved
Hide resolved
src/Compatibility/Microsoft.DotNet.PackageValidation/Resources.resx
Outdated
Show resolved
Hide resolved
src/Compatibility/Microsoft.DotNet.PackageValidation/Resources.resx
Outdated
Show resolved
Hide resolved
src/Compatibility/Microsoft.DotNet.PackageValidation/Resources.resx
Outdated
Show resolved
Hide resolved
src/Compatibility/Microsoft.DotNet.PackageValidation/Resources.resx
Outdated
Show resolved
Hide resolved
src/Compatibility/Microsoft.DotNet.PackageValidation/Resources.resx
Outdated
Show resolved
Hide resolved
src/Compatibility/Microsoft.DotNet.PackageValidation/BaselinePackageValidator.cs
Outdated
Show resolved
Hide resolved
src/Compatibility/Microsoft.DotNet.PackageValidation/Resources.resx
Outdated
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.
Other than my last comment this looks great! Great work! Excited to see this coming together, and let's open the follow up issues we discussed offline.
The initial commit contains
Things left