Skip to content

Commit

Permalink
Fixing the VSIX metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
lookbusy1344 committed Oct 8, 2023
1 parent f3a99f9 commit f3e858e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
17 changes: 10 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ record TestRecord(int A, string B, IReadOnlyList<int> C);
~~~~~~~~~~~~~~~~~~~~ JSV01: member lacks value semantics
```

## Contents

This project contains:
- the Roslyn code analyser itself
- a wrapper to make a nuget package https://www.nuget.org/packages/lookbusy1344.RecordValueAnalyser
- a VSIX plugin for Visual Studio 2022
- a test project

## Why?

This project is a C# Roslyn code analyser to check records for correct value semantics.
Expand Down Expand Up @@ -91,14 +99,9 @@ Tests are in `RecordValueAnalyser.Test`. They are run in the CI pipeline.

## Usage

https://www.nuget.org/packages/lookbusy1344.RecordValueAnalyser
Install from nuget:

```
<PackageReference Include="lookbusy1344.RecordValueAnalyser" Version="0.9.9">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
```
https://www.nuget.org/packages/lookbusy1344.RecordValueAnalyser

..or from source, edit your csproj file:

Expand Down
4 changes: 2 additions & 2 deletions RecordValueAnalyser.Vsix/source.extension.vsixmanifest
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="RecordValueAnalyser.37494fca-dd57-4b76-a925-c7957659bbba" Version="1.0" Language="en-US" Publisher="JohnT"/>
<Identity Id="lookbusy1344.RecordValueAnalyser.37494fca-dd57-4b76-a925-c7957659bbba" Version="1.0" Language="en-US" Publisher="lookbusy1344"/>
<DisplayName>RecordValueAnalyser</DisplayName>
<Description xml:space="preserve">This is a sample diagnostic extension for the .NET Compiler Platform ("Roslyn").</Description>
<Description xml:space="preserve">Roslyn analyser to check if records have value semantics.</Description>
</Metadata>
<Installation>
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[17.0,)" />
Expand Down

0 comments on commit f3e858e

Please sign in to comment.