Appveyor nuget analyzer

I'm trying to come up with a good way to put together Roslyn analyzer designs in NuGet. This requires a specific NuGet c package structure .dllplaced in \analyzer\, rather than \lib\.

To do this, I need to call nuget pack <name>.nuspec, not nuget pack <name>.csproj. But if I use nuspec, then the $ version $ tag is ignored.

It seems that my only option is to manually update the version in .nuspecwith each restore. What is the right and right way to accomplish this?

+6
source share
1 answer

The right way:

  • Call nuget.nuspec package from .csproj
  • Pass Version retrieved from Assembly as parameters.
  • Appveyor
  • Appveyor .nupkg `to .

. https://github.com/leotsarev/hardcode-analyzer

0

Source: https://habr.com/ru/post/1016756/


All Articles