Skip to content

Commit

Permalink
Target .NET 4.5 (instead of 4.5.1)
Browse files Browse the repository at this point in the history
Create new NuGet package targeting both framework 4.0 and 4.5
  • Loading branch information
samcook committed Apr 21, 2015
1 parent 98bc13d commit af0cf23
Show file tree
Hide file tree
Showing 10 changed files with 48 additions and 32 deletions.
3 changes: 2 additions & 1 deletion RedLock.Logging.Log4Net/RedLock.Logging.Log4Net.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>RedLock.Logging.Log4Net</RootNamespace>
<AssemblyName>RedLock.Logging.Log4Net</AssemblyName>
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down
2 changes: 1 addition & 1 deletion RedLock.Logging.Log4Net/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="log4net" version="2.0.3" targetFramework="net451" />
<package id="log4net" version="2.0.3" targetFramework="net45" />
</packages>
39 changes: 21 additions & 18 deletions RedLock.Tests/App.config
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
</configSections>
<log4net>
<appender name="ConsoleAppender" type="log4net.Appender.ConsoleAppender">
<layout type="log4net.Layout.PatternLayout">
<param name="Header" value="[Header]\r\n" />
<param name="Footer" value="[Footer]\r\n" />
<param name="ConversionPattern" value="%d [%t] %-5p %c %m%n" />
</layout>
</appender>
<root>
<level value="DEBUG" />
<appender-ref ref="ConsoleAppender" />
</root>
</log4net>
</configuration>
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>
</configSections>
<log4net>
<appender name="ConsoleAppender" type="log4net.Appender.ConsoleAppender">
<layout type="log4net.Layout.PatternLayout">
<param name="Header" value="[Header]\r\n"/>
<param name="Footer" value="[Footer]\r\n"/>
<param name="ConversionPattern" value="%d [%t] %-5p %c %m%n"/>
</layout>
</appender>
<root>
<level value="DEBUG"/>
<appender-ref ref="ConsoleAppender"/>
</root>
</log4net>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/>
</startup>
</configuration>
3 changes: 2 additions & 1 deletion RedLock.Tests/RedLock.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>RedLock.Tests</RootNamespace>
<AssemblyName>RedLock.Tests</AssemblyName>
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down
6 changes: 3 additions & 3 deletions RedLock.Tests/packages.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="log4net" version="2.0.3" targetFramework="net451" />
<package id="NUnit" version="2.6.3" targetFramework="net451" />
<package id="StackExchange.Redis" version="1.0.328" targetFramework="net451" />
<package id="log4net" version="2.0.3" targetFramework="net45" />
<package id="NUnit" version="2.6.3" targetFramework="net45" />
<package id="StackExchange.Redis" version="1.0.328" targetFramework="net45" />
</packages>
1 change: 1 addition & 0 deletions RedLock.net.sln
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
LICENSE = LICENSE
README.md = README.md
redlock-icon.png = redlock-icon.png
RedLock.nuspec = RedLock.nuspec
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RedLock.Tests", "RedLock.Tests\RedLock.Tests.csproj", "{2DF8C6CF-482F-4C51-9BA0-1F7814CA91E0}"
Expand Down
14 changes: 12 additions & 2 deletions RedLock/RedLock.nuspec → RedLock.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package>
<metadata>
<id>RedLock.net</id>
<version>$version$</version>
<version>1.1.0</version>
<title>RedLock.net</title>
<authors>Sam Cook</authors>
<owners>Sam Cook</owners>
Expand All @@ -11,8 +11,18 @@
<iconUrl>https://raw.githubusercontent.com/samcook/RedLock.net/master/redlock-icon.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>An implementation of the Redlock distributed lock algorithm</description>
<releaseNotes>1.0.0 - Initial release</releaseNotes>
<releaseNotes>
1.1.0 - Target .NET 4.0 and 4.5
1.0.0 - Initial release
</releaseNotes>
<copyright>Copyright 2014 Sam Cook</copyright>
<tags>RedLock Redis Distributed Lock</tags>
<dependencies>
<dependency id="StackExchange.Redis" version="1.0.328"/>
</dependencies>
</metadata>
<files>
<file src="RedLock\bin\Release\RedLock.dll" target="lib\net45" />
<file src="RedLock_Net40\bin\Release\RedLock.dll" target="lib\net40" />
</files>
</package>
6 changes: 3 additions & 3 deletions RedLock/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("1.1.0")]
[assembly: AssemblyInformationalVersion("1.1.0")]
[assembly: AssemblyFileVersion("1.1.0.0")]

[assembly: InternalsVisibleTo("RedLock.Tests")]
4 changes: 2 additions & 2 deletions RedLock/RedLock.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>RedLock</RootNamespace>
<AssemblyName>RedLock</AssemblyName>
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down Expand Up @@ -52,7 +53,6 @@
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
<None Include="RedLock.nuspec" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Expand Down
2 changes: 1 addition & 1 deletion RedLock/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="StackExchange.Redis" version="1.0.328" targetFramework="net451" />
<package id="StackExchange.Redis" version="1.0.328" targetFramework="net45" />
</packages>

0 comments on commit af0cf23

Please sign in to comment.