Skip to content

Commit

Permalink
Switch to using PackageLicenseExpression
Browse files Browse the repository at this point in the history
* use PackageIcon instead of deprecated URL
* remove unnecessary package references
* ensure deterministic build
  • Loading branch information
lahma committed Feb 20, 2024
1 parent 443a14c commit afa2fc9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
2 changes: 1 addition & 1 deletion build/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ foreach ($src in ls $PSScriptRoot\..\src/*) {
$version = $BuildVersionNumber
}

& dotnet build -c Release
& dotnet build -c Release /p:ContinuousIntegrationBuild=True
& dotnet pack -c Release --include-symbols -o ..\..\artifacts --no-build /p:PackageVersion=$version
if($LASTEXITCODE -ne 0) { exit 1 }

Expand Down
18 changes: 5 additions & 13 deletions src/Flurl.Http.Xml/Flurl.Http.Xml.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,25 @@
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<Authors>Luk Vermeulen</Authors>
<PackageLicenseUrl>https://github.com/lvermeulen/Flurl.Http.Xml/blob/master/LICENSE</PackageLicenseUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/lvermeulen/Flurl.Http.Xml</PackageProjectUrl>
<Copyright>Copyright 2016-2020 by Luk Vermeulen. All rights reserved.</Copyright>
<RepositoryUrl>https://github.com/lvermeulen/Flurl.Http.Xml</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>Flurl;Http;Xml</PackageTags>
<PackageIconUrl>http://i.imgur.com/llEKpRL.png?1</PackageIconUrl>
<PackageIcon>icon.png</PackageIcon>
<Description>XML extensions to Flurl.Http</Description>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Flurl.Http" Version="4.0.0" />
<PackageReference Include="System.Xml.XmlSerializer" Version="4.3.0" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net45'">
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System" />
<Reference Include="Microsoft.CSharp" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.4'">
<PackageReference Include="System.Xml.XPath.XDocument" Version="4.3.0" />
<ItemGroup>
<None Include="..\..\assets\noun_320630_cc.png" Pack="true" Visible="false" PackagePath="icon.png"/>
</ItemGroup>

</Project>

0 comments on commit afa2fc9

Please sign in to comment.