Skip to content

Commit

Permalink
Merge pull request #78 from CityofSantaMonica/multiple-frameworks
Browse files Browse the repository at this point in the history
v0.9.0 release
  • Loading branch information
thekaveman authored Jul 24, 2019
2 parents 4a0dde0 + fff60ed commit e5b0a47
Show file tree
Hide file tree
Showing 46 changed files with 579 additions and 1,042 deletions.
10 changes: 5 additions & 5 deletions DEPLOYMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ are passing, and you're happy with the state of things...

1. Create a branch named `release`
1. Update [`ReleaseNotes.md`](ReleaseNotes.md), following the existing format
1. Bump the version number in [`SolutionInfo.cs`](SolutionInfo.cs) and the `.nuspec` and `appveyor.yml` files (if required)
1. Bump the version number in [`Directory.build.props`](Directory.build.props) and [`appveyor.yml`](appveyor.yml)
1. Push the branch to GitHub and create a pull request
1. Run `.\build CreatePackages` to create the NuGet packages (locally) for the new version
1. If the build succeeds, accept the pull request
1. Create and push a tag from the new HEAD `git tag v#.#.#` and `git push --tags`
1. Create the NuGet packages (in the local solution root) for the new version: `dotnet pack --output ..\`
1. Test the NuGet packages! [How to install NuGet package locally](http://stackoverflow.com/questions/10240029/how-to-install-a-nuget-package-nupkg-file-locally)
1. If satisfied with the release, push the new packages up to NuGet
1. Accept the pull request
1. Create a tag `git tag v#.#.#`. For example, to create a tag for 1.0.0 `git tag v1.0.0`
1. [Create a new release](https://help.github.com/articles/creating-releases) using the tag
you just created and pasting in the release notes you just wrote up. Attach a copy of the latest `.nupkg` files generated above.
1. Push the new packages up to NuGet `dotnet nuget push`
11 changes: 11 additions & 0 deletions Directory.build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<Project>
<PropertyGroup>
<Company>City of Santa Monica, CA</Company>
<Authors>City of Santa Monica, CA</Authors>
<Copyright>Copyright 2019 City of Santa Monica, CA</Copyright>
<Product>SODA</Product>
<RepositoryUrl>https://github.com/CityofSantaMonica/SODA.NET</RepositoryUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Version>0.9.0</Version>
</PropertyGroup>
</Project>
23 changes: 23 additions & 0 deletions Net45.SODA.Tests/Net45.SODA.Tests.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net45</TargetFrameworks>

<IsPackable>false</IsPackable>

<AssemblyName>Net45.SODA.Tests</AssemblyName>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="nunit" Version="3.10.1" />
<PackageReference Include="NUnit3TestAdapter" Version="3.10.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.8.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\SODA\SODA.csproj" />
</ItemGroup>

<Import Project="..\SODA.Tests\SODA.Tests.projitems" Label="Shared" />

</Project>
24 changes: 24 additions & 0 deletions Net45.Utilities.Tests/Net45.Utilities.Tests.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net45</TargetFrameworks>

<IsPackable>false</IsPackable>

<AssemblyName>Net45.SODA.Utilities.Tests</AssemblyName>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="nunit" Version="3.10.1" />
<PackageReference Include="NUnit3TestAdapter" Version="3.10.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.8.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\SODA\SODA.csproj" />
<ProjectReference Include="..\Utilities\Utilities.csproj" />
</ItemGroup>

<Import Project="..\Utilities.Tests\Utilities.Tests.projitems" Label="Shared" />

</Project>
23 changes: 23 additions & 0 deletions NetCore22.SODA.Tests/NetCore22.SODA.Tests.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>

<IsPackable>false</IsPackable>

<AssemblyName>NetCore22.SODA.Tests</AssemblyName>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="nunit" Version="3.10.1" />
<PackageReference Include="NUnit3TestAdapter" Version="3.10.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.8.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\SODA\SODA.csproj" />
</ItemGroup>

<Import Project="..\SODA.Tests\SODA.Tests.projitems" Label="Shared" />

</Project>
25 changes: 25 additions & 0 deletions NetCore22.Utilities.Tests/NetCore22.Utilities.Tests.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>

<IsPackable>false</IsPackable>

<AssemblyName>NetCore22.SODA.Utilities.Tests</AssemblyName>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="nunit" Version="3.10.1" />
<PackageReference Include="NUnit3TestAdapter" Version="3.10.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.8.0" />
<PackageReference Include="System.Text.Encoding.CodePages" Version="4.5.1" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\SODA\SODA.csproj" />
<ProjectReference Include="..\Utilities\Utilities.csproj" />
</ItemGroup>

<Import Project="..\Utilities.Tests\Utilities.Tests.projitems" Label="Shared" />

</Project>
6 changes: 6 additions & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
### New in 0.9.0 (Released 2019/07/24)

New features

- Support for .NET Core 2.2

### New in 0.8.0 (Released 2017/12/06)

Bug fixes
Expand Down
3 changes: 1 addition & 2 deletions SODA.Tests/HumanAddressTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,10 @@ public void New_Deserializes_Valid_HumanAddress_Json()

[TestCase("not json")]
[TestCase(@"{""not"":""a"",""human"":""address""}")]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
[Category("HumanAddress")]
public void New_Throws_ArgumentOutOfRangeException_For_Invalid_HumanAddress_Json(string input)
{
new HumanAddress(input);
Assert.That(() => new HumanAddress(input), Throws.TypeOf<ArgumentOutOfRangeException>());
}

[Test]
Expand Down
3 changes: 1 addition & 2 deletions SODA.Tests/PhoneColumnTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,10 @@ public void New_Deserializes_PhoneColumn_For_No_Type_Json()

[TestCase("not json")]
[TestCase(@"{""not"":""a"",""valid"":""phone""}")]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
[Category("PhoneColumn")]
public void New_Throws_ArgumentOutOfRangeException_For_Invalid_PhoneColumn_Json(string input)
{
new PhoneColumn(input);
Assert.That(() => new PhoneColumn(input), Throws.TypeOf<ArgumentOutOfRangeException>());
}
}
}
36 changes: 0 additions & 36 deletions SODA.Tests/Properties/AssemblyInfo.cs

This file was deleted.

3 changes: 1 addition & 2 deletions SODA.Tests/ResourceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,10 @@ public void New_Gets_Metadata_Identifier()

[TestCase(StringMocks.EmptyInput)]
[TestCase(StringMocks.NullInput)]
[ExpectedException(typeof(ArgumentException))]
[Category("Resource")]
public void GetRow_With_Invalid_RowId_Throws_ArugmentException(string input)
{
new Resource<object>(mockMetadata).GetRow(input);
Assert.That(() => new Resource<object>(mockMetadata).GetRow(input), Throws.TypeOf<ArgumentException>());
}
}
}
122 changes: 0 additions & 122 deletions SODA.Tests/SODA.Tests.csproj

This file was deleted.

28 changes: 28 additions & 0 deletions SODA.Tests/SODA.Tests.projitems
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
<HasSharedItems>true</HasSharedItems>
<SharedGUID>1112171d-6a3f-49f6-818a-fb44195ac837</SharedGUID>
</PropertyGroup>
<PropertyGroup Label="Configuration">
<Import_RootNamespace>SODA.Tests</Import_RootNamespace>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildThisFileDirectory)DateTimeConverterTests.cs" />
<Compile Include="$(MSBuildThisFileDirectory)FourByFourTests.cs" />
<Compile Include="$(MSBuildThisFileDirectory)HumanAddressTests.cs" />
<Compile Include="$(MSBuildThisFileDirectory)JsonSerializationExtensionTests.cs" />
<Compile Include="$(MSBuildThisFileDirectory)LocationColumnTests.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Mocks\StringMocks.cs" />
<Compile Include="$(MSBuildThisFileDirectory)PhoneColumnTest.cs" />
<Compile Include="$(MSBuildThisFileDirectory)ResourceMetadataTests.cs" />
<Compile Include="$(MSBuildThisFileDirectory)ResourceTests.cs" />
<Compile Include="$(MSBuildThisFileDirectory)SodaClientTests.cs" />
<Compile Include="$(MSBuildThisFileDirectory)SodaRequestTests.cs" />
<Compile Include="$(MSBuildThisFileDirectory)SodaUriTests.cs" />
<Compile Include="$(MSBuildThisFileDirectory)SoqlQueryTests.cs" />
<Compile Include="$(MSBuildThisFileDirectory)WebExceptionExtensionTests.cs" />
<Compile Include="$(MSBuildThisFileDirectory)WebsiteUrlColumnTests.cs" />
</ItemGroup>
</Project>
13 changes: 13 additions & 0 deletions SODA.Tests/SODA.Tests.shproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Label="Globals">
<ProjectGuid>1112171d-6a3f-49f6-818a-fb44195ac837</ProjectGuid>
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.Default.props" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.props" />
<PropertyGroup />
<Import Project="SODA.Tests.projitems" Label="Shared" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.CSharp.targets" />
</Project>
Loading

0 comments on commit e5b0a47

Please sign in to comment.