Skip to content

Commit

Permalink
.nuspec declares target frameworks
Browse files Browse the repository at this point in the history
  • Loading branch information
jehhynes committed Jun 8, 2021
1 parent 5cb6634 commit bba34e5
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 29 deletions.
4 changes: 2 additions & 2 deletions Build/CommonAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("3.6.0")]
[assembly: AssemblyFileVersion("3.6.0")]
[assembly: AssemblyVersion("3.6.1")]
[assembly: AssemblyFileVersion("3.6.1")]
//[assembly: AssemblyInformationalVersion("2.5-filters")]
53 changes: 33 additions & 20 deletions Build/Griddly.Core.nuspec
Original file line number Diff line number Diff line change
@@ -1,24 +1,37 @@
<?xml version="1.0"?>
<!-- http://www.jeremyskinner.co.uk/2011/01/12/automating-nuget-package-creation-with-msbuild-and-powershell/ -->
<package>
<metadata>
<id>Griddly.Core</id>
<version></version>
<authors>Chris Hynes, Joel Potter</authors>
<projectUrl>https://github.com/programcsharp/griddly</projectUrl>
<iconUrl>https://raw.githubusercontent.com/programcsharp/griddly/master/Griddly/Content/griddly-32.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<license type="expression">MIT</license>
<description>Pagable sortable MVC enabled grid (core files only)</description>
<!--<summary></summary>-->
<language>en-US</language>
<dependencies>
<group>
<dependency id="CsvHelper" version="6.1.1" />
<dependency id="Dapper" version="1.50.2" />
<dependency id="EPPlus" version="4.5.3" />
<dependency id="Newtonsoft.Json" version="11.0.2" />
</group>
</dependencies>
</metadata>
<metadata>
<id>Griddly.Core</id>
<version></version>
<authors>Chris Hynes, Joel Potter</authors>
<projectUrl>https://github.com/programcsharp/griddly</projectUrl>
<iconUrl>https://raw.githubusercontent.com/programcsharp/griddly/master/Griddly/Content/griddly-32.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<license type="expression">MIT</license>
<description>Pagable sortable MVC enabled grid (core files only)</description>
<!--<summary></summary>-->
<language>en-US</language>

<dependencies>
<group targetFramework="net45">
<dependency id="CsvHelper" version="6.1.1" />
<dependency id="Dapper" version="1.50.2" />
<dependency id="EPPlus" version="4.5.3" />
<dependency id="Newtonsoft.Json" version="11.0.2" />
</group>
<group targetFramework="netcoreapp3.1">
<dependency id="CsvHelper" version="6.1.1" />
<dependency id="Dapper" version="1.50.2" />
<dependency id="EPPlus" version="4.5.3" />
<dependency id="Newtonsoft.Json" version="11.0.2" />
</group>
<group targetFramework="net5.0">
<dependency id="CsvHelper" version="6.1.1" />
<dependency id="Dapper" version="1.50.2" />
<dependency id="EPPlus" version="4.5.3" />
<dependency id="Newtonsoft.Json" version="11.0.2" />
</group>
</dependencies>
</metadata>
</package>
18 changes: 13 additions & 5 deletions Build/Griddly.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,21 @@
<description>Pagable, sortable, MVC enabled grid</description>
<language>en-US</language>
<dependencies>
<group>
<dependency id="Griddly.Core" version="" />
</group>
<group targetFramework="net45">
<dependency id="Griddly.Core" version="" />
</group>
<group targetFramework="netcoreapp3.1">
<dependency id="Griddly.Core" version="" />
</group>
<group targetFramework="net5.0">
<dependency id="Griddly.Core" version="" />
</group>
</dependencies>
<frameworkAssemblies>
<frameworkAssembly assemblyName="Griddly.NetCore.Razor" targetFramework=".NETCoreApp3.1" />
<frameworkAssembly assemblyName="Griddly.NetCore.Razor.Views" targetFramework=".NETCoreApp3.1" />
<frameworkAssembly assemblyName="Griddly.NetCore.Razor" targetFramework="netcoreapp3.1" />
<frameworkAssembly assemblyName="Griddly.NetCore.Razor.Views" targetFramework="netcoreapp3.1" />
<frameworkAssembly assemblyName="Griddly.NetCore.Razor" targetFramework="net5.0" />
<frameworkAssembly assemblyName="Griddly.NetCore.Razor.Views" targetFramework="net5.0" />
</frameworkAssemblies>
</metadata>
</package>
4 changes: 2 additions & 2 deletions Build/build.proj
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
<Copy SourceFiles="@(Content)" DestinationFolder="$(PackageDir)\Griddly\content\net45\%(RecursiveDir)" />
<Copy SourceFiles="@(Libs)" DestinationFolder="$(PackageDir)\Griddly.Core\lib\net45\%(RecursiveDir)" />
<Copy SourceFiles="@(ContentCoreApp)" DestinationFolder="$(PackageDir)\Griddly\staticwebassets\%(RecursiveDir)" />
<Copy SourceFiles="@(LibsCoreApp)" DestinationFolder="$(PackageDir)\Griddly.Core\lib\netcoreapp3.1\%(RecursiveDir)" />
<Copy SourceFiles="@(LibsCoreAppRazor)" DestinationFolder="$(PackageDir)\Griddly\lib\netcoreapp3.1\%(RecursiveDir)" />
<Copy SourceFiles="@(LibsCoreApp)" DestinationFolder="$(PackageDir)\Griddly.Core\lib\netcoreapp\%(RecursiveDir)" />
<Copy SourceFiles="@(LibsCoreAppRazor)" DestinationFolder="$(PackageDir)\Griddly\lib\netcoreapp\%(RecursiveDir)" />
<Copy SourceFiles="@(BuildCoreApp)" DestinationFolder="$(PackageDir)\Griddly\%(RecursiveDir)" />

<!-- Get the version number of the main assembly to insert into the nuspec files -->
Expand Down

0 comments on commit bba34e5

Please sign in to comment.