Skip to content

Commit

Permalink
Trying to include Diagnostics in Sg and CodeFix
Browse files Browse the repository at this point in the history
(`ConsoleApp1` don't compile)
  • Loading branch information
FaustVX committed Nov 25, 2023
1 parent 1898915 commit 954f653
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 65 deletions.
1 change: 1 addition & 0 deletions ConsoleApp1/ConsoleApp1.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

<ItemGroup>
<PackageReference Include="FaustVX.PrimaryParameter.SG" />
<PackageReference Include="FaustVX.PrimaryParameter.CodeFix" />
</ItemGroup>

<PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace PrimaryParameter.SG
{
[AttributeUsage(AttributeTargets.Parameter, Inherited = false, AllowMultiple = false)]
sealed class DontUseAttribute : Attribute
sealed class DoNotUseAttribute : Attribute
{
public bool AllowInMemberInit { get; init; }
}
Expand Down

This file was deleted.

5 changes: 3 additions & 2 deletions PrimaryParameter.CodeFix/PrimaryParameter.CodeFix.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,20 @@
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" PrivateAssets="all" />
<PackageReference Include="FaustVX.PrimaryParameter.Diagnostics" />
<ProjectReference Include="../PrimaryParameter.Diagnostics/PrimaryParameter.Diagnostics.csproj" PrivateAssets="all" />
</ItemGroup>

<!-- 👇 This ensures the library will be packaged as a source generator when we use `dotnet pack` -->
<ItemGroup>
<None Include="$(OutputPath)/$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
<Content Include="../PrimaryParameter.Diagnostics/bin/Release/netstandard2.0/PrimaryParameter.Diagnostics.dll" Pack="true" PackagePath="lib/netstandard2.0" />
<None Include="../README.md" Pack="true" PackagePath="/" />
<None Include="../LICENSE" Pack="true" PackagePath="/" />
</ItemGroup>

<PropertyGroup>
<PackageId>FaustVX.PrimaryParameter.CodeFix</PackageId>
<Version>1.0.0</Version>
<Version>1.0.0-beta1</Version>
<Authors>FaustVX</Authors>
<RepositoryUrl>https://github.com/FaustVX/PrimaryParameter</RepositoryUrl>
<RepositoryType>git</RepositoryType>
Expand Down
5 changes: 3 additions & 2 deletions PrimaryParameter.SG/PrimaryParameter.SG.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" PrivateAssets="all" />
<PackageReference Include="FaustVX.PrimaryParameter.Diagnostics" />
<ProjectReference Include="../PrimaryParameter.Diagnostics/PrimaryParameter.Diagnostics.csproj" PrivateAssets="all" />
</ItemGroup>

<!-- 👇 This ensures the library will be packaged as a source generator when we use `dotnet pack` -->
<ItemGroup>
<None Include="$(OutputPath)/$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
<Content Include="../PrimaryParameter.Diagnostics/bin/Release/netstandard2.0/PrimaryParameter.Diagnostics.dll" Pack="true" PackagePath="lib/netstandard2.0" />
<None Include="../README.md" Pack="true" PackagePath="/" />
<None Include="../LICENSE" Pack="true" PackagePath="/" />
<!-- 👇 Package the props file -->
Expand All @@ -30,7 +31,7 @@

<PropertyGroup>
<PackageId>FaustVX.PrimaryParameter.SG</PackageId>
<Version>1.3.2</Version>
<Version>2.0.0-beta1</Version>
<Authors>FaustVX</Authors>
<RepositoryUrl>https://github.com/FaustVX/PrimaryParameter</RepositoryUrl>
<RepositoryType>git</RepositoryType>
Expand Down
3 changes: 2 additions & 1 deletion PrimaryParameter.Tests/PrimaryParameter.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
Expand Down Expand Up @@ -35,6 +35,7 @@
</PackageReference>
<ProjectReference Include="../PrimaryParameter.SG/PrimaryParameter.SG.csproj" />
<ProjectReference Include="../PrimaryParameter.CodeFix/PrimaryParameter.CodeFix.csproj" />
<ProjectReference Include="../PrimaryParameter.Diagnostics/PrimaryParameter.Diagnostics.csproj" />
</ItemGroup>

</Project>

0 comments on commit 954f653

Please sign in to comment.