Skip to content

Commit

Permalink
improv on nuget publish sn
Browse files Browse the repository at this point in the history
  • Loading branch information
aliostad committed Sep 13, 2015
1 parent bf4a97f commit a4e53dd
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 7 deletions.
3 changes: 2 additions & 1 deletion CacheCow.msbuild
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<PackageOutputDir Include=".\artifacts\packages" />
<Solutionfile Include=".\CacheCow.sln" />
<AppProjFiles Include=".\src\**\*.csproj" />
<SnProjFiles Include=".\src\**\CacheCow.Common.csproj;.\src\**\CacheCow.Server.csproj;.\src\**\CacheCow.Client.csproj;.\src\**\CacheCow.Server.EntityTagStore.AzureCaching.csproj;.\src\**\CacheCow.Client.AzureCaching.csproj;.\src\**\CacheCow.Server.EntityTagStore.MongoDb.csproj" />
<SnProjFiles Include=".\src\**\CacheCow.Common.csproj;.\src\**\CacheCow.Server.csproj;.\src\**\CacheCow.Client.csproj;.\src\**\CacheCow.Server.EntityTagStore.AzureCaching.csproj;.\src\**\CacheCow.Client.AzureCachingCacheStore.csproj;.\src\**\CacheCow.Server.EntityTagStore.MongoDb.csproj" />
<TestProjFiles Include=".\test\**\*.csproj" />
<ScriptsDir Include=".\scripts\" />
<NugetExeDir Include=".\" />
Expand All @@ -22,6 +22,7 @@
<Target Name="Default" DependsOnTargets="Restore; Compile; Package" />
<Target Name="DefaultCI" DependsOnTargets="Restore; Compile; Package; Publish" />
<Target Name="sn" DependsOnTargets="Restore;CompileSN;PackageSN" />
<Target Name="sn-publish" DependsOnTargets="Restore;CompileSN;PackageSN;Publish" />

<Target Name="Clean">
<RemoveDir Directories="@(BuildArtifactsDir)" />
Expand Down
1 change: 1 addition & 0 deletions publish-sn.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
powershell.exe -file build.ps1 -buildParams "/p:Configuration=NoTest;SignAssembly=true;AssemblyOriginatorKeyFile=..\..\CacheCow.key" -buildTarget "/t:sn-publish"
2 changes: 1 addition & 1 deletion scripts/publish.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ $packages = dir "$solutionDir\artifacts\packages\CacheCow.*.nupkg"

foreach($package in $packages) {
#$package is type of System.IO.FileInfo
& ".\Nuget.exe" push $package.FullName $nugetApiKey
& ".\..\Nuget.exe" push $package.FullName $nugetApiKey
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<DefineConstants>TRACE;DEBUG;BUILDTESTS</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DocumentationFile>bin\Debug\CacheCow.Client.AzureCachingCacheStore.XML</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>full</DebugType>
Expand All @@ -30,6 +31,7 @@
<DefineConstants>TRACE;BUILDTESTS</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DocumentationFile>bin\Release\CacheCow.Client.AzureCachingCacheStore.XML</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'NoTest|AnyCPU'">
<OutputPath>bin\NoTest\</OutputPath>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,8 @@
<dependency id="Microsoft.WindowsAzure.Caching" version="2.2.0" />
</dependencies>
</metadata>
<files>
<file src="..\..\artifacts\CacheCow.Client.AzureCachingCacheStore.dll" target="lib" />
<file src="..\..\artifacts\CacheCow.Client.AzureCachingCacheStore.pdb" target="lib" />
</files>
</package>
7 changes: 6 additions & 1 deletion src/CacheCow.Client/CacheCow.Client.sn.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<id>CacheCow.Client.sn</id>
<version>1.1.0</version>
<title>CacheCow.Client</title>
<title>CacheCow.Client (Strongly Named)</title>
<authors>Ali Kheyrollahi</authors>
<owners>Ali Kheyrollahi</owners>
<projectUrl>https://github.com/aliostad/CacheCow</projectUrl>
Expand All @@ -15,4 +15,9 @@
<dependency id="CacheCow.Common.sn" version="1.1.0" />
</dependencies>
</metadata>
<files>
<file src="..\..\artifacts\CacheCow.Client.dll" target="lib" />
<file src="..\..\artifacts\CacheCow.Client.pdb" target="lib" />
<file src="..\..\artifacts\CacheCow.Client.xml" target="lib" />
</files>
</package>
9 changes: 7 additions & 2 deletions src/CacheCow.Common/CacheCow.Common.sn.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<package >
<metadata>
<id>CacheCow.Common.sn</id>
<version>1.1.0</version>
<title>CacheCow Library</title>
<version>1.1.1</version>
<title>CacheCow Library (Strongly Named)</title>
<authors>Ali Kheyrollahi</authors>
<owners>Ali Kheyrollahi</owners>
<projectUrl>https://github.com/aliostad/CacheCow</projectUrl>
Expand All @@ -15,4 +15,9 @@
<dependency id="Microsoft.AspNet.WebApi.Client" version="4.0.30506" />
</dependencies>
</metadata>
<files>
<file src="..\..\artifacts\CacheCow.Common.dll" target="lib" />
<file src="..\..\artifacts\CacheCow.Common.pdb" target="lib" />
<file src="..\..\artifacts\CacheCow.Common.xml" target="lib" />
</files>
</package>
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<DefineConstants>TRACE;DEBUG;BUILDTESTS</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DocumentationFile>bin\Debug\CacheCow.Server.EntityTagStore.AzureCaching.XML</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>full</DebugType>
Expand All @@ -30,6 +31,7 @@
<DefineConstants>TRACE;BUILDTESTS</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DocumentationFile>bin\Release\CacheCow.Server.EntityTagStore.AzureCaching.XML</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'NoTest|AnyCPU'">
<OutputPath>bin\NoTest\</OutputPath>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<id>CacheCow.Server.EntityTagStore.AzureCaching.sn</id>
<version>1.1.0</version>
<title>CacheCow.Server.EntityTagStore.AzureCaching</title>
<title>CacheCow.Server.EntityTagStore.AzureCaching (Strongly Named)</title>
<authors>Ugo Lattanzi, Ali Kheyrollahi</authors>
<owners>Ali Kheyrollahi</owners>
<projectUrl>https://github.com/aliostad/CacheCow</projectUrl>
Expand All @@ -16,4 +16,8 @@
<dependency id="Microsoft.WindowsAzure.Caching" version="2.2.0" />
</dependencies>
</metadata>
<files>
<file src="..\..\artifacts\CacheCow.Server.EntityTagStore.AzureCaching.dll" target="lib" />
<file src="..\..\artifacts\CacheCow.Server.EntityTagStore.AzureCaching.pdb" target="lib" />
</files>
</package>
7 changes: 6 additions & 1 deletion src/CacheCow.Server/CacheCow.Server.sn.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<id>CacheCow.Server.sn</id>
<version>1.1.0</version>
<title>CacheCow.Server</title>
<title>CacheCow.Server (Strongly Named)</title>
<authors>Ali Kheyrollahi</authors>
<owners>Ali Kheyrollahi</owners>
<projectUrl>https://github.com/aliostad/CacheCow</projectUrl>
Expand All @@ -15,4 +15,9 @@
<dependency id="CacheCow.Common.sn" version="1.1.0" />
</dependencies>
</metadata>
<files>
<file src="..\..\artifacts\CacheCow.Server.dll" target="lib" />
<file src="..\..\artifacts\CacheCow.Server.pdb" target="lib" />
<file src="..\..\artifacts\CacheCow.Server.xml" target="lib" />
</files>
</package>

0 comments on commit a4e53dd

Please sign in to comment.