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

OSOE-186: Fix NuGet publish #73

Merged
merged 7 commits into from
Sep 10, 2022
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
9 changes: 0 additions & 9 deletions Invoke-BeforePack.ps1

This file was deleted.

10 changes: 9 additions & 1 deletion Lombiq.Analyzers/Lombiq.Analyzers.nuspec.template
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
<metadata>
<id>Lombiq.Analyzers</id>
Expand All @@ -17,4 +17,12 @@
<!-- Dependencies come here from CommonPackages.props. -->
</dependencies>
</metadata>
<files>
<!-- Workaround for NuGet's validation caused by the presence of these files:
- bin/Release/netstandard2.0/Lombiq.Analyzers.dll
- obj/Release/netstandard2.0/Lombiq.Analyzers.dll
The cause is probably that we don't actually do anything in this csproj, it only exists because we need an entry
point for `dotnet pack` (unlike the older `nuget pack` tooling, which worked with just the .nuspec alone).-->
<file src="**" exclude="**\bin\**;**\obj\Release\**" />
</files>
</package>
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
-->

<ItemGroup Condition="'$(ImportPackageAgain)' == 'true'">
<PackageReference Include="Lombiq.Analyzers" Version="2.1.1-osoe-110.22">
<PackageReference Include="Lombiq.Analyzers" Version="3.0.1">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Lombiq.Analyzers" Version="2.1.1-osoe-110.22">
<PackageReference Include="Lombiq.Analyzers" Version="3.0.1">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
Expand Down