Skip to content

Commit

Permalink
Version 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Taritsyn committed Oct 24, 2017
1 parent 9b3578c commit 2e820f6
Show file tree
Hide file tree
Showing 31 changed files with 75 additions and 119 deletions.
Binary file modified .nuget/NuGet.exe
Binary file not shown.
5 changes: 5 additions & 0 deletions CHANGELOG.md
@@ -1,6 +1,11 @@
Change log
==========

## v1.1.0 - October 24, 2017
* Added support of LibSass version 3.4.6
* LibSassHost.Native.debian-x64 package has been replaced by the LibSassHost.Native.linux-x64 package
* Added support of .NET Standard 2.0

## v1.0.4 - May 23, 2017
* Added support of LibSass version 3.4.5

Expand Down
14 changes: 6 additions & 8 deletions README.md
@@ -1,4 +1,4 @@
LibSass Host for .NET
LibSass Host for .NET [![NuGet](https://img.shields.io/nuget/v/LibSassHost.svg?style=flat)](https://www.nuget.org/packages/LibSassHost/)
=====================

<img src="https://raw.githubusercontent.com/Taritsyn/LibSassHost/master/images/LibSassHost_Logo.png" width="360" height="100" alt="LibSass Host logo" />
Expand All @@ -13,7 +13,7 @@ The following packages are available:

* [LibSassHost.Native.win-x86](http://nuget.org/packages/LibSassHost.Native.win-x86/)<sup>*</sup> contains the native assemblies for Windows (x86).
* [LibSassHost.Native.win-x64](http://nuget.org/packages/LibSassHost.Native.win-x64/)<sup>*</sup> contains the native assemblies for Windows (x64).
* [LibSassHost.Native.debian-x64](http://nuget.org/packages/LibSassHost.Native.debian-x64/) contains the native assemblies for Debian-based Linux (x64) (Debian, Ubuntu and Linux Mint). Only compatible with .NET Core.
* [LibSassHost.Native.linux-x64](http://nuget.org/packages/LibSassHost.Native.linux-x64/) contains the native assemblies for Linux (x64). Only compatible with .NET Core.
* [LibSassHost.Native.osx-x64](http://nuget.org/packages/LibSassHost.Native.osx-x64/) contains the native assemblies for OS X (x64). Only compatible with .NET Core.

<sup>* - Requires `msvcp140.dll` assembly from the [Visual C++ Redistributable for Visual Studio 2015](https://www.microsoft.com/en-us/download/details.aspx?id=53840).<sup>
Expand All @@ -22,18 +22,16 @@ If you need support for other operating systems, then you should read the [“Bu

### Mono support

LibSassHost.Native.debian-x64 and LibSassHost.Native.osx-x64 packages do not support installation under [Mono](http://www.mono-project.com/), but you can to install the native assemblies manually.
LibSassHost.Native.linux-x64 and LibSassHost.Native.osx-x64 packages do not support installation under [Mono](http://www.mono-project.com/), but you can to install the native assemblies manually.

#### Linux

First you need to get the `libsass.so` assembly file. If you are using the Debian-based Linux (x64), then you have 3 ways to do this:
First you need to get the `libsass.so` assembly file. You have 3 ways to do this:

1. [Download a assembly file](https://github.com/Taritsyn/LibSassHost/blob/master/lib/debian-x64/libsass.so) from the LibSass Host's project repository.
1. Extract a assembly file from the [LibSassHost.Native.debian-x64](http://nuget.org/packages/LibSassHost.Native.debian-x64/) package. The `libsass.so` file is located in the `runtimes/debian-x64/native/` directory of NuGet package.
1. [Download a assembly file](https://github.com/Taritsyn/LibSassHost/blob/master/lib/linux-x64/libsass.so) from the LibSass Host's project repository.
1. Extract a assembly file from the [LibSassHost.Native.linux-x64](http://nuget.org/packages/LibSassHost.Native.linux-x64/) package. The `libsass.so` file is located in the `runtimes/linux-x64/native/` directory of NuGet package.
1. [Build a assembly file](#building-libsass) from the source code.

If you use some other Linux distro, then only 3 way will suit for you.

Afterwards open a terminal window and change directory to the directory where the `libsass.so` file is located. Next, enter the following command:

```
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions nuget/LibSassHost/LibSassHost.nuspec
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata>
<id>LibSassHost</id>
<version>1.0.4</version>
<version>1.1.0</version>
<title>LibSass Host for .Net</title>
<authors>Andrey Taritsyn</authors>
<owners>Andrey Taritsyn</owners>
Expand All @@ -16,7 +16,7 @@ This package does not contain the native implementations of LibSass. Therefore,

* LibSassHost.Native.win-x86
* LibSassHost.Native.win-x64
* LibSassHost.Native.debian-x64
* LibSassHost.Native.linux-x64
* LibSassHost.Native.osx-x64</description>
<summary>.NET wrapper around the LibSass with the ability to support a virtual file system.</summary>
<releaseNotes>1. Added support of LibSass version 3.4.6;
Expand Down
4 changes: 2 additions & 2 deletions nuget/LibSassHost/readme.txt
@@ -1,7 +1,7 @@


--------------------------------------------------------------------------------
README file for LibSass Host for .Net v1.0.4
README file for LibSass Host for .Net v1.1.0

--------------------------------------------------------------------------------

Expand All @@ -20,7 +20,7 @@

* LibSassHost.Native.win-x86
* LibSassHost.Native.win-x64
* LibSassHost.Native.debian-x64
* LibSassHost.Native.linux-x64
* LibSassHost.Native.osx-x64

=============
Expand Down
Expand Up @@ -60,15 +60,5 @@
<Name>LibSassHost.Net40</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
9 changes: 1 addition & 8 deletions samples/LibSassHost.Sample.Logic/CompilationExampleBase.cs
@@ -1,8 +1,5 @@
using System;
using System.IO;
#if NETSTANDARD1_3 || NETSTANDARD2_0
using System.Text;
#endif
#if NETSTANDARD1_3 || NETSTANDARD2_0 || NET451

using Microsoft.Extensions.PlatformAbstractions;
Expand All @@ -22,10 +19,6 @@ public abstract class CompilationExampleBase
/// </summary>
static CompilationExampleBase()
{
#if NETSTANDARD1_3 || NETSTANDARD2_0
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);

#endif
#if NETSTANDARD1_3 || NETSTANDARD2_0 || NET451
var appEnv = PlatformServices.Default.Application;
string baseDirectoryPath = appEnv.ApplicationBasePath;
Expand Down Expand Up @@ -115,4 +108,4 @@ private static void WriteError(string title, SassСompilationException exception
Console.WriteLine();
}
}
}
}
@@ -1,13 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<VersionPrefix>1.0.4</VersionPrefix>
<VersionPrefix>1.1.0</VersionPrefix>
<TargetFrameworks>netstandard1.3;netstandard2.0;net451</TargetFrameworks>
<NetStandardImplicitPackageVersion Condition=" '$(TargetFramework)' == 'netstandard1.3' ">1.6.0</NetStandardImplicitPackageVersion>
<OutputType>Library</OutputType>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<GenerateDocumentationFile>true</GenerateDocumentationFile>

<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
Expand All @@ -24,12 +22,10 @@
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.3' ">
<PackageReference Include="System.Text.Encoding.CodePages" Version="4.0.1" />
<PackageReference Include="Microsoft.Extensions.PlatformAbstractions" Version="1.0.0" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
<PackageReference Include="System.Text.Encoding.CodePages" Version="4.4.0" />
<PackageReference Include="Microsoft.Extensions.PlatformAbstractions" Version="1.1.0" />
</ItemGroup>

Expand Down
8 changes: 4 additions & 4 deletions samples/LibSassHost.Sample.Logic/Properties/AssemblyInfo.cs
@@ -1,5 +1,5 @@
using System.Reflection;
#if !NETCOREAPP1_0 && !NETSTANDARD2_0
#if !NETSTANDARD1_3 && !NETSTANDARD2_0
using System.Runtime.InteropServices;
#endif

Expand All @@ -12,10 +12,10 @@
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

#if !NETCOREAPP1_0 && !NETSTANDARD2_0
#if !NETSTANDARD1_3 && !NETSTANDARD2_0
[assembly: ComVisible(false)]
[assembly: Guid("6d2b94ad-1351-4c5a-a43d-097b67b199c0")]
#endif

[assembly: AssemblyVersion("1.0.4.0")]
[assembly: AssemblyFileVersion("1.0.4.0")]
[assembly: AssemblyVersion("1.1.0.0")]
[assembly: AssemblyFileVersion("1.1.0.0")]
Expand Up @@ -12,21 +12,6 @@
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand Down Expand Up @@ -54,31 +39,6 @@
<ItemGroup>
<None Include="app.config" />
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include=".NETFramework,Version=v4.0,Profile=Client">
<Visible>False</Visible>
<ProductName>Microsoft .NET Framework 4 Client Profile %28x86 and x64%29</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Windows.Installer.4.5">
<Visible>False</Visible>
<ProductName>Windows Installer 4.5</ProductName>
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\LibSassHost.Sample.Logic.Net4\LibSassHost.Sample.Logic.Net40.csproj">
<Project>{7f182501-c43a-4db7-b718-a3801c190d4a}</Project>
Expand All @@ -87,13 +47,7 @@
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
Expand Up @@ -13,5 +13,5 @@
[assembly: ComVisible(false)]
[assembly: Guid("52b3e4f7-6d4e-4836-adb4-630f7e258f9f")]

[assembly: AssemblyVersion("1.0.4.0")]
[assembly: AssemblyFileVersion("1.0.4.0")]
[assembly: AssemblyVersion("1.1.0.0")]
[assembly: AssemblyFileVersion("1.1.0.0")]
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<VersionPrefix>1.0.4</VersionPrefix>
<VersionPrefix>1.1.0</VersionPrefix>
<TargetFramework>netcoreapp1.0</TargetFramework>
<RuntimeFrameworkVersion>1.0.7</RuntimeFrameworkVersion>
<OutputType>Exe</OutputType>
Expand All @@ -18,6 +18,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="System.Text.Encoding.CodePages" Version="4.0.1" />
<PackageReference Include="LibSassHost.Native.win-x64" Version="1.1.0" />
<PackageReference Include="LibSassHost.Native.win-x86" Version="1.1.0" />
<PackageReference Include="LibSassHost.Native.linux-x64" Version="1.1.0" />
Expand Down
13 changes: 12 additions & 1 deletion samples/LibSassHost.Sample.NetCore1.ConsoleApp/Program.cs
@@ -1,9 +1,20 @@
using LibSassHost.Sample.Logic;
using System.Text;

using LibSassHost.Sample.Logic;

namespace LibSassHost.Sample.NetCore1.ConsoleApp
{
class Program : CompilationExampleBase
{
/// <summary>
/// Static constructor
/// </summary>
static Program()
{
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
}


static void Main(string[] args)
{
CompileContent();
Expand Down
Expand Up @@ -9,5 +9,5 @@
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

[assembly: AssemblyVersion("1.0.4.0")]
[assembly: AssemblyFileVersion("1.0.4.0")]
[assembly: AssemblyVersion("1.1.0.0")]
[assembly: AssemblyFileVersion("1.1.0.0")]
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<VersionPrefix>1.0.4</VersionPrefix>
<VersionPrefix>1.1.0</VersionPrefix>
<TargetFramework>net451</TargetFramework>
<OutputType>Exe</OutputType>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
Expand Down
Expand Up @@ -13,5 +13,5 @@
[assembly: ComVisible(false)]
[assembly: Guid("c3af8d5f-0a63-4ef0-bf1d-e8f774a7803c")]

[assembly: AssemblyVersion("1.0.4.0")]
[assembly: AssemblyFileVersion("1.0.4.0")]
[assembly: AssemblyVersion("1.1.0.0")]
[assembly: AssemblyFileVersion("1.1.0.0")]
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<VersionPrefix>1.0.4</VersionPrefix>
<VersionPrefix>1.1.0</VersionPrefix>
<TargetFramework>netcoreapp2.0</TargetFramework>
<OutputType>Exe</OutputType>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
Expand All @@ -17,6 +17,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="System.Text.Encoding.CodePages" Version="4.4.0" />
<PackageReference Include="LibSassHost.Native.win-x64" Version="1.1.0" />
<PackageReference Include="LibSassHost.Native.win-x86" Version="1.1.0" />
<PackageReference Include="LibSassHost.Native.linux-x64" Version="1.1.0" />
Expand Down
13 changes: 12 additions & 1 deletion samples/LibSassHost.Sample.NetCore2.ConsoleApp/Program.cs
@@ -1,9 +1,20 @@
using LibSassHost.Sample.Logic;
using System.Text;

using LibSassHost.Sample.Logic;

namespace LibSassHost.Sample.NetCore2.ConsoleApp
{
class Program : CompilationExampleBase
{
/// <summary>
/// Static constructor
/// </summary>
static Program()
{
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
}


static void Main(string[] args)
{
CompileContent();
Expand Down
Expand Up @@ -9,5 +9,5 @@
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

[assembly: AssemblyVersion("1.0.4.0")]
[assembly: AssemblyFileVersion("1.0.4.0")]
[assembly: AssemblyVersion("1.1.0.0")]
[assembly: AssemblyFileVersion("1.1.0.0")]
4 changes: 2 additions & 2 deletions src/LibSassHost.Net4/LibSassHost.Net40.csproj
Expand Up @@ -34,7 +34,7 @@
<SignAssembly>true</SignAssembly>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>..\..\tools\Key.snk</AssemblyOriginatorKeyFile>
<AssemblyOriginatorKeyFile>..\..\build\Key.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
Expand All @@ -49,7 +49,7 @@
<Link>x64\libsass.dll</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="..\..\tools\Key.snk">
<None Include="..\..\build\Key.snk">
<Link>Key.snk</Link>
</None>
</ItemGroup>
Expand Down

0 comments on commit 2e820f6

Please sign in to comment.