https://discord.umbraco.com logo
#package-development
Title
# package-development
k

kevinjump

05/20/2022, 8:04 PM
Yes, are you also multitargeting?
p

p-m-j

05/20/2022, 8:28 PM
nope all net6
it appears to be something to do with attempting to dotnet pack with --no-build
a

abjerner

05/21/2022, 11:59 AM
I think NuGet defaults to both folders (due to legacy support IRC). I keep this in my .csproj file: https://github.com/skybrud/Skybrud.Umbraco.Redirects/blob/v3/main/src/Skybrud.Umbraco.Redirects/Skybrud.Umbraco.Redirects.csproj#L6
p

p-m-j

05/22/2022, 6:40 AM
hmm but this is not an RCL ^^
for the issue I was having it isn't about content vs contentFiles it's the fact that either exist in the first place as the assets should be expected to be in staticwebassets. I'm not exactly sure what's up with it but if ran as
build
followed by`pack --no-build` one of the pack targets ends up outputting a list of files with both the absolute paths and the the relative paths and we end a tripple sized nupkg. but running
pack
omitting
--no-build
everything works as expected, no content or contentFiles only staticwebassets which is fixed enough for me not to lose any sleep over it.