Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions StrongTypes.slnx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
</Folder>
<Folder Name="/Main Package/">
<Project Path="src/StrongTypes.Analyzers/StrongTypes.Analyzers.csproj" />
<Project Path="src/StrongTypes.Analyzers.CodeFixes/StrongTypes.Analyzers.CodeFixes.csproj" />
<Project Path="src/StrongTypes.Analyzers.Tests/StrongTypes.Analyzers.Tests.csproj" />
<Project Path="src/StrongTypes.Benchmarks/StrongTypes.Benchmarks.csproj" />
<Project Path="src/StrongTypes.SourceGenerators/StrongTypes.SourceGenerators.csproj" />
Expand Down
2 changes: 1 addition & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ component_management:
paths: ["src/StrongTypes/**"]
- component_id: analyzers
name: StrongTypes.Analyzers
paths: ["src/StrongTypes.Analyzers/**"]
paths: ["src/StrongTypes.Analyzers/**", "src/StrongTypes.Analyzers.CodeFixes/**"]
- component_id: efcore
name: StrongTypes.EfCore
paths: ["src/StrongTypes.EfCore/**"]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<IsRoslynComponent>true</IsRoslynComponent>
<IsPackable>false</IsPackable>
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
<IncludeBuildOutput>false</IncludeBuildOutput>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="5.0.0" PrivateAssets="all" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\StrongTypes.Analyzers\StrongTypes.Analyzers.csproj" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,24 @@
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.11.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.11.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="5.0.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="5.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="10.0.0" />
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="10.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.0.0" />
<PackageReference Include="Microsoft.Testing.Extensions.CodeCoverage" Version="17.14.2" />
<PackageReference Include="xunit.v3" Version="3.2.2" />
</ItemGroup>
<ItemGroup>
<!-- Reference the analyzer as a plain library so tests can instantiate and drive it directly.
Must NOT be applied as an analyzer on this project — we're testing it, not running it. -->
<!-- Reference the analyzers and code fixes as plain libraries so tests can instantiate and
drive them directly. Must NOT be applied as analyzers on this project — we're testing
them, not running them. -->
<ProjectReference Include="..\StrongTypes.Analyzers\StrongTypes.Analyzers.csproj"
ReferenceOutputAssembly="true"
OutputItemType="None" />
<ProjectReference Include="..\StrongTypes.Analyzers.CodeFixes\StrongTypes.Analyzers.CodeFixes.csproj"
ReferenceOutputAssembly="true"
OutputItemType="None" />
<ProjectReference Include="..\StrongTypes\StrongTypes.csproj" />
<!-- Needed to test the "silent when StrongTypes.EfCore is referenced" case. -->
<ProjectReference Include="..\StrongTypes.Configuration\StrongTypes.Configuration.csproj" />
Expand Down
3 changes: 1 addition & 2 deletions src/StrongTypes.Analyzers/StrongTypes.Analyzers.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
<IncludeBuildOutput>false</IncludeBuildOutput>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.11.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.11.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="5.0.0" PrivateAssets="all" />
</ItemGroup>
<ItemGroup>
<AdditionalFiles Include="AnalyzerReleases.Shipped.md" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
<IncludeBuildOutput>false</IncludeBuildOutput>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.11.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="5.0.0" PrivateAssets="all" />
</ItemGroup>
</Project>
15 changes: 11 additions & 4 deletions src/StrongTypes/StrongTypes.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,28 @@
<ItemGroup>
<Service Include="{508349b6-6b84-4df5-91f0-309beebad82d}" />
</ItemGroup>
<!-- Pack the Roslyn analyzer DLL inside this NuGet package under the standard
analyzers/dotnet/cs/ folder so consumers get it automatically without
referencing a separate package. Build-dependency on the analyzer project
keeps the DLL output in sync without exposing its publicly-unused types. -->
<!-- Pack the Roslyn analyzer and code-fix DLLs inside this NuGet package under
the standard analyzers/dotnet/cs/ folder so consumers get them automatically
without referencing a separate package. Build-dependency on the projects
keeps the DLL outputs in sync without exposing their publicly-unused types. -->
<ItemGroup>
<ProjectReference Include="..\StrongTypes.Analyzers\StrongTypes.Analyzers.csproj"
PrivateAssets="all"
ReferenceOutputAssembly="false" />
<ProjectReference Include="..\StrongTypes.Analyzers.CodeFixes\StrongTypes.Analyzers.CodeFixes.csproj"
PrivateAssets="all"
ReferenceOutputAssembly="false" />
</ItemGroup>
<Target Name="IncludeAnalyzerInPackage" BeforeTargets="_GetPackageFiles">
<ItemGroup>
<None Include="..\StrongTypes.Analyzers\bin\$(Configuration)\netstandard2.0\StrongTypes.Analyzers.dll"
Pack="true"
PackagePath="analyzers/dotnet/cs"
Visible="false" />
<None Include="..\StrongTypes.Analyzers.CodeFixes\bin\$(Configuration)\netstandard2.0\StrongTypes.Analyzers.CodeFixes.dll"
Pack="true"
PackagePath="analyzers/dotnet/cs"
Visible="false" />
</ItemGroup>
</Target>
<ItemGroup>
Expand Down