© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•17mo ago•
12 replies
Valdiralita

creating a nuget for a custom msbuild task

I'm trying to follow the custom msbuild task tutorial here: https://learn.microsoft.com/en-us/visualstudio/msbuild/tutorial-custom-task-code-generation?view=vs-2022
My problem is that when using
dotnet pack
dotnet pack
the resulting
nupkg
nupkg
file doesnt contain any binaries.
All required binaries are present in the
./bin/Release/netstandard2.0/
./bin/Release/netstandard2.0/
folder, they are just not packed into the
nupkg
nupkg
.
When inspecting the
nupkg
nupkg
, there is no
lib
lib
folder inside, i can see my .props file in the
build
build
folder though.
Any ideas why that may happen?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Custom msbuild task
C#CC# / help
16mo ago
MSBuild tasks, external dependencies and NuGet
C#CC# / help
2y ago
Custom MSBuild task fails to load `System.Runtime`
C#CC# / help
3y ago
Create MSBuild custom task to modify C# files before compilation
C#CC# / help
10mo ago