MSBuild.Sdk.SqlProj icon indicating copy to clipboard operation
MSBuild.Sdk.SqlProj copied to clipboard

Automatic Nuspec generation

Open mwwhited opened this issue 3 years ago • 0 comments

https://github.com/rr-wfm/MSBuild.Sdk.SqlProj/blob/d80ce593feb255471cf4b60e46a520e67b52bedb/src/MSBuild.Sdk.SqlProj/Sdk/Sdk.props#L29

The reason a .nuspec file needs to be created manually to get dotnet pack to work is the fact you are setting the <NuspecFile>$(MSBuildProjectName).nuspec</NuspecFile> property. If you either remove this line or add a condition to check for the existence of the file dotnet pack will correctly generate the .nuspec for you.

A simple work around until this project is updated is to just clear out <NuspecFile></NuspecFile> in one of your project file's property groups.

mwwhited avatar Apr 21 '22 14:04 mwwhited