Skip to content

Commit

Permalink
Updated MSBuild configuration and assembly dependancies.
Browse files Browse the repository at this point in the history
  • Loading branch information
Latency committed Sep 26, 2017
1 parent b42ac5c commit db63f43
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
Binary file removed ReadLine.1.2.1.nupkg
Binary file not shown.
Binary file added artifacts/ReadLine.1.2.1.nupkg
Binary file not shown.
28 changes: 23 additions & 5 deletions src/ReadLine/ReadLine.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
<PropertyGroup>
<Description>A GNU-Readline like library for .NET/.NET Core</Description>
<AssemblyTitle>ReadLine</AssemblyTitle>
<VersionPrefix>1.2.0</VersionPrefix>
<Authors>Toni Solarin-Sodara;Latency McLaughlin</Authors>
<TargetFrameworks>netcoreapp2.0;net47</TargetFrameworks>
<Owners>Toni Solarin-Sodara</Owners>
<TargetFrameworks>net47;netcoreapp2.0</TargetFrameworks>
<DebugType>portable</DebugType>
<Version>1.2.1</Version>
<AssemblyName>ReadLine</AssemblyName>
<PackageId>ReadLine</PackageId>
<PackageTags>readline;gnu;console;shell;cui</PackageTags>
<PackageProjectUrl>https://github.com/tsolarin/readline</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/tsolarin/readline/blob/master/LICENSE</PackageLicenseUrl>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/tsolarin/readline</RepositoryUrl>
<NetStandardImplicitPackageVersion Condition=" '$(TargetFramework)' == 'netstandard1.3' ">1.6.1</NetStandardImplicitPackageVersion>
<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
Expand All @@ -23,13 +23,20 @@
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>snKey.snk</AssemblyOriginatorKeyFile>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageReleaseNotes>Updated to support .NET Core 2.0.
Updated to support .NET Framework v4.7.
Consolidated redundant code and expressions.
Repacked for multi-frameworks.
Updated versioning.
Updated test projects.</PackageReleaseNotes>
<Company />
</PropertyGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.3' ">
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.3' Or '$(TargetFramework)' == 'netcoreapp2.0' ">
<PackageReference Include="System.Console" Version="4.3.0" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net45' ">
<ItemGroup Condition=" '$(TargetFramework)' == 'net45' Or '$(TargetFramework)' == 'net47' ">
<Reference Include="System" />
<Reference Include="Microsoft.CSharp" />
</ItemGroup>
Expand All @@ -38,4 +45,15 @@
<Folder Include="Properties\" />
</ItemGroup>

<!-- @@ -->
<Target Name="CreateArtifactsDirectoryIfNotExists" Condition="!Exists('..\..\artifacts')">
<Message Text="Creating artifacts directory -&gt; '..\..\artifacts\'" Importance="high" />
<MakeDir Directories="..\..\artifacts" />
</Target>

<Target Name="PostPublish" AfterTargets="Pack" Condition=" '$(GeneratePackageOnBuild)' == 'true' ">
<CallTarget Targets="CreateArtifactsDirectoryIfNotExists" />
<Message Text="Copying artifact `.\bin\$(Configuration)\$(PackageId).$(PackageVersion).nupkg' to directory `$(SolutionDir)artifacts'" Importance="high" />
<Copy SourceFiles=".\bin\$(Configuration)\$(PackageId).$(PackageVersion).nupkg" DestinationFolder="$(SolutionDir)artifacts" />
</Target>
</Project>

0 comments on commit db63f43

Please sign in to comment.