JetBrains / ExternalAnnotations

JetBrains ReSharper External Annotations
https://www.jetbrains.com/help/resharper/Code_Analysis__External_Annotations.html
MIT License
81 stars 44 forks source link

Package install fails on .NET Core project in VS2017 RC #45

Closed bkoelman closed 7 years ago

bkoelman commented 7 years ago

Repro steps:

Actual:

install-package : Package JetBrains.ExternalAnnotations 10.2.3 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package JetBrains.ExternalAnnotations 10.2.3 supports: net (.NETFramework,Version=v0.0)
At line:1 char:1
+ install-package jetbrains.externalannotations
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

install-package : One or more packages are incompatible with .NETCoreApp,Version=v1.0.
At line:1 char:1
+ install-package jetbrains.externalannotations
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

install-package : Package restore failed. Rolling back package changes for 'CoreWebApplication1'.
At line:1 char:1
+ install-package jetbrains.externalannotations
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

Expected: successful installation.

derigel23 commented 7 years ago

@bkoelman this package is not supposed to be installed in regular projects. I assume you are looking for this package https://www.nuget.org/packages/JetBrains.Annotations

bkoelman commented 7 years ago

No I mean to install this package. I've written an analyzer that parses these external annotations. Normally they are taken from the Resharper installation directory. But it is used on build servers that do not have Resharper installed. See https://github.com/bkoelman/ResharperCodeContractNullability/, last paragraph.

bkoelman commented 7 years ago

Works great, thanks!