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
7 changes: 2 additions & 5 deletions src/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,16 @@
<PackageVersion Include="SonarAnalyzer.CSharp" Version="10.18.0.131500" />
<PackageVersion Include="Roslynator.Analyzers" Version="4.15.0" />
<PackageVersion Include="AsyncFixer" Version="2.1.0" />

<!-- Source Generator -->
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="5.0.0" />
<PackageVersion Include="Microsoft.CodeAnalysis.Analyzers" Version="3.11.0" />

<!-- Versioning -->
<PackageVersion Include="SimpleBranchVersioning" Version="0.6.1" />

<!-- Testing -->
<PackageVersion Include="TUnit" Version="1.12.15" />
<PackageVersion Include="TUnit" Version="1.12.41" />
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp.Analyzer.Testing" Version="1.1.3" />
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="5.0.0" />
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="10.0.2" />
<PackageVersion Include="Microsoft.Extensions.TimeProvider.Testing" Version="10.0.0" />
<PackageVersion Include="Microsoft.Extensions.TimeProvider.Testing" Version="10.2.0" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
<OutputType>Exe</OutputType>
</PropertyGroup>

Expand All @@ -11,6 +11,16 @@
<PackageReference Include="Microsoft.Extensions.TimeProvider.Testing" />
</ItemGroup>

<!-- TFM-specific package versions -->
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
<PackageReference Update="Microsoft.AspNetCore.Mvc.Testing" VersionOverride="8.0.21" />
<PackageReference Update="Microsoft.Extensions.TimeProvider.Testing" VersionOverride="8.10.0" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net9.0'">
<PackageReference Update="Microsoft.AspNetCore.Mvc.Testing" VersionOverride="9.0.12" />
<PackageReference Update="Microsoft.Extensions.TimeProvider.Testing" VersionOverride="9.0.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Endpointer.TestWebApi\Endpointer.TestWebApi.csproj" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Endpointer.TestWebApi/Endpointer.TestWebApi.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
Expand Down
5 changes: 5 additions & 0 deletions src/Endpointer.TestWebApi/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@
app.MapEndpointer();

await app.RunAsync();

// Make Program class accessible for WebApplicationFactory in integration tests < .NET 10
#pragma warning disable S1118
public partial class Program;
#pragma warning restore S1118
6 changes: 6 additions & 0 deletions src/Endpointer/Endpointer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,17 @@
<IncludeBuildOutput>false</IncludeBuildOutput>
<DevelopmentDependency>true</DevelopmentDependency>
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
<NoWarn>$(NoWarn);NU5128</NoWarn>
</PropertyGroup>

<ItemGroup>
<None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
<None Include="..\..\README.md" Pack="true" PackagePath="\" />

<!-- Placeholder files for NuGet framework compatibility display -->
<None Include="build\_._" Pack="true" PackagePath="lib/net8.0" Visible="false" />
<None Include="build\_._" Pack="true" PackagePath="lib/net9.0" Visible="false" />
<None Include="build\_._" Pack="true" PackagePath="lib/net10.0" Visible="false" />
</ItemGroup>

<ItemGroup>
Expand Down
Empty file added src/Endpointer/build/_._
Empty file.