1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
+ <PropertyGroup >
3
+ <TargetFramework >netstandard2.0</TargetFramework >
4
+ <IsPackable >true</IsPackable >
5
+ <IncludeBuildOutput >false</IncludeBuildOutput >
6
+ <SuppressDependenciesWhenPacking >true</SuppressDependenciesWhenPacking >
7
+ <GeneratePackageOnBuild >true</GeneratePackageOnBuild >
8
+ </PropertyGroup >
2
9
3
- <PropertyGroup >
4
- <TargetFramework >netstandard2.0</TargetFramework >
5
- <IncludeBuildOutput >false</IncludeBuildOutput >
6
- <SuppressDependenciesWhenPacking >true</SuppressDependenciesWhenPacking >
7
- <GeneratePackageOnBuild >true</GeneratePackageOnBuild >
8
- </PropertyGroup >
10
+ <PropertyGroup >
11
+ <PackageId >NetFabric.Hyperlinq.Analyzer</PackageId >
12
+ <PackageVersion >2.3.1</PackageVersion >
13
+ <Authors >Antao Almada</Authors >
14
+ <PackageIcon >Icon.png</PackageIcon >
15
+ <PackageLicenseFile >LICENSE</PackageLicenseFile >
16
+ <RepositoryUrl >https://github.com/NetFabric/NetFabric.Hyperlinq.Analyzer</RepositoryUrl >
17
+ <PackageRequireLicenseAcceptance >false</PackageRequireLicenseAcceptance >
18
+ <Description >A Roslyn analyzer with rules related to generation and consumption of enumerables and async enumerables in C#.</Description >
19
+ <PackageReleaseNotes ></PackageReleaseNotes >
20
+ <Copyright >Copyright 2019-2023 Antao Almada</Copyright >
21
+ <PackageTags >hyperlinq, analyzers, enumerable, async, linq, performance</PackageTags >
22
+ <DevelopmentDependency >true</DevelopmentDependency >
23
+ <NoPackageAnalysis >true</NoPackageAnalysis >
24
+ <TargetsForTfmSpecificContentInPackage >$(TargetsForTfmSpecificContentInPackage);_AddAnalyzersToOutput</TargetsForTfmSpecificContentInPackage >
25
+ </PropertyGroup >
9
26
10
- <PropertyGroup >
11
- <PackageId >NetFabric.Hyperlinq.Analyzer</PackageId >
12
- <PackageVersion >2.2.0</PackageVersion >
13
- <Authors >Antao Almada</Authors >
14
- <PackageIcon >Icon.png</PackageIcon >
15
- <PackageLicenseFile >LICENSE</PackageLicenseFile >
16
- <RepositoryUrl >https://github.com/NetFabric/NetFabric.Hyperlinq.Analyzer</RepositoryUrl >
17
- <PackageRequireLicenseAcceptance >false</PackageRequireLicenseAcceptance >
18
- <Description >A Roslyn analyzer with rules related to generation and consumption of enumerables and async enumerables in C#.</Description >
19
- <PackageReleaseNotes ></PackageReleaseNotes >
20
- <Copyright >Copyright 2019-2023 Antao Almada</Copyright >
21
- <PackageTags >hyperlinq, analyzers, enumerable, async, linq, performance</PackageTags >
22
- <DevelopmentDependency >true</DevelopmentDependency >
23
- <NoPackageAnalysis >true</NoPackageAnalysis >
24
- <CopyLocalLockFileAssemblies >true</CopyLocalLockFileAssemblies >
25
- <TargetsForTfmSpecificContentInPackage >$(TargetsForTfmSpecificContentInPackage);_AddAnalyzersToOutput</TargetsForTfmSpecificContentInPackage >
26
- </PropertyGroup >
27
+ <ItemGroup >
28
+ <None Include =" ..\Icon.png" Pack =" true" PackagePath =" " />
29
+ <None Include =" ..\LICENSE" Pack =" true" PackagePath =" " />
30
+ </ItemGroup >
27
31
28
- <ItemGroup >
29
- <None Include =" ..\Icon.png" Pack =" true" PackagePath =" " />
30
- <None Include =" ..\LICENSE" Pack =" true" PackagePath =" " />
31
- </ItemGroup >
32
-
33
- <ItemGroup >
34
- <ProjectReference Include =" ..\NetFabric.Hyperlinq.Analyzer.CodeFixes\NetFabric.Hyperlinq.Analyzer.CodeFixes.csproj" />
35
- <ProjectReference Include =" ..\NetFabric.Hyperlinq.Analyzer\NetFabric.Hyperlinq.Analyzer.csproj" />
36
- </ItemGroup >
32
+ <ItemGroup >
33
+ <ProjectReference Include =" ..\NetFabric.Hyperlinq.Analyzer.CodeFixes\NetFabric.Hyperlinq.Analyzer.CodeFixes.csproj" />
34
+ <ProjectReference Include =" ..\NetFabric.Hyperlinq.Analyzer\NetFabric.Hyperlinq.Analyzer.csproj" />
35
+ </ItemGroup >
36
+
37
+ <ItemGroup >
38
+ <None Update =" tools\*.ps1" CopyToOutputDirectory =" PreserveNewest" Pack =" true" PackagePath =" " />
39
+ </ItemGroup >
37
40
38
- <ItemGroup >
39
- < None Update = " tools\*.ps1 " CopyToOutputDirectory = " PreserveNewest " Pack =" true" PackagePath = " " />
40
- </ItemGroup >
41
+ <ItemGroup >
42
+ < PackageReference Include = " NetFabric.CodeAnalysis " Version = " 5.1.0 " PrivateAssets = " all " Pack =" true" GeneratePathProperty = " true " />
43
+ </ItemGroup >
41
44
42
- <Target Name =" _AddAnalyzersToOutput" >
43
- <ItemGroup >
44
- <TfmSpecificPackageFile Include =" $(OutputPath)\NetFabric.Hyperlinq.Analyzer.dll" PackagePath =" analyzers/dotnet/cs" />
45
- <TfmSpecificPackageFile Include =" $(OutputPath)\NetFabric.Hyperlinq.Analyzer.CodeFixes.dll" PackagePath =" analyzers/dotnet/cs" />
46
- </ItemGroup >
47
- </Target >
45
+ <ItemGroup >
46
+ <PackageReference Include =" Microsoft.CodeAnalysis.Analyzers" Version =" 3.3.4" PrivateAssets =" all" />
47
+ <PackageReference Include =" Microsoft.CodeAnalysis.CSharp" Version =" 3.3.1" PrivateAssets =" all" />
48
+ </ItemGroup >
48
49
49
- </Project >
50
+ <!-- For every PackageReference with Pack=true, we include the assemblies from it in the package -->
51
+ <Target Name =" AddPackDependencies" Inputs =" @(RuntimeCopyLocalItems)" Outputs =" %(RuntimeCopyLocalItems.NuGetPackageId)" DependsOnTargets =" ResolvePackageAssets" BeforeTargets =" GenerateNuspec" AfterTargets =" ResolvePackageAssets" >
52
+ <ItemGroup >
53
+ <NuGetPackageId Include =" @(RuntimeCopyLocalItems -> '%(NuGetPackageId)')" />
54
+ </ItemGroup >
55
+ <PropertyGroup >
56
+ <NuGetPackageId >@(NuGetPackageId -> Distinct())</NuGetPackageId >
57
+ </PropertyGroup >
58
+ <ItemGroup >
59
+ <PackageReferenceDependency Include =" @(PackageReference -> WithMetadataValue('Identity', '$(NuGetPackageId)'))" />
60
+ </ItemGroup >
61
+ <PropertyGroup >
62
+ <NuGetPackagePack >@(PackageReferenceDependency -> '%(Pack)')</NuGetPackagePack >
63
+ </PropertyGroup >
64
+ <ItemGroup Condition =" '$(NuGetPackagePack)' == 'true'" >
65
+ <_PackageFiles Include =" @(RuntimeCopyLocalItems)" PackagePath =" $(BuildOutputTargetFolder)/$(TargetFramework)/%(Filename)%(Extension)" />
66
+ <None Include =" @(RuntimeCopyLocalItems)" Pack =" true" PackagePath =" analyzers/dotnet/cs" />
67
+ <RuntimeCopyLocalItems Update =" @(RuntimeCopyLocalItems)" CopyLocal =" true" Private =" true" />
68
+ <ResolvedFileToPublish Include =" @(RuntimeCopyLocalItems)" CopyToPublishDirectory =" PreserveNewest" RelativePath =" %(Filename)%(Extension)" />
69
+ </ItemGroup >
70
+ </Target >
71
+
72
+ <Target Name =" _AddAnalyzersToOutput" >
73
+ <ItemGroup >
74
+ <TfmSpecificPackageFile Include =" $(OutputPath)\*.dll" PackagePath =" analyzers/dotnet/cs" />
75
+ </ItemGroup >
76
+ </Target >
77
+
78
+ </Project >
0 commit comments