Skip to content

Commit

Permalink
build: NuGet publication OSLC4Net.Client 0.3.0-alpha &co. (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
berezovskyi authored Apr 29, 2023
1 parent 07a12e2 commit bee5f0e
Show file tree
Hide file tree
Showing 12 changed files with 98 additions and 26 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- The StockQuoteSample was updated to ASP.NET MVC 5.
- Migrated from MSBuild-based NuGet package restore to NuGet 2.7+ Automatic Package Restore.
- Migrated from MSTestV1 (`Microsoft.VisualStudio.QualityTools.UnitTestFramework`) to MSTestV2 (`MSTest.Test*`).
- **`AssemblyVersion` was set to `0.3.0.0`** (from 1.0.0.0 in the v0.2.3). This could be a breaking change in some cases, but given that the project was used by a small number of people, the version being obviously wrong (given being present in the 0.2.3 release) and not having a Nuget release before, we decided to go ahead. Furthermore, switching from a direct assembly reference or a project reference to a Nuget package would require changes to the project references anyway.

### Deprecated

Expand Down
15 changes: 15 additions & 0 deletions OSLC4Net_SDK/JsonProvider/OSLC4Net.Core.JsonProvider.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@
<RootNamespace>OSLC4Net.Core.JsonProvider</RootNamespace>
<AssemblyName>OSLC4Net.Core.JsonProvider</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>

<Version>0.3.0-alpha</Version>
<VersionSuffix>alpha</VersionSuffix>
<PackageLicenseExpression>EPL-1.0</PackageLicenseExpression>
<Authors>Andrii Berezovskyi and OSLC4Net contributors</Authors>
<PackageReadmeFile>README.md</PackageReadmeFile>
<!-- TODO: remove PackageOutputPath after migration to .NET Core-->
<PackageOutputPath>MSBuild_Nuget_Pack/</PackageOutputPath>
<PackageProjectUrl>https://github.com/OSLC/oslc4net/</PackageProjectUrl>
<RepositoryUrl>https://github.com/OSLC/oslc4net/</RepositoryUrl>

<FileAlignment>512</FileAlignment>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
<TargetFrameworkProfile />
Expand All @@ -34,6 +45,10 @@
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="NuGet.Build.Tasks.Pack" Version="5.2.0"/>
<None Include="../../README.md" Pack="true" PackagePath=""/>
</ItemGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down
12 changes: 6 additions & 6 deletions OSLC4Net_SDK/JsonProvider/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("JsonProvider")]
[assembly: AssemblyTitle("OSLC4Net.Core.JsonProvider")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("IBM")]
[assembly: AssemblyProduct("JsonProvider")]
[assembly: AssemblyCopyright("Copyright © IBM 2013")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("OSLC4Net.Core.JsonProvider")]
[assembly: AssemblyCopyright("Copyright OSLC4Net contributors 2023, IBM 2013")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -32,5 +32,5 @@
// 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.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("0.3.0.0")]
[assembly: AssemblyFileVersion("0.3.0.0")]
15 changes: 15 additions & 0 deletions OSLC4Net_SDK/OSLC4Net.Client/OSLC4Net.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@
<RootNamespace>OSLC4Net.Client</RootNamespace>
<AssemblyName>OSLC4Net.Client</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>

<Version>0.3.0-alpha</Version>
<VersionSuffix>alpha</VersionSuffix>
<PackageLicenseExpression>EPL-1.0</PackageLicenseExpression>
<Authors>Andrii Berezovskyi and OSLC4Net contributors</Authors>
<PackageReadmeFile>README.md</PackageReadmeFile>
<!-- TODO: remove PackageOutputPath after migration to .NET Core-->
<PackageOutputPath>MSBuild_Nuget_Pack/</PackageOutputPath>
<PackageProjectUrl>https://github.com/OSLC/oslc4net/</PackageProjectUrl>
<RepositoryUrl>https://github.com/OSLC/oslc4net/</RepositoryUrl>

<FileAlignment>512</FileAlignment>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
<TargetFrameworkProfile />
Expand All @@ -35,6 +46,10 @@
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="NuGet.Build.Tasks.Pack" Version="5.2.0"/>
<None Include="../../README.md" Pack="true" PackagePath=""/>
</ItemGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Configuration" />
Expand Down
8 changes: 4 additions & 4 deletions OSLC4Net_SDK/OSLC4Net.Client/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
[assembly: AssemblyTitle("OSLC4Net.Client")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("IBM")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("OSLC4Net.Client")]
[assembly: AssemblyCopyright("Copyright © IBM 2012")]
[assembly: AssemblyCopyright("Copyright OSLC4Net contributors 2023, IBM 2012")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -32,5 +32,5 @@
// 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.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("0.3.0.0")]
[assembly: AssemblyFileVersion("0.3.0.0")]
15 changes: 15 additions & 0 deletions OSLC4Net_SDK/OSLC4Net.Core.Query/OSLC4Net.Core.Query.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@
<RootNamespace>OSLC4Net.Core.Query</RootNamespace>
<AssemblyName>OSLC4Net.Core.Query</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>

<Version>0.3.0-alpha</Version>
<VersionSuffix>alpha</VersionSuffix>
<PackageLicenseExpression>EPL-1.0</PackageLicenseExpression>
<Authors>Andrii Berezovskyi and OSLC4Net contributors</Authors>
<PackageReadmeFile>README.md</PackageReadmeFile>
<!-- TODO: remove PackageOutputPath after migration to .NET Core-->
<PackageOutputPath>MSBuild_Nuget_Pack/</PackageOutputPath>
<PackageProjectUrl>https://github.com/OSLC/oslc4net/</PackageProjectUrl>
<RepositoryUrl>https://github.com/OSLC/oslc4net/</RepositoryUrl>

<FileAlignment>512</FileAlignment>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
<TargetFrameworkProfile />
Expand All @@ -34,6 +45,10 @@
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="NuGet.Build.Tasks.Pack" Version="5.2.0"/>
<None Include="../../README.md" Pack="true" PackagePath=""/>
</ItemGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down
12 changes: 6 additions & 6 deletions OSLC4Net_SDK/OSLC4Net.Core.Query/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Query")]
[assembly: AssemblyTitle("OSLC4Net.Core.Query")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("IBM")]
[assembly: AssemblyProduct("Query")]
[assembly: AssemblyCopyright("Copyright © IBM 2013")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("OSLC4Net.Core.Query")]
[assembly: AssemblyCopyright("Copyright OSLC4Net contributors 2023, IBM 2013")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -36,5 +36,5 @@
// 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.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("0.3.0.0")]
[assembly: AssemblyFileVersion("0.3.0.0")]
13 changes: 13 additions & 0 deletions OSLC4Net_SDK/OSLC4Net.Core/OSLC4Net.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@
<RootNamespace>OSLC4Net.Core</RootNamespace>
<AssemblyName>OSLC4Net.Core</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<Version>0.3.0-alpha</Version>
<VersionSuffix>alpha</VersionSuffix>
<PackageLicenseExpression>EPL-1.0</PackageLicenseExpression>
<Authors>Andrii Berezovskyi and OSLC4Net contributors</Authors>
<PackageReadmeFile>README.md</PackageReadmeFile>
<!-- TODO: remove PackageOutputPath after migration to .NET Core-->
<PackageOutputPath>MSBuild_Nuget_Pack/</PackageOutputPath>
<PackageProjectUrl>https://github.com/OSLC/oslc4net/</PackageProjectUrl>
<RepositoryUrl>https://github.com/OSLC/oslc4net/</RepositoryUrl>
<FileAlignment>512</FileAlignment>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
<TargetFrameworkProfile />
Expand All @@ -35,6 +44,10 @@
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="NuGet.Build.Tasks.Pack" Version="5.2.0"/>
<None Include="../../README.md" Pack="true" PackagePath=""/>
</ItemGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down
8 changes: 4 additions & 4 deletions OSLC4Net_SDK/OSLC4Net.Core/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
[assembly: AssemblyTitle("OSLC4Net.Core")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("IBM")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("OSLC4Net.Core")]
[assembly: AssemblyCopyright("Copyright © IBM 2012")]
[assembly: AssemblyCopyright("Copyright OSLC4Net contributors 2023, IBM 2012")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -35,7 +35,7 @@
// 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.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("0.3.0.0")]
[assembly: AssemblyFileVersion("0.3.0.0")]

[assembly: OslcSchema(typeof(XmlNamespace))]
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@
<RootNamespace>OSLC4Net.Core.DotNetRdfProvider</RootNamespace>
<AssemblyName>OSLC4Net.Core.DotNetRdfProvider</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<Version>0.3.0-alpha</Version>
<VersionSuffix>alpha</VersionSuffix>
<PackageLicenseExpression>EPL-1.0</PackageLicenseExpression>
<Authors>Andrii Berezovskyi and OSLC4Net contributors</Authors>
<PackageReadmeFile>README.md</PackageReadmeFile>
<!-- TODO: remove PackageOutputPath after migration to .NET Core-->
<PackageOutputPath>MSBuild_Nuget_Pack/</PackageOutputPath>
<PackageProjectUrl>https://github.com/OSLC/oslc4net/</PackageProjectUrl>
<RepositoryUrl>https://github.com/OSLC/oslc4net/</RepositoryUrl>
<FileAlignment>512</FileAlignment>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
<TargetFrameworkProfile />
Expand All @@ -35,6 +44,10 @@
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="NuGet.Build.Tasks.Pack" Version="5.2.0"/>
<None Include="../../README.md" Pack="true" PackagePath=""/>
</ItemGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("DotNetRdfProvider")]
[assembly: AssemblyTitle("OSLC4Net.Core.DotNetRdfProvider")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("IBM")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("OSLC4Net.Core.DotNetRdfProvider")]
[assembly: AssemblyCopyright("Copyright © IBM 2012")]
[assembly: AssemblyCopyright("Copyright OSLC4Net contributors 2023, IBM 2012")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -32,6 +32,6 @@
// 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.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("0.3.0.0")]
[assembly: AssemblyFileVersion("0.3.0.0")]

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ You'll see a web page created - that is currently just a skeleton provided by AS

A request to the first URL using Fiddler should have the following response:

![](doc/stockquote.png)
![](https://raw.githubusercontent.com/OSLC/oslc4net/master/doc/stockquote.png)

## More information on OSLC

Expand Down

0 comments on commit bee5f0e

Please sign in to comment.