Skip to content

Commit 9ea01b2

Browse files
author
Ruben Schmidmeister
committed
Prepare analyzer for publishing
1 parent 5046191 commit 9ea01b2

File tree

4 files changed

+27
-13
lines changed

4 files changed

+27
-13
lines changed
Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,29 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
32
<PropertyGroup>
43
<TargetFramework>netstandard2.0</TargetFramework>
5-
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
6-
<IsPackable>true</IsPackable>
74
<AssemblyName>Messerli.CodeStyle.Analyzers</AssemblyName>
85
<RootNamespace>Messerli.CodeStyle.Analyzers</RootNamespace>
96
<LangVersion>9.0</LangVersion>
10-
<PackageId>Messerli.CodeStyle.Analyzers</PackageId>
7+
</PropertyGroup>
8+
<PropertyGroup>
9+
<Version>1.0.0</Version>
1110
<PackageTags>analyzers</PackageTags>
12-
<PackageLicenseExpression>MIT OR Apache-2.0</PackageLicenseExpression>
13-
<Copyright>© Messerli Informatik AG. All rights reserved.</Copyright>
1411
<Description>Various analyzers bundled with opinionated configuration</Description>
1512
</PropertyGroup>
16-
13+
<PropertyGroup>
14+
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
15+
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
16+
<IncludeBuildOutput>false</IncludeBuildOutput>
17+
</PropertyGroup>
1718
<ItemGroup>
1819
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.2" />
19-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="3.9.0" />
20-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="3.9.0" />
20+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="3.8.0" />
2121
<PackageReference Include="Funcky" Version="2.3.0" />
2222
</ItemGroup>
23+
<ItemGroup>
24+
<None Include="$(OutputPath)\$(AssemblyName).dll;$(OutputPath)\Funcky.dll" Visible="false">
25+
<Pack>true</Pack>
26+
<PackagePath>analyzers/dotnet/cs</PackagePath>
27+
</None>
28+
</ItemGroup>
2329
</Project>

CodeStyle.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build Config", "Build Confi
99
ProjectSection(SolutionItems) = preProject
1010
global.json = global.json
1111
NuGet.config = NuGet.config
12+
Directory.Build.props = Directory.Build.props
1213
EndProjectSection
1314
EndProject
1415
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{AA84EF3C-D29F-4B6D-ADEE-E87610D0BC1C}"

CodeStyle/CodeStyle.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,8 @@
22
<Project Sdk="Microsoft.Build.NoTargets">
33
<PropertyGroup>
44
<Version>2.0.1</Version>
5-
<RepositoryUrl>https://github.com/messerli-informatik-ag/code-style</RepositoryUrl>
6-
<RepositoryType>git</RepositoryType>
75
<PackageId>Messerli.CodeStyle</PackageId>
86
<PackageTags>analyzers</PackageTags>
9-
<PackageLicenseExpression>MIT OR Apache-2.0</PackageLicenseExpression>
10-
<Copyright>© Messerli Informatik AG. All rights reserved.</Copyright>
117
<Description>Various analyzers bundled with opinionated configuration</Description>
128
<NoWarn>$(NoWarn);NU5105;NU5104;NU5128</NoWarn>
139
<!-- NU5105: The version property specified contains SemVer 2.0.0 components.

Directory.Build.props

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project>
3+
<PropertyGroup Label="Shared NuGet Metadata">
4+
<Authors>Messerli Informatik AG</Authors>
5+
<PackageLicenseExpression>MIT OR Apache-2.0</PackageLicenseExpression>
6+
<PackageProjectUrl>https://github.com/messerli-informatik-ag/code-style</PackageProjectUrl>
7+
<RepositoryType>git</RepositoryType>
8+
<RepositoryUrl>https://github.com/messerli-informatik-ag/code-style</RepositoryUrl>
9+
<Copyright>© Messerli Informatik AG. All rights reserved.</Copyright>
10+
</PropertyGroup>
11+
</Project>

0 commit comments

Comments
 (0)