Skip to content

Commit

Permalink
🧹 WADL project now with analyzers
Browse files Browse the repository at this point in the history
  • Loading branch information
nop77svk committed Jun 27, 2024
1 parent edca3c5 commit 330a236
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 4 deletions.
2 changes: 1 addition & 1 deletion jwl.wadl/WadlParameter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class WadlParameter

[XmlAttribute("style")]
public string? Style { get; set; }

[XmlAttribute("type")]
public string? Type { get; set; }

Expand Down
38 changes: 35 additions & 3 deletions jwl.wadl/jwl.wadl.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,41 @@
<Project Sdk="Microsoft.NET.Sdk">

<Project Sdk="Microsoft.NET.Sdk" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<Nullable>enable</Nullable>
<OutputType>Library</OutputType>
<Nullable>enable</Nullable>
<Product>...</Product>
<Authors>Peter Hraško</Authors>
<Company>Open source community</Company>
<Copyright>Practically copyleft</Copyright>
<NoWarn>1701;1702;AD0001;NETSDK1182</NoWarn>
<RootNamespace>jwl.wadl</RootNamespace>
<AssemblyName>jwl.wadl</AssemblyName>
<PackageId>NoP77svk.jwl.wadl</PackageId>
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
</PropertyGroup>

</Project>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DebugType>none</DebugType>
<DebugSymbols>false</DebugSymbols>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="*">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="StyleCop.Analyzers" Version="*">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<Compile Include="..\GlobalSuppressions.cs" Link="GlobalSuppressions.cs" />
</ItemGroup>

<Target Name="PostClean" AfterTargets="Clean">
<RemoveDir Directories="$(BaseIntermediateOutputPath)" />
<!-- obj -->
<RemoveDir Directories="$(BaseOutputPath)" />
<!-- bin -->
</Target>
</Project>

0 comments on commit 330a236

Please sign in to comment.