Skip to content

Commit b07efe3

Browse files
author
samcayford
committed
Update nuspec so only TinCan stuff included. Realease readme update
1 parent a42ddcd commit b07efe3

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

RELEASE.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,22 @@ Make sure that the `TinCan/Properties/AssemblyInfo.cs` has been updated with new
22

33
TinCan -> Properties -> Assembly Information
44

5-
Then set the Build Configuration to "Release" and build the solution. (Verify `bin/Release/TinCan.dll` has correct version.)
5+
Obtain the `TinCan.NET.pfx` file that is used for signing the relevant portions of the release.
6+
7+
Then right-click the solution in the "Solution Explorer" view and select "Batch Build...". Check the "Build" checkbox for the following `TinCan` configurations:
8+
Release-net35
9+
Release-net40
10+
Release-net45
11+
Release-net45-signed
12+
13+
The click "Build" to build the selected configurations. (Verify `bin/Release/net<X>/TinCan.dll` has correct version.)
614

715
With `nuget.exe` installed and in your path do:
816

917
cd TinCan
10-
nuget pack TinCan.csproj -sym -Prop Configuration=Release
18+
nuget pack TinCan.csproj -sym -Prop Configuration=Release-net35
1119
nuget push TinCan.(version).nupkg
1220

21+
Note: Providing a `Configuration` property is mandatory, otherwise `nuget` will build the `Debug` configuration and include that in the package. The `<files>` portion of the `.nuspec` ensures all releases built previously are in the created `nuget` package.
22+
1323
Commit the updated assembly information file and push to master. Upload the generated `TinCan.(version).nupkg` as a GitHub tag release.

TinCan/TinCan.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
</dependencies>
2020
</metadata>
2121
<files>
22-
<file src="bin\Release\**" target="lib" />
22+
<file src="bin\Release\**\TinCan*" target="lib" />
2323
</files>
2424
</package>

0 commit comments

Comments
 (0)