Skip to content

Commit

Permalink
added nuget package project
Browse files Browse the repository at this point in the history
  • Loading branch information
tillwolff committed Mar 25, 2017
1 parent 5e53bfe commit 66303c7
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 2 deletions.
53 changes: 53 additions & 0 deletions EPPlus.Html.Package/EPPlus.Html.Package.nuproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Import Project="$(NuGetAuthoringPath)\NuGet.Packaging.Authoring.props" Condition="Exists('$(NuGetAuthoringPath)\NuGet.Packaging.Authoring.props')" />
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|AnyCPU">
<Configuration>Debug</Configuration>
<Platform>AnyCPU</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|AnyCPU">
<Configuration>Release</Configuration>
<Platform>AnyCPU</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Configuration">
<PackageId>EPPlus.Html.Package</PackageId>
<PackageVersion Condition="'$(PackageVersion)' == ''">1.0.0</PackageVersion>
<Title>EPPlus.Html.Package</Title>
<Authors>tw</Authors>
<Owners>tw</Owners>
<Summary>EPPlus.Html.Package</Summary>
<Description>EPPlus.Html.Package</Description>
<PackageReleaseNotes>
</PackageReleaseNotes>
<PackageProjectUrl>
</PackageProjectUrl>
<PackageLicenseUrl>
</PackageLicenseUrl>
<Copyright>Copyright © tw</Copyright>
<PackageTags>EPPlus.Html.Package</PackageTags>
</PropertyGroup>
<PropertyGroup Label="Globals">
<OutputPath>bin\$(Configuration)\</OutputPath>
<ProjectGuid>65524bc8-c7cb-402c-b200-bc8456aaab53</ProjectGuid>
</PropertyGroup>
<ItemGroup>
<None Include="Readme.txt">
<IncludeInPackage>true</IncludeInPackage>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<PackageReference Include="NuGet.Build.Packaging">
<Version>0.1.231</Version>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\EPPlus.Html\EPPlus.Html.csproj" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.Common.targets" />
<Import Project="$(NuGetAuthoringPath)\NuGet.Packaging.Authoring.targets" Condition="Exists('$(NuGetAuthoringPath)\NuGet.Packaging.Authoring.targets')" />
</Project>
9 changes: 9 additions & 0 deletions EPPlus.Html.Package/Readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# EPPlus.Html.Package Readme

Building this project will create a .nupkg containing just this Readme file.

It's always a good idea to provide a more useful package to your users,
alongside a nice descriptive Readme like this one that will open automatically
when they add your package to a project.

Happy nugetizing!
10 changes: 8 additions & 2 deletions EPPlus.Html.sln
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
# Visual Studio 15
VisualStudioVersion = 15.0.26228.4
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EPPlus.Html", "EPPlus.Html\EPPlus.Html.csproj", "{6A9878F8-48CA-410E-92E8-6941F580D39B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EPPlus.Html.Test", "EPPlus.Html.Test\EPPlus.Html.Test.csproj", "{DB4C442E-D5FF-4DD2-A809-496D16646D9D}"
EndProject
Project("{5DD5E4FA-CB73-4610-85AB-557B54E96AA9}") = "EPPlus.Html.Package", "EPPlus.Html.Package\EPPlus.Html.Package.nuproj", "{65524BC8-C7CB-402C-B200-BC8456AAAB53}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -21,6 +23,10 @@ Global
{DB4C442E-D5FF-4DD2-A809-496D16646D9D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DB4C442E-D5FF-4DD2-A809-496D16646D9D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DB4C442E-D5FF-4DD2-A809-496D16646D9D}.Release|Any CPU.Build.0 = Release|Any CPU
{65524BC8-C7CB-402C-B200-BC8456AAAB53}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{65524BC8-C7CB-402C-B200-BC8456AAAB53}.Debug|Any CPU.Build.0 = Debug|Any CPU
{65524BC8-C7CB-402C-B200-BC8456AAAB53}.Release|Any CPU.ActiveCfg = Release|Any CPU
{65524BC8-C7CB-402C-B200-BC8456AAAB53}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
11 changes: 11 additions & 0 deletions EPPlus.Html/EPPlus.Html.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\packages\NuGet.Build.Packaging.0.1.227\build\NuGet.Build.Packaging.props" Condition="Exists('..\packages\NuGet.Build.Packaging.0.1.227\build\NuGet.Build.Packaging.props')" />
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
Expand All @@ -12,6 +13,8 @@
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down Expand Up @@ -59,6 +62,14 @@
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\NuGet.Build.Packaging.0.1.227\build\NuGet.Build.Packaging.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\NuGet.Build.Packaging.0.1.227\build\NuGet.Build.Packaging.props'))" />
<Error Condition="!Exists('..\packages\NuGet.Build.Packaging.0.1.227\build\NuGet.Build.Packaging.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\NuGet.Build.Packaging.0.1.227\build\NuGet.Build.Packaging.targets'))" />
</Target>
<Import Project="..\packages\NuGet.Build.Packaging.0.1.227\build\NuGet.Build.Packaging.targets" Condition="Exists('..\packages\NuGet.Build.Packaging.0.1.227\build\NuGet.Build.Packaging.targets')" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
Expand Down
1 change: 1 addition & 0 deletions EPPlus.Html/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="EPPlus" version="4.1.0" targetFramework="net452" />
<package id="NuGet.Build.Packaging" version="0.1.227" targetFramework="net45" developmentDependency="true" />
</packages>

0 comments on commit 66303c7

Please sign in to comment.