Skip to main content
  1. Posts/

Issue I ran into when using Nuget/SlowCheetah

·143 words·1 min
Author
Gregor Suttie
Passionate about all things Azure. Microsoft Azure MVP, blogger, speaker and community enthusiast based in Scotland.

nuget
Cannot add part to the package. Part names cannot be derived from another part name by appending segments to it

Last week I ran into an issue where I was using nuget to package a .csproj file. What I was after was the contents of the nuget package to contain a Content folder and inside this Content folder have one file called app.config.transform, that’s it.

If my .csproj file contained the following:-

[sourcecode language=“xml”]

..\.shared\SlowCheetah.Transforms.targets

[/sourcecode]

Then the package contents had a single file called content - which is incorrect.

The way I fixed this was inside the .csproj file I changed the type of the app.config.transform from Content to None. I then changed my .nuspec file to have the following:-

[sourcecode language=“xml”]

[/sourcecode]

This fixed my issue with the contents of my nuget package, just incase anyone runs into the same issue.

Share this:

Related