Skip to content

Commit ac05acb

Browse files
committed
added nuget & src publishing
1 parent 5db5833 commit ac05acb

File tree

10 files changed

+1827
-5
lines changed

10 files changed

+1827
-5
lines changed

System.Web.Optimization.HashCache.sln

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ VisualStudioVersion = 12.0.30723.0
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "System.Web.Optimization.HashCache", "System.Web.Optimization.HashCache\System.Web.Optimization.HashCache.csproj", "{19025BA6-855A-4F94-A70C-D4FA6AE3C743}"
77
EndProject
8+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{A1211B32-FA02-49A6-B79E-9C448F47586A}"
9+
ProjectSection(SolutionItems) = preProject
10+
README.md = README.md
11+
EndProjectSection
12+
EndProject
813
Global
914
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1015
Debug|Any CPU = Debug|Any CPU

System.Web.Optimization.HashCache/Properties/AssemblyInfo.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
// set of attributes. Change these attribute values to modify the information
77
// associated with an assembly.
88
[assembly: AssemblyTitle("System.Web.Optimization.HashCache")]
9-
[assembly: AssemblyDescription("")]
9+
[assembly: AssemblyDescription("A helper bundle transform which prevents caching of bundle contents when optimizations are disabled - when debug is enabled or BundleTable.EnableOptimizations is false.")]
1010
[assembly: AssemblyConfiguration("")]
11-
[assembly: AssemblyCompany("")]
11+
[assembly: AssemblyCompany("Rafe Kemmis")]
1212
[assembly: AssemblyProduct("System.Web.Optimization.HashCache")]
13-
[assembly: AssemblyCopyright("Copyright © 2015")]
13+
[assembly: AssemblyCopyright("Copyright © Rafe Kemmis 2015")]
1414
[assembly: AssemblyTrademark("")]
1515
[assembly: AssemblyCulture("")]
1616

@@ -32,5 +32,4 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.0.0.0")]
36-
[assembly: AssemblyFileVersion("1.0.0.0")]
35+
[assembly: AssemblyVersion("1.0.*")]

System.Web.Optimization.HashCache/System.Web.Optimization.HashCache.csproj

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,23 @@
7373
<ItemGroup>
7474
<None Include="app.config" />
7575
<None Include="packages.config" />
76+
<None Include="System.Web.Optimization.HashCache.nuspec" />
77+
<None Include="_CreateNewNuGetPackage\Config.ps1" />
78+
<None Include="_CreateNewNuGetPackage\DoNotModify\CreateNuGetPackage.ps1" />
79+
<None Include="_CreateNewNuGetPackage\DoNotModify\New-NuGetPackage.ps1" />
80+
<None Include="_CreateNewNuGetPackage\DoNotModify\UploadNuGetPackage.ps1" />
81+
<None Include="_CreateNewNuGetPackage\RunMeToUploadNuGetPackage.cmd" />
82+
</ItemGroup>
83+
<ItemGroup>
84+
<None Include="_CreateNewNuGetPackage\DoNotModify\NuGet.exe" />
7685
</ItemGroup>
7786
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
87+
<PropertyGroup>
88+
<PostBuildEvent>REM Create a NuGet package for this project and place the .nupkg file in the project's output directory.
89+
REM If you see this in Visual Studio's Error List window, check the Output window's Build tab for the actual error.
90+
ECHO Creating NuGet package in Post-Build event...
91+
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "&amp; '$(ProjectDir)_CreateNewNuGetPackage\DoNotModify\CreateNuGetPackage.ps1' -ProjectFilePath '$(ProjectPath)' -OutputDirectory '$(TargetDir)' -BuildConfiguration '$(ConfigurationName)' -BuildPlatform '$(PlatformName)'"</PostBuildEvent>
92+
</PropertyGroup>
7893
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
7994
Other similar extension points exist, see Microsoft.Common.targets.
8095
<Target Name="BeforeBuild">
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0"?>
2+
<package >
3+
<metadata>
4+
<id>$id$</id>
5+
<version>$version$</version>
6+
<title>$title$</title>
7+
<authors>$author$</authors>
8+
<licenseUrl>https://github.com/kemmis/System.Web.Optimization.HashCache/blob/master/LICENSE</licenseUrl>
9+
<projectUrl>https://github.com/kemmis/System.Web.Optimization.HashCache</projectUrl>
10+
<iconUrl>http://i.imgur.com/jF6cO0M.png</iconUrl>
11+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
12+
<description>$description$</description>
13+
<releaseNotes></releaseNotes>
14+
<copyright>Copyright 2015</copyright>
15+
<tags>Bundle Cache Hash Optimization</tags>
16+
</metadata>
17+
</package>
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
#==========================================================
2+
# Edit the variable values below to configure how your .nupkg file is packed (i.e. created) and pushed (i.e. uploaded) to the NuGet gallery.
3+
#
4+
# If you have modified this script:
5+
# - if you uninstall the "Create New NuGet Package From Project After Each Build" package, this file may not be removed automatically; you may need to manually delete it.
6+
# - if you update the "Create New NuGet Package From Project After Each Build" package, this file may not be updated unless you specify it to be overwritten, either by
7+
# confirming the overwrite if prompted, or by providing the "-FileConflictAction Overwrite" parameter when installing from the command line.
8+
# If you overwrite this file then your custom changes will be lost, and you will need to manually reapply your changes.
9+
# If you are not using source control, I recommend backing up this file before updating the package so you can see what changes you had made to it.
10+
#==========================================================
11+
12+
#------------------------------------------------
13+
# Pack parameters used to create the .nupkg file.
14+
#------------------------------------------------
15+
16+
# Specify the Version Number to use for the NuGet package. If not specified, the version number of the assembly being packed will be used.
17+
# NuGet version number guidance: https://docs.nuget.org/docs/reference/versioning and the Semantic Versioning spec: http://semver.org/
18+
# e.g. "" (use assembly's version), "1.2.3" (stable version), "1.2.3-alpha" (prerelease version).
19+
$versionNumber = ""
20+
21+
# Specify any Release Notes for this package.
22+
# These will only be included in the package if you have a .nuspec file for the project in the same directory as the project file.
23+
$releaseNotes = ""
24+
25+
# Specify a specific Configuration and/or Platform to only create a NuGet package when building the project with this Configuration and/or Platform.
26+
# e.g. $configuration = "Release"
27+
# $platform = "Any CPU"
28+
$configuration = ""
29+
$platform = ""
30+
31+
# Specify any NuGet Pack Properties to pass to MsBuild.
32+
# e.g. $packProperties = "TargetFrameworkVersion=v3.5;Optimize=true"
33+
# Do not specify the "Configuration" or "Platform" here; use the $configuration and $platform variables above.
34+
# MsBuild Properties that can be specified: http://msdn.microsoft.com/en-us/library/vstudio/bb629394.aspx
35+
$packProperties = ""
36+
37+
# Specify any NuGet Pack options to pass to nuget.exe.
38+
# e.g. $packOptions = "-IncludeReferencedProjects"
39+
# Do not specify a "-Version" (use $versionNumber above), "-OutputDirectory", or "-NonInteractive", as these are already provided.
40+
# Do not specify any "-Properties" here; instead use the $packProperties variable above.
41+
# Do not specify "-Build", as this may result in an infinite build loop.
42+
# NuGet Pack options that can be specified: http://docs.nuget.org/docs/reference/command-line-reference#Pack_Command_Options
43+
$packOptions = "-IncludeReferencedProjects -Symbols"
44+
45+
46+
#------------------------------------------------
47+
# Push parameters used to upload the .nupkg file to the NuGet gallery.
48+
#------------------------------------------------
49+
50+
# The NuGet gallery to upload to. If not provided, the DefaultPushSource in your NuGet.config file is used (typically nuget.org).
51+
$sourceToUploadTo = ""
52+
53+
# The API Key to use to upload the package to the gallery. If not provided and a system-level one does not exist for the specified Source, you will be prompted for it.
54+
$apiKey = ""
55+
56+
# Specify any NuGet Push options to pass to nuget.exe.
57+
# e.g. $pushOptions = "-Timeout 120"
58+
# Do not specify the "-Source" or "-ApiKey" here; use the variables above.
59+
# NuGet Push options that can be specified: http://docs.nuget.org/docs/reference/command-line-reference#Push_Command_Options
60+
$pushOptions = ""
61+
62+
$newNuGetPackageParams = $BuildConfiguration.Equals("Release")

0 commit comments

Comments
 (0)