Skip to content

Commit cf560f5

Browse files
authored
Add Reference to Code Fixes (#110)
* Add Reference to Code Fixes * Enable Packing of CodeFixes
1 parent eb164cb commit cf560f5

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/Directory.build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<PackageReleaseNotes>https://github.com/reactiveui/ReactiveUI.SourceGenerators/releases</PackageReleaseNotes>
1818
<RepositoryUrl>https://github.com/reactiveui/reactiveui.sourcegenerators</RepositoryUrl>
1919
<RepositoryType>git</RepositoryType>
20-
<NoWarn>$(NoWarn);IDE0060;IDE1006;IDE0130;VSSpell001</NoWarn>
20+
<NoWarn>$(NoWarn);IDE0060;IDE1006;IDE0130;VSSpell001;RS2007</NoWarn>
2121
<!-- Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
2222
<PublishRepositoryUrl>true</PublishRepositoryUrl>
2323
<!-- Embed source files that are not tracked by the source control manager in the PDB -->

src/ReactiveUI.SourceGenerators.CodeFixers/ReactiveUI.CodeFixes.csproj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@
1111
<IncludeBuildOutput>false</IncludeBuildOutput>
1212
<PackageDescription>A MVVM framework that integrates with the Reactive Extensions for .NET to create elegant, testable User Interfaces that run on any mobile or desktop platform. This is the Source Generators package for ReactiveUI</PackageDescription>
1313

14-
<IsPackable>false</IsPackable>
15-
16-
<BaseOutputPath>..\ReactiveUI.SourceGenerators\bin\</BaseOutputPath>
1714
</PropertyGroup>
1815

1916
<ItemGroup>
2017
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" PrivateAssets="all" />
2118
</ItemGroup>
2219

20+
<!-- This ensures the library will be packaged as a source generator when we use `dotnet pack` -->
21+
<ItemGroup>
22+
<None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
23+
</ItemGroup>
2324
</Project>

src/ReactiveUI.SourceGenerators/AnalyzerReleases.Shipped.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
; Shipped analyzer releases
2-
; https://github.com/dotnet/roslyn-analyzers/blob/main/src/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md
3-
41
## Release 1.0
52

63
### New Rules

src/ReactiveUI.SourceGenerators/ReactiveUI.SourceGenerators.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,13 @@
4343
<ItemGroup>
4444
<InternalsVisibleTo Include="ReactiveUI.CodeFixes" />
4545
</ItemGroup>
46+
<ItemGroup>
47+
<ProjectReference Include="..\ReactiveUI.SourceGenerators.CodeFixers\ReactiveUI.CodeFixes.csproj" />
48+
</ItemGroup>
4649

4750
<!-- This ensures the library will be packaged as a source generator when we use `dotnet pack` -->
4851
<ItemGroup>
4952
<None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
50-
<None Include="$(OutputPath)\ReactiveUI.CodeFixes.dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
5153
</ItemGroup>
5254

5355
<!-- Include PolySharp generated code -->

0 commit comments

Comments
 (0)