File tree Expand file tree Collapse file tree 6 files changed +46
-18
lines changed Expand file tree Collapse file tree 6 files changed +46
-18
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<Project Sdk =" Microsoft.Build.NoTargets" >
3
3
<PropertyGroup >
4
- <Version >1.0 .0</Version >
4
+ <Version >1.1 .0</Version >
5
5
<PackageId >Polyadic.CodeStyle</PackageId >
6
6
<PackageTags >analyzers</PackageTags >
7
7
<Description >Various analyzers bundled with opinionated configuration</Description >
15
15
<TargetFramework >netstandard2.0</TargetFramework >
16
16
</PropertyGroup >
17
17
<ItemGroup >
18
- <PackageReference Include =" IDisposableAnalyzers" Version =" 4.0.2 " PrivateAssets =" none" />
18
+ <PackageReference Include =" IDisposableAnalyzers" Version =" 4.0.8 " PrivateAssets =" none" />
19
19
<PackageReference Include =" StyleCop.Analyzers" Version =" 1.2.0-beta.556" PrivateAssets =" none" />
20
20
</ItemGroup >
21
21
<ItemGroup >
22
- <None Include =" build\**\*" >
23
- <Pack >true</Pack >
24
- <PackagePath >%(Identity)</PackagePath >
25
- </None >
22
+ <None Include =" build\**\*" Pack =" true" PackagePath =" %(Identity)" />
23
+ <None Include =" buildMultiTargeting\**\*" Pack =" true" PackagePath =" %(Identity)" />
26
24
</ItemGroup >
27
25
</Project >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<Project xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
3
- <Target Name =" _PolyadicCodeStylePreventLocalPack" BeforeTargets =" Pack" Condition =" '$(ContinuousIntegrationBuild)' != 'true' And '$(IsPackable)' == 'true'" >
4
- <PropertyGroup >
5
- <_WorkflowUrl >$(PackageProjectUrl)/actions?query=branch%253Amain</_WorkflowUrl >
6
- <_LinkPrefix >%1b]8;;</_LinkPrefix >
7
- <_LinkInfix >%1b\</_LinkInfix >
8
- <_LinkSuffix >$(_LinkPrefix)$(_LinkInfix)</_LinkSuffix >
9
- </PropertyGroup >
10
- <Error Text =" Do not publish locally built packages to NuGet.org.
11
- Download the artifacts $(_LinkPrefix)$(_WorkflowUrl)$(_LinkInfix)published on GitHub Actions$(_LinkSuffix) instead.
12
- You can alternatively run `dotnet pack /p:ContinuousIntegrationBuild=true`." />
13
- </Target >
3
+ <!-- Only run when we're not a multi-targeting project as that is covered by buildMultiTargeting/Polyadic.CodeStyle.targets. -->
4
+ <Import Project =" $(MSBuildThisFileDirectory)PreventLocalPack.targets" Condition =" '$(TargetFrameworks)' == ''" />
14
5
</Project >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <Project xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
3
+ <Target Name =" _PolyadicCodeStylePreventLocalPack" BeforeTargets =" Pack"
4
+ Condition=" '$(ContinuousIntegrationBuild)' != 'true' And '$(IsPackable)' == 'true' And '$(ApiCompatGenerateSuppressionFile)' != 'true'" >
5
+ <PropertyGroup >
6
+ <_WorkflowUrl >$(PackageProjectUrl)/actions?query=branch%253Amain</_WorkflowUrl >
7
+ <_LinkPrefix >%1b]8;;</_LinkPrefix >
8
+ <_LinkInfix >%1b\</_LinkInfix >
9
+ <_LinkSuffix >$(_LinkPrefix)$(_LinkInfix)</_LinkSuffix >
10
+ </PropertyGroup >
11
+ <Error Text =" Do not publish locally built packages to NuGet.org.
12
+ Download the artifacts $(_LinkPrefix)$(_WorkflowUrl)$(_LinkInfix)published on GitHub Actions$(_LinkSuffix) instead.
13
+ You can alternatively run `dotnet pack /p:ContinuousIntegrationBuild=true`." />
14
+ </Target >
15
+ </Project >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <Project xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
3
+ <Import Project =" $(MSBuildThisFileDirectory)..\build\PreventLocalPack.targets" />
4
+ </Project >
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ Shared Code Style for all Polyadic/Funcky projects.
9
9
10
10
## Usage
11
11
12
- ```
12
+ ``` xml
13
13
<PackageReference Include =" Polyadic.CodeStyle" Version =" ..." />
14
14
```
15
15
Original file line number Diff line number Diff line change 1
1
# Changelog
2
+ ## 1.1.0
3
+ * Disallow packing without enabling ` ContinuousIntegrationBuild ` .
4
+ * Update ` IDisposableAnalyzers ` from 4.0.2 to 4.0.8. \
5
+ Excerpt from their [ Release Notes] ( https://github.com/DotNetAnalyzers/IDisposableAnalyzers/blob/master/RELEASE_NOTES.md ) :
6
+ > #### 4.0.7
7
+ > BUGFIX: Handle target typed new
8
+ >
9
+ > #### 4.0.6
10
+ > BUGFIX: Handle ref struct
11
+ > BUGFIX: Handle target typed new
12
+ >
13
+ > #### 4.0.5
14
+ > BUGFIX: Handle ValueTask
15
+ > BUGFIX: awaited in expression
16
+ >
17
+ > #### 4.0.3
18
+ > * BUGFIX: Handle recursive builder
19
+
20
+ ## 1.0.0
21
+ Initial release
You can’t perform that action at this time.
0 commit comments