Skip to content

Commit

Permalink
Update package information for build from fork
Browse files Browse the repository at this point in the history
Also enable including debug symbols with source linking in the package.
  • Loading branch information
matherm-aboehm committed Oct 19, 2023
1 parent ea8d5b9 commit a0e5991
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 8 deletions.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The goal of ExCSS is to make it easy to read and parse stylesheets into a friend
Version 4 is a move forward in framework support. The new version targets the latest version of .NET; Core 3.1 and 4.8. The API surface is the same as version 3, but will target the future-facing, unified .NET version including the upcoming .NET 5. Version 3 was rewritten from the ground up; version 4 makes full use of those enhancements plus new additions under development! This is the most advanced ExCSS parser to date. The parser has been rebuild to have better white spaces support as well as the ability to handle unknown rule sets in the ever-changing web and CSS landscape.

# NuGet
[![NuGet Status](https://img.shields.io/nuget/v/excss.svg)](https://www.nuget.org/packages/excss/)
[![NuGet Status](https://img.shields.io/nuget/v/Anateus.ExCSS.svg)](https://www.nuget.org/packages/Anateus.ExCSS/)

# Lexing and Parsing - How it all Works
ExCSS uses a Lexer and a Parser based on a CSS3-specific grammar. The Lexer and Parser read CSS text and parse each
Expand Down
16 changes: 16 additions & 0 deletions src/ExCSS/Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!-- https://github.com/clairernovotny/DeterministicBuilds -->
<!-- Workaround. Remove once we're on 3.1.300+
https://github.com/dotnet/sourcelink/issues/572 -->
<Project>
<PropertyGroup>
<TargetFrameworkMonikerAssemblyAttributesPath>$([System.IO.Path]::Combine('$(IntermediateOutputPath)','$(TargetFrameworkMoniker).AssemblyAttributes$(DefaultLanguageSourceExtension)'))</TargetFrameworkMonikerAssemblyAttributesPath>
</PropertyGroup>
<ItemGroup>
<EmbeddedFiles Include="$(GeneratedAssemblyInfoFile)"/>
</ItemGroup>

<!-- Workaround for https://github.com/dotnet/sdk/issues/11105 -->
<ItemGroup>
<SourceRoot Include="$(NuGetPackageRoot)" Condition="'$(NuGetPackageRoot)' != ''" />
</ItemGroup>
</Project>
37 changes: 30 additions & 7 deletions src/ExCSS/ExCSS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,41 @@
<LangVersion>9.0</LangVersion>
<TargetFrameworks>net7.0;net6.0;netcoreapp3.1;net48;netstandard2.1;netstandard2.0</TargetFrameworks>
<AssemblyName>ExCSS</AssemblyName>
<PackageId>ExCSS</PackageId>
<PackageId>Anateus.ExCSS</PackageId>
<Title>ExCSS .NET Stylesheet Parser</Title>
<Authors>Tyler Brinks</Authors>
<Authors>Anateus,Tyler Brinks</Authors>
<Description>
ExCSS is a CSS 2.1 and CSS 3 parser for .NET.
ExCSS makes it easy to read and parse stylesheets into a friendly object model with full LINQ support.
</Description>
<PackageProjectUrl>https://github.com/TylerBrinks/ExCSS</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageReadmeFile>readme.md</PackageReadmeFile>
<RespositoryType>git</RespositoryType>
<RepositoryUrl>https://github.com/TylerBrinks/ExCSS</RepositoryUrl>
<PackageProjectUrl>https://github.com/matherm-aboehm/ExCSS</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageReadmeFile>readme.md</PackageReadmeFile>
<RespositoryType>git</RespositoryType>
<RepositoryUrl>https://github.com/matherm-aboehm/ExCSS</RepositoryUrl>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>ExCSS.snk</AssemblyOriginatorKeyFile>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<!-- If snupkg can't be used, the PDBs can be included in the main nupkg
see: https://github.com/dotnet/sourcelink/blob/main/README.md
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
-->
</PropertyGroup>

<PropertyGroup Condition="'$(TargetFramework)' != ''">
<LangVersion>9.0</LangVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<ItemGroup>
<None Remove="ExCSS.snk" />
</ItemGroup>
Expand All @@ -31,5 +47,12 @@
<Folder Include="Properties\" />
<None Include="..\..\readme.md" Pack="true" PackagePath="\" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

</Project>

0 comments on commit a0e5991

Please sign in to comment.