Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop NuGetizer from packaging project #68

Merged
merged 2 commits into from
Apr 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -68,21 +68,17 @@
<VersionSuffix Condition="'$(GITHUB_EVENT_NAME)' == 'pull_request' AND '$(IsCommitOnReleaseBranch)' != 'true'">pr</VersionSuffix>
</PropertyGroup>

<!-- Shared attribution and configuration properties -->
<PropertyGroup>
<ContinuousIntegrationBuild Condition="'$(GITHUB_RUN_ID)' != ''">true</ContinuousIntegrationBuild>
<DevelopmentDependency>true</DevelopmentDependency>
<RepositoryUrl>https://github.com/Sergio0694/PolySharp/</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<ProjectUrl>https://github.com/Sergio0694/PolySharp/</ProjectUrl>
<Authors>Sergio Pedri</Authors>
<Owners>Sergio Pedri</Owners>
<Company>Sergio Pedri</Company>
<Copyright>Copyright (c) 2022 Sergio Pedri</Copyright>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageIcon>icon.png</PackageIcon>
<PackageTags>dotnet net netcore netstandard csharp library generator polyfill roslyn</PackageTags>
<Copyright>Copyright (c) 2023 Sergio Pedri</Copyright>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

Expand Down
7 changes: 0 additions & 7 deletions src/Directory.Build.props

This file was deleted.

32 changes: 25 additions & 7 deletions src/PolySharp.Package/PolySharp.Package.msbuildproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,47 @@

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>

<!--
This ignores the following warning:
"NU5128: some target frameworks declared in the dependencies group of the nuspec and the lib/ref folder do not
have exact matches in the other location. [...] Add lib or ref assemblies for the netstandard2.0 target framework."
This happens because the package only includes an analyzer, and no binaries to reference at runtime at all.
-->
<NoWarn>$(NoWarn);NU5128</NoWarn>
</PropertyGroup>

<!-- NuGet package info -->
<PropertyGroup>
<PackageId>PolySharp</PackageId>
<PackageReadmeFile>README.md</PackageReadmeFile>
<Title>PolySharp</Title>
<Description>PolySharp provides generated, source-only polyfills for C# language features, to easily use all runtime-agnostic features downlevel</Description>
<PackageId>PolySharp</PackageId>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageProjectUrl>https://github.com/Sergio0694/ComputeSharp/</PackageProjectUrl>
<PackageIcon>icon.png</PackageIcon>
<PackageTags>dotnet net netcore netstandard csharp library generator polyfill roslyn</PackageTags>
<DevelopmentDependency>true</DevelopmentDependency>
</PropertyGroup>

<ItemGroup>
<None Include="icon.png" PackagePath="icon.png" Pack="true" />
<None Include="README.md" PackagePath="README.md" Pack="true" />
<None Include="icon.png" PackagePath="\" Pack="true" />
<None Include="README.md" PackagePath="\" Pack="true" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\PolySharp.SourceGenerators\PolySharp.SourceGenerators.csproj" PackFolder="analyzers\dotnet\cs" />
<ProjectReference Include="..\PolySharp.SourceGenerators\PolySharp.SourceGenerators.csproj" ReferenceOutputAssembly="false" />
</ItemGroup>

<ItemGroup Label="Package">

<!-- Include the custom .targets file to check the source generator -->
<None Include="..\PolySharp.SourceGenerators\PolySharp.targets" PackagePath="buildTransitive\PolySharp.targets" Pack="true" />
<None Include="..\PolySharp.SourceGenerators\PolySharp.targets" PackagePath="build\PolySharp.targets" Pack="true" />
<None Include="..\PolySharp.SourceGenerators\PolySharp.targets" PackagePath="buildTransitive\" Pack="true" />
<None Include="..\PolySharp.SourceGenerators\PolySharp.targets" PackagePath="build\" Pack="true" />

<!-- Pack the source generator binary -->
<None Include="..\PolySharp.SourceGenerators\bin\$(Configuration)\netstandard2.0\PolySharp.SourceGenerators.dll" PackagePath="analyzers\dotnet\cs" Pack="true" />
</ItemGroup>

</Project>