
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.



