perfview icon indicating copy to clipboard operation
perfview copied to clipboard

Document process how to build TraceEvent Nuget

Open kant2002 opened this issue 2 years ago • 1 comments

I was trying to check paths in the built TraceEvent library and I did not found a script for this.

I manage to find approximation like this. But that's probably not ideal and I do not know location where this can be documented.

cd src\TraceEvent
nuget.exe pack -Properties OutDir=bin\debug\ -Version 1.0.0 Microsoft.Diagnostics.Tracing.TraceEvent.nuspec

Separate note, does this project have to be built using msbuild? Maybe dotnet build works just fine with minor modifications, that way it would be possible to have dotnet pack and maybe signing related issue would be non-issue?

kant2002 avatar Feb 09 '23 04:02 kant2002

The nuget is built after the build of TraceEvent itself. TraceEvent.csproj sets GeneratePackageOnBuild to `true.

The .nuspec's placeholder properties, (Configuration, version and OutDir) are set in a custom target called SetNuspecProperties, also in TraceEvent.csproj:

So you just have to dotnet build TraceEvent.csproj and the .nupkg will be created under the bin directory.

pharring avatar Jun 01 '23 20:06 pharring