From b0c2b6b74dc4bb88a4765757561954568c906d40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Fri, 9 Sep 2022 17:20:26 +0200 Subject: [PATCH 1/7] Probably Invoke-BeforePack.ps1 is not needed anymore? --- Invoke-BeforePack.ps1 | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 Invoke-BeforePack.ps1 diff --git a/Invoke-BeforePack.ps1 b/Invoke-BeforePack.ps1 deleted file mode 100644 index cc38cc43..00000000 --- a/Invoke-BeforePack.ps1 +++ /dev/null @@ -1,9 +0,0 @@ -# This script tries to work around 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 the corresponding 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). - -# Remove all .dll and other build output files from the directory to be packed. -Remove-Item Lombiq.Analyzers/bin -Recurse -Remove-Item Lombiq.Analyzers/obj/Release -Recurse From a110a63aabbd4fba26f026612f9b37c4f71f45d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Fri, 9 Sep 2022 17:22:44 +0200 Subject: [PATCH 2/7] Revert "Probably Invoke-BeforePack.ps1 is not needed anymore?" This reverts commit b0c2b6b74dc4bb88a4765757561954568c906d40. --- Invoke-BeforePack.ps1 | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Invoke-BeforePack.ps1 diff --git a/Invoke-BeforePack.ps1 b/Invoke-BeforePack.ps1 new file mode 100644 index 00000000..cc38cc43 --- /dev/null +++ b/Invoke-BeforePack.ps1 @@ -0,0 +1,9 @@ +# This script tries to work around 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 the corresponding 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). + +# Remove all .dll and other build output files from the directory to be packed. +Remove-Item Lombiq.Analyzers/bin -Recurse +Remove-Item Lombiq.Analyzers/obj/Release -Recurse From 327e1c6198af8432c59d982ced9deee112346c1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Fri, 9 Sep 2022 17:27:30 +0200 Subject: [PATCH 3/7] Removing files from nuspec instead --- Lombiq.Analyzers/Lombiq.Analyzers.nuspec.template | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lombiq.Analyzers/Lombiq.Analyzers.nuspec.template b/Lombiq.Analyzers/Lombiq.Analyzers.nuspec.template index 190367c3..7e57da3c 100644 --- a/Lombiq.Analyzers/Lombiq.Analyzers.nuspec.template +++ b/Lombiq.Analyzers/Lombiq.Analyzers.nuspec.template @@ -17,4 +17,7 @@ + + + From a9ee821dd60ed5962120b6c73013813e1cd7581b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Fri, 9 Sep 2022 17:29:58 +0200 Subject: [PATCH 4/7] Now Invoke-BeforePack.ps1 is not needed indeed --- Invoke-BeforePack.ps1 | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 Invoke-BeforePack.ps1 diff --git a/Invoke-BeforePack.ps1 b/Invoke-BeforePack.ps1 deleted file mode 100644 index cc38cc43..00000000 --- a/Invoke-BeforePack.ps1 +++ /dev/null @@ -1,9 +0,0 @@ -# This script tries to work around 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 the corresponding 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). - -# Remove all .dll and other build output files from the directory to be packed. -Remove-Item Lombiq.Analyzers/bin -Recurse -Remove-Item Lombiq.Analyzers/obj/Release -Recurse From adc02bbcfcbd2d29acc8aadc23938710fcdc76a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Fri, 9 Sep 2022 17:36:04 +0200 Subject: [PATCH 5/7] Updating package references to latest alpha --- .../IndirectPackageReference/IndirectPackageReference.csproj | 2 +- .../Lombiq.Analyzers.PackageReference.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/TestSolutions/Lombiq.Analyzers.PackageReference/IndirectPackageReference/IndirectPackageReference.csproj b/TestSolutions/Lombiq.Analyzers.PackageReference/IndirectPackageReference/IndirectPackageReference.csproj index 9d5d6104..4c624cbf 100644 --- a/TestSolutions/Lombiq.Analyzers.PackageReference/IndirectPackageReference/IndirectPackageReference.csproj +++ b/TestSolutions/Lombiq.Analyzers.PackageReference/IndirectPackageReference/IndirectPackageReference.csproj @@ -10,7 +10,7 @@ --> - + all diff --git a/TestSolutions/Lombiq.Analyzers.PackageReference/Lombiq.Analyzers.PackageReference.csproj b/TestSolutions/Lombiq.Analyzers.PackageReference/Lombiq.Analyzers.PackageReference.csproj index 726d2a1c..6244655b 100644 --- a/TestSolutions/Lombiq.Analyzers.PackageReference/Lombiq.Analyzers.PackageReference.csproj +++ b/TestSolutions/Lombiq.Analyzers.PackageReference/Lombiq.Analyzers.PackageReference.csproj @@ -5,7 +5,7 @@ - + all From 2b67bfa593a18e95e56b72a550c6be0b51cf46e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Fri, 9 Sep 2022 18:35:01 +0200 Subject: [PATCH 6/7] Re-adding comment on why we're excluding files from NuGet --- Lombiq.Analyzers/Lombiq.Analyzers.nuspec.template | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Lombiq.Analyzers/Lombiq.Analyzers.nuspec.template b/Lombiq.Analyzers/Lombiq.Analyzers.nuspec.template index 7e57da3c..4763c806 100644 --- a/Lombiq.Analyzers/Lombiq.Analyzers.nuspec.template +++ b/Lombiq.Analyzers/Lombiq.Analyzers.nuspec.template @@ -1,4 +1,4 @@ - + Lombiq.Analyzers @@ -18,6 +18,11 @@ + From 9e4dcefd220126c37efc7acb06a29238c7f4ec64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20El-Saig?= Date: Sat, 10 Sep 2022 19:22:20 +0200 Subject: [PATCH 7/7] Before publish. --- .../IndirectPackageReference/IndirectPackageReference.csproj | 2 +- .../Lombiq.Analyzers.PackageReference.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/TestSolutions/Lombiq.Analyzers.PackageReference/IndirectPackageReference/IndirectPackageReference.csproj b/TestSolutions/Lombiq.Analyzers.PackageReference/IndirectPackageReference/IndirectPackageReference.csproj index 4c624cbf..71fcf694 100644 --- a/TestSolutions/Lombiq.Analyzers.PackageReference/IndirectPackageReference/IndirectPackageReference.csproj +++ b/TestSolutions/Lombiq.Analyzers.PackageReference/IndirectPackageReference/IndirectPackageReference.csproj @@ -10,7 +10,7 @@ --> - + all diff --git a/TestSolutions/Lombiq.Analyzers.PackageReference/Lombiq.Analyzers.PackageReference.csproj b/TestSolutions/Lombiq.Analyzers.PackageReference/Lombiq.Analyzers.PackageReference.csproj index 6244655b..f7243d86 100644 --- a/TestSolutions/Lombiq.Analyzers.PackageReference/Lombiq.Analyzers.PackageReference.csproj +++ b/TestSolutions/Lombiq.Analyzers.PackageReference/Lombiq.Analyzers.PackageReference.csproj @@ -5,7 +5,7 @@ - + all