10

I'm using new .csproj file format to pack NuGet package without using .nuspec file.

The problem is, it puts my dll in \lib\ where I need to put it \analyzers\

Who I do accomplish that?

Leotsarev
  • 1,040
  • 7
  • 23

1 Answers1

3

The property that controls where the build output is placed is called BuildOutputTargetFolder which is defaulted to lib (or tools when IsTool is set to true):

<BuildOutputTargetFolder>analyzers</BuildOutputTargetFolder>
Martin Ullrich
  • 94,744
  • 25
  • 252
  • 217
  • Is there any way to suppress the added `\netstandard1.3` added to this path? It prevents you from successfully packing a Roslyn analyzer which needs to follow the format `analyzers\dotnet\cs` (https://learn.microsoft.com/en-us/nuget/reference/analyzers-conventions#analyzers-path-format). – jnm2 Jul 19 '19 at 01:41
  • 2
    Ah, collected some workarounds in the open issue https://github.com/NuGet/Home/issues/6793#issuecomment-513060540. – jnm2 Jul 19 '19 at 02:14