Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3117

Execute an action after my nuget package is installed

$
0
0

We have created a lot of NuGet package. One of them is a tool, and it contains special compiler and it is installed like a dotnet tool. The name of the command is "PolyGen".

We used a similar mechanism like Grpc.Tools use, that means we have define .targets file inside in our NugetPackage. And it works well.

But when I update my PolyGen, after I have to update the dotnet tool manually with dotnet tool update command.

But I see when the Grpc.Tools is updated, the dotnet tool update is automatically executed. And the Package Manager console wrote the following message:

Executing nuget actions took 181,36 ms

How can we define this automatically executed command, to avoid a manually update ?

Thank you guys!


Viewing all articles
Browse latest Browse all 3117

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>